]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:47:31 +0000 (14:47 +0100)
commit561e03cffd3e0feb0ad4989dedd072a4f9239c4e
tree1439b968b82f4460b6cbae7ffe9591d84954748d
parent5f4bd9e452e9afae9918ef42a346eb75e2464d43
ALSA: usb-audio: Don't create a mixer element with bogus volume range

BugLink: https://bugs.launchpad.net/bugs/1900624
[ Upstream commit e9a0ef0b5ddcbc0d56c65aefc0f18d16e6f71207 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
sound/usb/mixer.c