]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Don't create a mixer element with bogus volume range
authorTakashi Iwai <tiwai@suse.de>
Fri, 14 Feb 2020 14:49:28 +0000 (15:49 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 14 Feb 2020 14:51:35 +0000 (15:51 +0100)
commit22e920decb773d45306e5b58929be3c5d12890c3
tree981b6308930c35fd89be925edff71b1e984de1f0
parentfedc6746fec1a3a9c5a83085d625cb6e3f70cfe5
ALSA: usb-audio: Don't create a mixer element with bogus volume range

Some USB-audio descriptors provide a bogus volume range (e.g. volume
min and max are identical), which confuses user-space.
This patch makes the driver skipping such a control element.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=206221
Link: https://lore.kernel.org/r/20200214144928.23628-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c