]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Tidy up logic for Processing Unit min/max values
authorJorge Sanjuan <jorge.sanjuan@codethink.co.uk>
Wed, 11 Jul 2018 12:37:55 +0000 (13:37 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 16 Jul 2018 14:36:15 +0000 (16:36 +0200)
commit3fef27ff4b1046d2dfef27e19b5d737f29b500d8
tree5adfd2e429c8f82af43d0d4d4685728eed28f94c
parentaa8856b651216238845660a4cbd5e7f371e0431f
ALSA: usb-audio: Tidy up logic for Processing Unit min/max values

This patch refactors the processing units min/max calculation logic
for the mixer controls and fixes an issue where the Mode Select
checking of the Up/Down mixers doesn't differentiate between the
UAC1 and UAC2 Control Selector (0x02) and the UAC3 one which is
different (0x01).

Signed-off-by: Jorge Sanjuan <jorge.sanjuan@codethink.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c