diff options
author | Ruslan Bilovol <ruslan.bilovol@gmail.com> | 2018-05-04 04:24:04 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-05-13 08:54:35 +0200 |
commit | 17156f23e93c0f59e06dd2aaffd06221341caaee (patch) | |
tree | f7eac9dcff74c160bc43f1a032b5d15647fbe1d8 /sound/usb/usbaudio.h | |
parent | 10aa7cad37d330dbff6a285af56dc4a7153a8f00 (diff) | |
download | linux-stable-17156f23e93c0f59e06dd2aaffd06221341caaee.tar.gz linux-stable-17156f23e93c0f59e06dd2aaffd06221341caaee.tar.bz2 linux-stable-17156f23e93c0f59e06dd2aaffd06221341caaee.zip |
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>
Diffstat (limited to 'sound/usb/usbaudio.h')
-rw-r--r-- | sound/usb/usbaudio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/usb/usbaudio.h b/sound/usb/usbaudio.h index 1cb6b3e9483c..7b28cbde22c0 100644 --- a/sound/usb/usbaudio.h +++ b/sound/usb/usbaudio.h @@ -49,6 +49,8 @@ struct snd_usb_audio { int num_suspended_intf; int sample_rate_read_error; + int badd_profile; /* UAC3 BADD profile */ + struct list_head pcm_list; /* list of pcm streams */ struct list_head ep_list; /* list of audio-related endpoints */ int pcm_devs; |