ALSA: usb-audio: UAC3. Add support for mixer unit.
authorJorge Sanjuan <jorge.sanjuan@codethink.co.uk>
Fri, 11 May 2018 15:25:34 +0000 (16:25 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 15 May 2018 05:32:50 +0000 (07:32 +0200)
commit6cfd839ae78ec3fac5ddbf7148155898727e90c3
tree7f71fb93c0a2a08c289643e3c28c85987c41e5ce
parent8def12d9cd45b6abad87c5dc5a88a18c739762be
ALSA: usb-audio: UAC3. Add support for mixer unit.

This adds support for the MIXER UNIT in UAC3. All the information
is obtained from the (HIGH CAPABILITY) Cluster's header. We don't
read the rest of the logical cluster to obtain the channel config
as that wont make any difference in the current mixer behaviour.

The name of the mixer unit is not yet requested as there is not
support for the UAC3 Class Specific String requests.

Tested in an UAC3 device working as a HEADSET with a basic mixer
unit (same as the one in the BADD spec) with no controls.

Signed-off-by: Jorge Sanjuan <jorge.sanjuan@codethink.co.uk>
Reviewed-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Tested-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/uapi/linux/usb/audio.h
sound/usb/mixer.c