]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: ctl: change return value in compatibility layer so that it's the same value...
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 17 Mar 2016 12:14:36 +0000 (21:14 +0900)
committerTakashi Iwai <tiwai@suse.de>
Thu, 17 Mar 2016 13:11:36 +0000 (14:11 +0100)
commita33ad7b4563ce7425d8f86d9bfb1e67b4cd4e10d
treeeccc1e33f697a87dd06a52b951c0362e2cf644be
parent1de496e2b3e4aee594bced35228cc5fe8484f375
ALSA: ctl: change return value in compatibility layer so that it's the same value in core implementation

In control compatibility layer, when no elements are found by
ELEM_READ/ELEM_WRITE ioctl commands, ENXIO is returned. On the other hand,
in core implementation, ENOENT is returned. This is not good for
ALSA ctl applications.

This commit changes the return value from the compatibility layer so
that the same value is returned.

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