ALSA: timer: fix gparams ioctl compatibility for different architectures
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 22 Mar 2016 23:03:59 +0000 (08:03 +0900)
committerTakashi Iwai <tiwai@suse.de>
Wed, 23 Mar 2016 07:06:16 +0000 (08:06 +0100)
commit91d2178e26fdc806f33063f9df5904a48e3b6aeb
treebba54fcb578a5fc30a8b4f953cf2e98d628786da
parentc64c1437afb14ebc900e40910f31ffb20bf652ad
ALSA: timer: fix gparams ioctl compatibility for different architectures

'struct snd_timer_gparams' includes some members with 'unsigned long',
therefore its size differs depending on data models of architecture. As
a result, x86/x32 applications fail to execute ioctl(2) with
SNDRV_TIMER_GPARAMS command on x86_64 machine.

This commit fixes this bug by adding a pair of structure and ioctl
command for the compatibility.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/timer.c
sound/core/timer_compat.c