ALSA: pcm: Fix ioctls for X32 ABI
authorTakashi Iwai <tiwai@suse.de>
Sun, 28 Feb 2016 10:23:09 +0000 (11:23 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 9 Mar 2016 18:15:14 +0000 (13:15 -0500)
commitbffe692e21f78b45735efd8aa0dd17f7141888db
tree544d93602ce2ed1fd1b8df5eca83b73579428502
parent3aa7c24c31ee77017718dea1e4e43a2cbc969b53
ALSA: pcm: Fix ioctls for X32 ABI

[ Upstream commit 513ace79b657e2022a592e77f24074e088681ecc ]

X32 ABI uses the 64bit timespec in addition to 64bit alignment of
64bit values.  This leads to incompatibilities in some PCM ioctls
involved with snd_pcm_channel_info, snd_pcm_status and
snd_pcm_sync_ptr structs.  Fix the PCM compat ABI for these ioctls
like the previous commit for ctl API.

Reported-by: Steven Newbury <steve@snewbury.org.uk>
Cc: <stable@vger.kernel.org> # v3.4+
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
sound/core/pcm_compat.c