OSDN Git Service

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)
commit4e887af31cedec0d3b24521a5c3c14c3a190422b
tree92f1287c12ba898c373ea93fd843bfcab032484b
parentc77e1ef1cdf74dba09edfa706fecc9fddd7bd084
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