]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e55a4e0fc4b4338bddd008c59413fa510bf9420
treebba54fcb578a5fc30a8b4f953cf2e98d628786da
parent708db79195583bc14814ec8ae5dd60a25476c41a
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