ALSA: usb-audio: Add support for Processing Units in UAC3
This patch adds support for the Processig Units defined in the UAC3 spec. The main difference with the previous specs is the lack of on/off switches in the controls for these units and the addiction of the new Multi Function Processing Unit. The current version of the UAC3 spec doesn't define any useful controls for the new Multi Function Processing Unit so no control will get created once this unit is parsed. Signed-off-by: Jorge Sanjuan <jorge.sanjuan@codethink.co.uk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:

committed by
Takashi Iwai

parent
4e887af31c
commit
0f292f023f
@@ -387,6 +387,12 @@ struct uac3_interrupt_data_msg {
|
||||
#define UAC3_CONNECTORS 0x0f
|
||||
#define UAC3_POWER_DOMAIN 0x10
|
||||
|
||||
/* A.20 PROCESSING UNIT PROCESS TYPES */
|
||||
#define UAC3_PROCESS_UNDEFINED 0x00
|
||||
#define UAC3_PROCESS_UP_DOWNMIX 0x01
|
||||
#define UAC3_PROCESS_STEREO_EXTENDER 0x02
|
||||
#define UAC3_PROCESS_MULTI_FUNCTION 0x03
|
||||
|
||||
/* A.22 AUDIO CLASS-SPECIFIC REQUEST CODES */
|
||||
/* see audio-v2.h for the rest, which is identical to v2 */
|
||||
#define UAC3_CS_REQ_INTEN 0x04
|
||||
@@ -406,6 +412,15 @@ struct uac3_interrupt_data_msg {
|
||||
#define UAC3_TE_OVERFLOW 0x04
|
||||
#define UAC3_TE_LATENCY 0x05
|
||||
|
||||
/* A.23.10 PROCESSING UNITS CONTROL SELECTROS */
|
||||
|
||||
/* Up/Down Mixer */
|
||||
#define UAC3_UD_MODE_SELECT 0x01
|
||||
|
||||
/* Stereo Extender */
|
||||
#define UAC3_EXT_WIDTH_CONTROL 0x01
|
||||
|
||||
|
||||
/* BADD predefined Unit/Terminal values */
|
||||
#define UAC3_BADD_IT_ID1 1 /* Input Terminal ID1: bTerminalID = 1 */
|
||||
#define UAC3_BADD_FU_ID2 2 /* Feature Unit ID2: bUnitID = 2 */
|
||||
|
Reference in New Issue
Block a user