Skip to content

Commit

Permalink
ALSA: pcm: Fix structure definition for X32 ABI
Browse files Browse the repository at this point in the history
X32 ABI uses the 64bit timespec in addition to 64bit alignment of 64bit
values. We have added compat ABI for these ioctls, but this patch adds
one missing padding into 'struct snd_pcm_mmap_status_x32' to fix
incompatibilities.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
wangbaolin719 authored and tiwai committed Sep 22, 2017
1 parent 0dcd020 commit c9adcdb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/core/pcm_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ struct snd_pcm_mmap_status_x32 {
u32 pad2; /* alignment */
struct timespec tstamp;
s32 suspended_state;
s32 pad3;
struct timespec audio_tstamp;
} __packed;

Expand Down

0 comments on commit c9adcdb

Please sign in to comment.