kernel_optimize_test/sound
Takashi Sakamoto d61fe22c2a ALSA: ctl: allow TLV read operation for callback type of element in locked case
A design of ALSA control core allows applications to execute three
operations for TLV feature; read, write and command. Furthermore, it
allows driver developers to process the operations by two ways; allocated
array or callback function. In the former, read operation is just allowed,
thus developers uses the latter when device driver supports variety of
models or the target model is expected to dynamically change information
stored in TLV container.

The core also allows applications to lock any element so that the other
applications can't perform write operation to the element for element
value and TLV information. When the element is locked, write and command
operation for TLV information are prohibited as well as element value.
Any read operation should be allowed in the case.

At present, when an element has callback function for TLV information,
TLV read operation returns EPERM if the element is locked. On the
other hand, the read operation is success when an element has allocated
array for TLV information. In both cases, read operation is success for
element value expectedly.

This commit fixes the bug. This change can be backported to v4.14
kernel or later.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20191223093347.15279-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-12-24 15:29:12 +01:00
..
ac97
aoa ALSA: aoa: Drop superfluous ioctl PCM ops 2019-12-11 07:25:25 +01:00
arm ALSA: arm: Drop superfluous ioctl PCM ops 2019-12-11 07:25:26 +01:00
atmel ALSA: atmel: Drop superfluous ioctl PCM ops 2019-12-11 07:25:26 +01:00
core ALSA: ctl: allow TLV read operation for callback type of element in locked case 2019-12-24 15:29:12 +01:00
drivers ALSA: Fix year 2038 issue for sound subsystem 2019-12-17 23:12:39 +01:00
firewire ALSA: firewire: Drop superfluous ioctl PCM ops 2019-12-11 07:25:27 +01:00
hda Merge branch 'for-linus' into for-next 2019-12-18 20:07:43 +01:00
i2c
isa ALSA: wss: Support PCM sync_stop 2019-12-11 07:25:58 +01:00
mips ALSA: mips: Drop superfluous ioctl PCM ops 2019-12-11 07:25:28 +01:00
oss
parisc ALSA: parisc: Drop superfluous ioctl PCM ops 2019-12-11 07:25:29 +01:00
pci ALSA: pci: echoaudio: remove usage of dimen menber of elem_value structure 2019-12-23 15:57:34 +01:00
pcmcia ALSA: vxpocket: Support PCM sync_stop 2019-12-11 07:26:01 +01:00
ppc ALSA: ppc: Drop superfluous ioctl PCM ops 2019-12-11 07:25:32 +01:00
sh ALSA: sh: Drop superfluous ioctl PCM ops 2019-12-11 07:25:32 +01:00
soc Merge branch 'for-linus' into for-next 2019-12-18 20:07:43 +01:00
sparc ALSA: sparc: Drop superfluous ioctl PCM ops 2019-12-11 07:25:33 +01:00
spi ALSA: spi: Drop superfluous ioctl PCM ops 2019-12-11 07:25:33 +01:00
synth
usb Merge branch 'for-linus' into for-next 2019-12-18 20:07:43 +01:00
x86 ALSA: x86: Drop superfluous ioctl PCM ops 2019-12-11 07:25:34 +01:00
xen ALSA: xen: Drop superfluous ioctl PCM ops 2019-12-11 07:25:35 +01:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c