]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Processing Unit controls parsing in UAC2
authorJorge Sanjuan <jorge.sanjuan@codethink.co.uk>
Wed, 11 Jul 2018 12:37:52 +0000 (13:37 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 16 Jul 2018 14:35:09 +0000 (16:35 +0200)
commit7a2a68c398213573a1949f445f298e9ac4624cf1
tree92f1287c12ba898c373ea93fd843bfcab032484b
parent3dbfa8906f01ce545c1c77d1efcdc3f46ddfd231
ALSA: usb-audio: Processing Unit controls parsing in UAC2

Current support for UAC2 Processing Units does the parsing
as one control per bit in the bitmap. However, the UAC2 spec
defines the controls as bit pairs where b01 means read-only
and b11 means read/write control.

This patch fixes that and uses the helper functions for checking
controls readability/writability when the control is defined as
bit pairs (UAC2 and UAC3).

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