]> 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)
commitd02fcd38597a93294a3784f666774477bdfd68a4
tree92f1287c12ba898c373ea93fd843bfcab032484b
parent9ddf9f980758a054dd9dbdbb0066819c42af4562
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