ALSA: usb: add UAC3 BADD profiles support
authorRuslan Bilovol <ruslan.bilovol@gmail.com>
Fri, 4 May 2018 01:24:04 +0000 (04:24 +0300)
committerTakashi Iwai <tiwai@suse.de>
Sun, 13 May 2018 06:54:35 +0000 (08:54 +0200)
commit17156f23e93c0f59e06dd2aaffd06221341caaee
treef7eac9dcff74c160bc43f1a032b5d15647fbe1d8
parent10aa7cad37d330dbff6a285af56dc4a7153a8f00
ALSA: usb: add UAC3 BADD profiles support

Recently released USB Audio Class 3.0 specification
contains BADD (Basic Audio Device Definition) document
which describes pre-defined UAC3 configurations.

BADD support is mandatory for UAC3 devices, it should be
implemented as a separate USB device configuration.
As per BADD document, class-specific descriptors
shall not be included in the Device’s Configuration
descriptor ("inferred"), but host can guess them
from BADD profile number, number of endpoints and
their max packed sizes.

This patch adds support of all BADD profiles from the spec

Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Tested-by: Jorge Sanjuan <jorge.sanjuan@codethink.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.c
sound/usb/clock.c
sound/usb/mixer.c
sound/usb/mixer_maps.c
sound/usb/stream.c
sound/usb/usbaudio.h