OSDN Git Service

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)
commit55b8cb46a71137aa19eba2ae5a4be384500db89e
tree5adfd2e429c8f82af43d0d4d4685728eed28f94c
parent8b3a087f7f6580e685a4f1ac980d07f96ad250a5
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