Skip to content

Commit 9a2fe9b

Browse files
rbilovoltiwai
authored andcommitted
ALSA: usb: initial USB Audio Device Class 3.0 support
Recently released USB Audio Class 3.0 specification introduces many significant changes comparing to previous versions, like - new Power Domains, support for LPM/L1 - new Cluster descriptor - changed layout of all class-specific descriptors - new High Capability descriptors - New class-specific String descriptors - new and removed units - additional sources for interrupts - removed Type II Audio Data Formats - ... and many other things (check spec) It also provides backward compatibility through multiple configurations, as well as requires mandatory support for BADD (Basic Audio Device Definition) on each ADC3.0 compliant device This patch adds initial support of UAC3 specification that is enough for Generic I/O Profile (BAOF, BAIF) device support from BADD document. Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent ceb18f5 commit 9a2fe9b

File tree

11 files changed

+1246
-194
lines changed

11 files changed

+1246
-194
lines changed

include/linux/usb/audio-v2.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
*
3535
*/
3636

37-
static inline bool uac2_control_is_readable(u32 bmControls, u8 control)
37+
static inline bool uac_v2v3_control_is_readable(u32 bmControls, u8 control)
3838
{
3939
return (bmControls >> (control * 2)) & 0x1;
4040
}
4141

42-
static inline bool uac2_control_is_writeable(u32 bmControls, u8 control)
42+
static inline bool uac_v2v3_control_is_writeable(u32 bmControls, u8 control)
4343
{
4444
return (bmControls >> (control * 2)) & 0x2;
4545
}

0 commit comments

Comments
 (0)