]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: compress: Disable GET_CODEC_CAPS ioctl for some architectures
authorTakashi Iwai <tiwai@suse.de>
Mon, 25 Jan 2016 12:59:21 +0000 (13:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Feb 2016 22:28:30 +0000 (14:28 -0800)
commit1dacaada4d8e6164cb96a9c3f35301ac31aef791
tree2e2bb7d263213641e63c00f757474f2f4b8667f3
parent37d0208b596f4a405966c1b2cedc4939ea9e9a6f
ALSA: compress: Disable GET_CODEC_CAPS ioctl for some architectures

commit 462b3f161beb62eeb290f4ec52f5ead29a2f8ac7 upstream.

Some architectures like PowerPC can handle the maximum struct size in
an ioctl only up to 13 bits, and struct snd_compr_codec_caps used by
SNDRV_COMPRESS_GET_CODEC_CAPS ioctl overflows this limit.  This
problem was revealed recently by a powerpc change, as it's now treated
as a fatal build error.

This patch is a stop-gap for that: for architectures with less than 14
bit ioctl struct size, get rid of the handling of the relevant ioctl.
We should provide an alternative equivalent ioctl code later, but for
now just paper over it.  Luckily, the compress API hasn't been used on
such architectures, so the impact must be effectively zero.

Reviewed-by: Mark Brown <broonie@kernel.org>
Acked-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/core/compress_offload.c