Home | History | Annotate | Line # | Download | only in usb
uaudioreg.h revision 1.13.26.1
      1  1.13.26.1      yamt /*	$NetBSD: uaudioreg.h,v 1.13.26.1 2007/02/27 16:54:05 yamt Exp $	*/
      2        1.1  augustss 
      3        1.1  augustss /*
      4        1.1  augustss  * Copyright (c) 1999 The NetBSD Foundation, Inc.
      5        1.1  augustss  * All rights reserved.
      6        1.1  augustss  *
      7        1.5  augustss  * This code is derived from software contributed to The NetBSD Foundation
      8        1.5  augustss  * by Lennart Augustsson (lennart (at) augustsson.net) at
      9        1.5  augustss  * Carlstedt Research & Technology.
     10        1.1  augustss  *
     11        1.1  augustss  * Redistribution and use in source and binary forms, with or without
     12        1.1  augustss  * modification, are permitted provided that the following conditions
     13        1.1  augustss  * are met:
     14        1.1  augustss  * 1. Redistributions of source code must retain the above copyright
     15        1.1  augustss  *    notice, this list of conditions and the following disclaimer.
     16        1.1  augustss  * 2. Redistributions in binary form must reproduce the above copyright
     17        1.1  augustss  *    notice, this list of conditions and the following disclaimer in the
     18        1.1  augustss  *    documentation and/or other materials provided with the distribution.
     19        1.1  augustss  * 3. All advertising materials mentioning features or use of this software
     20        1.1  augustss  *    must display the following acknowledgement:
     21        1.1  augustss  *        This product includes software developed by the NetBSD
     22        1.1  augustss  *        Foundation, Inc. and its contributors.
     23        1.1  augustss  * 4. Neither the name of The NetBSD Foundation nor the names of its
     24        1.1  augustss  *    contributors may be used to endorse or promote products derived
     25        1.1  augustss  *    from this software without specific prior written permission.
     26        1.1  augustss  *
     27        1.1  augustss  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     28        1.1  augustss  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     29        1.1  augustss  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     30        1.1  augustss  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     31        1.1  augustss  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     32        1.1  augustss  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     33        1.1  augustss  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     34        1.1  augustss  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     35        1.1  augustss  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     36        1.1  augustss  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     37        1.1  augustss  * POSSIBILITY OF SUCH DAMAGE.
     38        1.1  augustss  */
     39        1.1  augustss 
     40        1.1  augustss #define UAUDIO_VERSION		0x100
     41        1.1  augustss 
     42        1.1  augustss #define UDESC_CS_CONFIG		0x22
     43        1.1  augustss #define UDESC_CS_STRING		0x23
     44        1.1  augustss #define UDESC_CS_INTERFACE	0x24
     45        1.1  augustss #define UDESC_CS_ENDPOINT	0x25
     46        1.1  augustss 
     47        1.1  augustss #define UDESCSUB_AC_HEADER	1
     48        1.1  augustss #define UDESCSUB_AC_INPUT	2
     49        1.1  augustss #define UDESCSUB_AC_OUTPUT	3
     50        1.1  augustss #define UDESCSUB_AC_MIXER	4
     51        1.1  augustss #define UDESCSUB_AC_SELECTOR	5
     52        1.1  augustss #define UDESCSUB_AC_FEATURE	6
     53        1.1  augustss #define UDESCSUB_AC_PROCESSING	7
     54        1.1  augustss #define UDESCSUB_AC_EXTENSION	8
     55        1.1  augustss 
     56        1.1  augustss /* The first fields are identical to usb_endpoint_descriptor_t */
     57        1.1  augustss typedef struct {
     58        1.1  augustss 	uByte		bLength;
     59        1.1  augustss 	uByte		bDescriptorType;
     60        1.1  augustss 	uByte		bEndpointAddress;
     61        1.1  augustss 	uByte		bmAttributes;
     62        1.1  augustss 	uWord		wMaxPacketSize;
     63        1.1  augustss 	uByte		bInterval;
     64        1.9  augustss 	/*
     65        1.1  augustss 	 * The following two entries are only used by the Audio Class.
     66        1.1  augustss 	 * And according to the specs the Audio Class is the only one
     67        1.1  augustss 	 * allowed to extend the endpoint descriptor.
     68        1.1  augustss 	 * Who knows what goes on in the minds of the people in the USB
     69        1.1  augustss 	 * standardization?  :-(
     70        1.1  augustss 	 */
     71        1.1  augustss 	uByte		bRefresh;
     72        1.1  augustss 	uByte		bSynchAddress;
     73        1.6  augustss } UPACKED usb_endpoint_descriptor_audio_t;
     74        1.1  augustss 
     75  1.13.26.1      yamt /* generic, for iteration */
     76  1.13.26.1      yamt typedef struct {
     77  1.13.26.1      yamt 	uByte		bLength;
     78  1.13.26.1      yamt 	uByte		bDescriptorType;
     79  1.13.26.1      yamt 	uByte		bDescriptorSubtype;
     80  1.13.26.1      yamt } UPACKED uaudio_cs_descriptor_t;
     81  1.13.26.1      yamt 
     82        1.1  augustss struct usb_audio_control_descriptor {
     83        1.1  augustss 	uByte		bLength;
     84        1.1  augustss 	uByte		bDescriptorType;
     85        1.1  augustss 	uByte		bDescriptorSubtype;
     86        1.1  augustss 	uWord		bcdADC;
     87        1.1  augustss 	uWord		wTotalLength;
     88        1.1  augustss 	uByte		bInCollection;
     89        1.1  augustss 	uByte		baInterfaceNr[1];
     90        1.6  augustss } UPACKED;
     91        1.1  augustss 
     92        1.1  augustss struct usb_audio_streaming_interface_descriptor {
     93        1.1  augustss 	uByte		bLength;
     94        1.1  augustss 	uByte		bDescriptorType;
     95        1.1  augustss 	uByte		bDescriptorSubtype;
     96        1.1  augustss 	uByte		bTerminalLink;
     97        1.1  augustss 	uByte		bDelay;
     98        1.1  augustss 	uWord		wFormatTag;
     99        1.6  augustss } UPACKED;
    100        1.1  augustss 
    101        1.1  augustss struct usb_audio_streaming_endpoint_descriptor {
    102        1.1  augustss 	uByte		bLength;
    103        1.1  augustss 	uByte		bDescriptorType;
    104        1.1  augustss 	uByte		bDescriptorSubtype;
    105        1.1  augustss 	uByte		bmAttributes;
    106        1.8      kent #define UA_SED_FREQ_CONTROL	0x01
    107        1.8      kent #define UA_SED_PITCH_CONTROL	0x02
    108        1.8      kent #define UA_SED_MAXPACKETSONLY	0x80
    109        1.1  augustss 	uByte		bLockDelayUnits;
    110        1.1  augustss 	uWord		wLockDelay;
    111        1.6  augustss } UPACKED;
    112        1.1  augustss 
    113        1.1  augustss struct usb_audio_streaming_type1_descriptor {
    114        1.1  augustss 	uByte		bLength;
    115        1.1  augustss 	uByte		bDescriptorType;
    116        1.1  augustss 	uByte		bDescriptorSubtype;
    117        1.1  augustss 	uByte		bFormatType;
    118        1.1  augustss 	uByte		bNrChannels;
    119        1.1  augustss 	uByte		bSubFrameSize;
    120        1.1  augustss 	uByte		bBitResolution;
    121        1.1  augustss 	uByte		bSamFreqType;
    122        1.1  augustss #define UA_SAMP_CONTNUOUS 0
    123        1.1  augustss 	uByte		tSamFreq[3*2]; /* room for low and high */
    124        1.1  augustss #define UA_GETSAMP(p, n) ((p)->tSamFreq[(n)*3+0] | ((p)->tSamFreq[(n)*3+1] << 8) | ((p)->tSamFreq[(n)*3+2] << 16))
    125        1.1  augustss #define UA_SAMP_LO(p) UA_GETSAMP(p, 0)
    126        1.1  augustss #define UA_SAMP_HI(p) UA_GETSAMP(p, 1)
    127        1.6  augustss } UPACKED;
    128        1.1  augustss 
    129        1.1  augustss struct usb_audio_cluster {
    130        1.1  augustss 	uByte		bNrChannels;
    131        1.1  augustss 	uWord		wChannelConfig;
    132       1.12      kent #define	UA_CHANNEL_LEFT		0x0001
    133       1.12      kent #define	UA_CHANNEL_RIGHT	0x0002
    134       1.12      kent #define	UA_CHANNEL_CENTER	0x0004
    135       1.12      kent #define	UA_CHANNEL_LFE		0x0008
    136       1.12      kent #define	UA_CHANNEL_L_SURROUND	0x0010
    137       1.12      kent #define	UA_CHANNEL_R_SURROUND	0x0020
    138       1.12      kent #define	UA_CHANNEL_L_CENTER	0x0040
    139       1.12      kent #define	UA_CHANNEL_R_CENTER	0x0080
    140       1.12      kent #define	UA_CHANNEL_SURROUND	0x0100
    141       1.12      kent #define	UA_CHANNEL_L_SIDE	0x0200
    142       1.12      kent #define	UA_CHANNEL_R_SIDE	0x0400
    143       1.12      kent #define	UA_CHANNEL_TOP		0x0800
    144        1.1  augustss 	uByte		iChannelNames;
    145        1.6  augustss } UPACKED;
    146       1.10  augustss 
    147       1.10  augustss /* Shared by all units and terminals */
    148       1.10  augustss struct usb_audio_unit {
    149       1.10  augustss 	uByte		bLength;
    150       1.10  augustss 	uByte		bDescriptorType;
    151       1.10  augustss 	uByte		bDescriptorSubtype;
    152       1.10  augustss 	uByte		bUnitId;
    153       1.10  augustss };
    154        1.1  augustss 
    155        1.1  augustss /* UDESCSUB_AC_INPUT */
    156        1.1  augustss struct usb_audio_input_terminal {
    157        1.1  augustss 	uByte		bLength;
    158        1.1  augustss 	uByte		bDescriptorType;
    159        1.1  augustss 	uByte		bDescriptorSubtype;
    160        1.1  augustss 	uByte		bTerminalId;
    161        1.1  augustss 	uWord		wTerminalType;
    162        1.1  augustss 	uByte		bAssocTerminal;
    163        1.1  augustss 	uByte		bNrChannels;
    164        1.1  augustss 	uWord		wChannelConfig;
    165        1.1  augustss 	uByte		iChannelNames;
    166        1.1  augustss 	uByte		iTerminal;
    167        1.6  augustss } UPACKED;
    168        1.1  augustss 
    169        1.1  augustss /* UDESCSUB_AC_OUTPUT */
    170        1.1  augustss struct usb_audio_output_terminal {
    171        1.1  augustss 	uByte		bLength;
    172        1.1  augustss 	uByte		bDescriptorType;
    173        1.1  augustss 	uByte		bDescriptorSubtype;
    174        1.1  augustss 	uByte		bTerminalId;
    175        1.1  augustss 	uWord		wTerminalType;
    176        1.1  augustss 	uByte		bAssocTerminal;
    177        1.1  augustss 	uByte		bSourceId;
    178        1.1  augustss 	uByte		iTerminal;
    179        1.6  augustss } UPACKED;
    180        1.1  augustss 
    181        1.1  augustss /* UDESCSUB_AC_MIXER */
    182        1.1  augustss struct usb_audio_mixer_unit {
    183        1.1  augustss 	uByte		bLength;
    184        1.1  augustss 	uByte		bDescriptorType;
    185        1.1  augustss 	uByte		bDescriptorSubtype;
    186        1.1  augustss 	uByte		bUnitId;
    187        1.1  augustss 	uByte		bNrInPins;
    188        1.4  augustss 	uByte		baSourceId[255]; /* [bNrInPins] */
    189        1.1  augustss 	/* struct usb_audio_mixer_unit_1 */
    190        1.6  augustss } UPACKED;
    191        1.1  augustss struct usb_audio_mixer_unit_1 {
    192        1.1  augustss 	uByte		bNrChannels;
    193        1.1  augustss 	uWord		wChannelConfig;
    194        1.1  augustss 	uByte		iChannelNames;
    195        1.4  augustss 	uByte		bmControls[255]; /* [bNrChannels] */
    196        1.1  augustss 	/*uByte		iMixer;*/
    197        1.6  augustss } UPACKED;
    198        1.1  augustss 
    199        1.1  augustss /* UDESCSUB_AC_SELECTOR */
    200        1.1  augustss struct usb_audio_selector_unit {
    201        1.1  augustss 	uByte		bLength;
    202        1.1  augustss 	uByte		bDescriptorType;
    203        1.1  augustss 	uByte		bDescriptorSubtype;
    204        1.1  augustss 	uByte		bUnitId;
    205        1.1  augustss 	uByte		bNrInPins;
    206        1.4  augustss 	uByte		baSourceId[255]; /* [bNrInPins] */
    207        1.1  augustss 	/* uByte	iSelector; */
    208        1.6  augustss } UPACKED;
    209        1.1  augustss 
    210        1.1  augustss /* UDESCSUB_AC_FEATURE */
    211        1.1  augustss struct usb_audio_feature_unit {
    212        1.1  augustss 	uByte		bLength;
    213        1.1  augustss 	uByte		bDescriptorType;
    214        1.1  augustss 	uByte		bDescriptorSubtype;
    215        1.1  augustss 	uByte		bUnitId;
    216        1.1  augustss 	uByte		bSourceId;
    217        1.1  augustss 	uByte		bControlSize;
    218        1.1  augustss 	uByte		bmaControls[255]; /* size for more than enough */
    219        1.1  augustss 	/* uByte	iFeature; */
    220        1.6  augustss } UPACKED;
    221        1.1  augustss 
    222        1.1  augustss /* UDESCSUB_AC_PROCESSING */
    223        1.1  augustss struct usb_audio_processing_unit {
    224        1.1  augustss 	uByte		bLength;
    225        1.1  augustss 	uByte		bDescriptorType;
    226        1.1  augustss 	uByte		bDescriptorSubtype;
    227        1.1  augustss 	uByte		bUnitId;
    228        1.1  augustss 	uWord		wProcessType;
    229        1.1  augustss 	uByte		bNrInPins;
    230        1.4  augustss 	uByte		baSourceId[255]; /* [bNrInPins] */
    231        1.1  augustss 	/* struct usb_audio_processing_unit_1 */
    232        1.6  augustss } UPACKED;
    233        1.1  augustss struct usb_audio_processing_unit_1{
    234        1.1  augustss 	uByte		bNrChannels;
    235        1.1  augustss 	uWord		wChannelConfig;
    236        1.1  augustss 	uByte		iChannelNames;
    237        1.1  augustss 	uByte		bControlSize;
    238        1.4  augustss 	uByte		bmControls[255]; /* [bControlSize] */
    239        1.3  augustss #define UA_PROC_ENABLE_MASK 1
    240        1.6  augustss } UPACKED;
    241        1.4  augustss 
    242        1.4  augustss struct usb_audio_processing_unit_updown {
    243        1.4  augustss 	uByte		iProcessing;
    244        1.4  augustss 	uByte		bNrModes;
    245        1.4  augustss 	uWord		waModes[255]; /* [bNrModes] */
    246        1.6  augustss } UPACKED;
    247        1.1  augustss 
    248        1.1  augustss /* UDESCSUB_AC_EXTENSION */
    249        1.1  augustss struct usb_audio_extension_unit {
    250        1.1  augustss 	uByte		bLength;
    251        1.1  augustss 	uByte		bDescriptorType;
    252        1.1  augustss 	uByte		bDescriptorSubtype;
    253        1.1  augustss 	uByte		bUnitId;
    254        1.1  augustss 	uWord		wExtensionCode;
    255        1.1  augustss 	uByte		bNrInPins;
    256        1.4  augustss 	uByte		baSourceId[255]; /* [bNrInPins] */
    257        1.1  augustss 	/* struct usb_audio_extension_unit_1 */
    258        1.6  augustss } UPACKED;
    259        1.1  augustss struct usb_audio_extension_unit_1 {
    260        1.1  augustss 	uByte		bNrChannels;
    261        1.1  augustss 	uWord		wChannelConfig;
    262        1.1  augustss 	uByte		iChannelNames;
    263        1.1  augustss 	uByte		bControlSize;
    264        1.4  augustss 	uByte		bmControls[255]; /* [bControlSize] */
    265        1.3  augustss #define UA_EXT_ENABLE_MASK 1
    266        1.3  augustss #define UA_EXT_ENABLE 1
    267        1.1  augustss 	/*uByte		iExtension;*/
    268        1.6  augustss } UPACKED;
    269        1.1  augustss 
    270        1.7  augustss /* USB terminal types */
    271        1.7  augustss #define UAT_UNDEFINED		0x0100
    272        1.7  augustss #define UAT_STREAM		0x0101
    273        1.7  augustss #define UAT_VENDOR		0x01ff
    274        1.7  augustss /* input terminal types */
    275        1.7  augustss #define UATI_UNDEFINED		0x0200
    276        1.7  augustss #define UATI_MICROPHONE		0x0201
    277        1.7  augustss #define UATI_DESKMICROPHONE	0x0202
    278        1.7  augustss #define UATI_PERSONALMICROPHONE	0x0203
    279        1.7  augustss #define UATI_OMNIMICROPHONE	0x0204
    280        1.7  augustss #define UATI_MICROPHONEARRAY	0x0205
    281        1.7  augustss #define UATI_PROCMICROPHONEARR	0x0206
    282        1.7  augustss /* output terminal types */
    283        1.7  augustss #define UATO_UNDEFINED		0x0300
    284        1.7  augustss #define UATO_SPEAKER		0x0301
    285        1.7  augustss #define UATO_HEADPHONES		0x0302
    286        1.7  augustss #define UATO_DISPLAYAUDIO	0x0303
    287        1.7  augustss #define UATO_DESKTOPSPEAKER	0x0304
    288        1.7  augustss #define UATO_ROOMSPEAKER	0x0305
    289        1.7  augustss #define UATO_COMMSPEAKER	0x0306
    290        1.7  augustss #define UATO_SUBWOOFER		0x0307
    291        1.7  augustss /* bidir terminal types */
    292        1.7  augustss #define UATB_UNDEFINED		0x0400
    293        1.7  augustss #define UATB_HANDSET		0x0401
    294        1.7  augustss #define UATB_HEADSET		0x0402
    295        1.7  augustss #define UATB_SPEAKERPHONE	0x0403
    296        1.7  augustss #define UATB_SPEAKERPHONEESUP	0x0404
    297        1.7  augustss #define UATB_SPEAKERPHONEECANC	0x0405
    298        1.7  augustss /* telephony terminal types */
    299        1.7  augustss #define UATT_UNDEFINED		0x0500
    300        1.7  augustss #define UATT_PHONELINE		0x0501
    301        1.7  augustss #define UATT_TELEPHONE		0x0502
    302        1.7  augustss #define UATT_DOWNLINEPHONE	0x0503
    303        1.7  augustss /* external terminal types */
    304        1.7  augustss #define UATE_UNDEFINED		0x0600
    305        1.7  augustss #define UATE_ANALOGCONN		0x0601
    306        1.7  augustss #define UATE_DIGITALAUIFC	0x0602
    307        1.7  augustss #define UATE_LINECONN		0x0603
    308        1.7  augustss #define UATE_LEGACYCONN		0x0604
    309        1.7  augustss #define UATE_SPDIF		0x0605
    310        1.7  augustss #define UATE_1394DA		0x0606
    311        1.7  augustss #define UATE_1394DV		0x0607
    312        1.7  augustss /* embedded function terminal types */
    313        1.7  augustss #define UATF_UNDEFINED		0x0700
    314        1.7  augustss #define UATF_CALIBNOISE		0x0701
    315        1.7  augustss #define UATF_EQUNOISE		0x0702
    316        1.7  augustss #define UATF_CDPLAYER		0x0703
    317        1.7  augustss #define UATF_DAT		0x0704
    318        1.7  augustss #define UATF_DCC		0x0705
    319        1.7  augustss #define UATF_MINIDISK		0x0706
    320        1.7  augustss #define UATF_ANALOGTAPE		0x0707
    321        1.7  augustss #define UATF_PHONOGRAPH		0x0708
    322        1.7  augustss #define UATF_VCRAUDIO		0x0709
    323        1.7  augustss #define UATF_VIDEODISCAUDIO	0x070a
    324        1.7  augustss #define UATF_DVDAUDIO		0x070b
    325        1.7  augustss #define UATF_TVTUNERAUDIO	0x070c
    326        1.7  augustss #define UATF_SATELLITE		0x070d
    327        1.7  augustss #define UATF_CABLETUNER		0x070e
    328        1.7  augustss #define UATF_DSS		0x070f
    329        1.7  augustss #define UATF_RADIORECV		0x0710
    330        1.7  augustss #define UATF_RADIOXMIT		0x0711
    331        1.7  augustss #define UATF_MULTITRACK		0x0712
    332        1.7  augustss #define UATF_SYNTHESIZER	0x0713
    333        1.7  augustss 
    334        1.1  augustss 
    335        1.1  augustss #define SET_CUR 0x01
    336        1.1  augustss #define GET_CUR 0x81
    337        1.1  augustss #define SET_MIN 0x02
    338        1.1  augustss #define GET_MIN 0x82
    339        1.1  augustss #define SET_MAX 0x03
    340        1.1  augustss #define GET_MAX 0x83
    341        1.1  augustss #define SET_RES 0x04
    342        1.1  augustss #define GET_RES 0x84
    343        1.1  augustss #define SET_MEM 0x05
    344        1.1  augustss #define GET_MEM 0x85
    345        1.1  augustss #define GET_STAT 0xff
    346        1.1  augustss 
    347        1.1  augustss #define MUTE_CONTROL	0x01
    348        1.1  augustss #define VOLUME_CONTROL	0x02
    349        1.1  augustss #define BASS_CONTROL	0x03
    350        1.1  augustss #define MID_CONTROL	0x04
    351        1.1  augustss #define TREBLE_CONTROL	0x05
    352        1.1  augustss #define GRAPHIC_EQUALIZER_CONTROL	0x06
    353        1.1  augustss #define AGC_CONTROL	0x07
    354        1.1  augustss #define DELAY_CONTROL	0x08
    355        1.1  augustss #define BASS_BOOST_CONTROL 0x09
    356        1.1  augustss #define LOUDNESS_CONTROL 0x0a
    357        1.1  augustss 
    358        1.1  augustss #define FU_MASK(u) (1 << ((u)-1))
    359        1.1  augustss 
    360        1.2  augustss #define MASTER_CHAN	0
    361        1.1  augustss 
    362        1.2  augustss #define AS_GENERAL	1
    363        1.2  augustss #define FORMAT_TYPE	2
    364        1.1  augustss #define FORMAT_SPECIFIC 3
    365        1.1  augustss 
    366        1.2  augustss #define UA_FMT_PCM	1
    367        1.2  augustss #define UA_FMT_PCM8	2
    368        1.2  augustss #define UA_FMT_IEEE_FLOAT 3
    369        1.2  augustss #define UA_FMT_ALAW	4
    370        1.2  augustss #define UA_FMT_MULAW	5
    371        1.8      kent #define UA_FMT_MPEG	0x1001
    372        1.8      kent #define UA_FMT_AC3	0x1002
    373        1.1  augustss 
    374        1.8      kent #define SAMPLING_FREQ_CONTROL	0x01
    375        1.8      kent #define PITCH_CONTROL		0x02
    376        1.2  augustss 
    377        1.2  augustss #define FORMAT_TYPE_UNDEFINED 0
    378        1.2  augustss #define FORMAT_TYPE_I 1
    379        1.2  augustss #define FORMAT_TYPE_II 2
    380        1.2  augustss #define FORMAT_TYPE_III 3
    381        1.3  augustss 
    382        1.4  augustss #define UA_PROC_MASK(n) (1<< ((n)-1))
    383        1.3  augustss #define PROCESS_UNDEFINED		0
    384        1.3  augustss #define  XX_ENABLE_CONTROL			1
    385        1.3  augustss #define UPDOWNMIX_PROCESS		1
    386        1.3  augustss #define  UD_ENABLE_CONTROL			1
    387        1.3  augustss #define  UD_MODE_SELECT_CONTROL			2
    388        1.3  augustss #define DOLBY_PROLOGIC_PROCESS		2
    389        1.3  augustss #define  DP_ENABLE_CONTROL			1
    390        1.3  augustss #define  DP_MODE_SELECT_CONTROL			2
    391        1.3  augustss #define P3D_STEREO_EXTENDER_PROCESS	3
    392        1.3  augustss #define  P3D_ENABLE_CONTROL			1
    393        1.3  augustss #define  P3D_SPACIOUSNESS_CONTROL		2
    394        1.3  augustss #define REVERBATION_PROCESS		4
    395        1.3  augustss #define  RV_ENABLE_CONTROL			1
    396        1.3  augustss #define  RV_LEVEL_CONTROL			2
    397        1.3  augustss #define  RV_TIME_CONTROL			3
    398        1.3  augustss #define  RV_FEEDBACK_CONTROL			4
    399        1.3  augustss #define CHORUS_PROCESS			5
    400        1.3  augustss #define  CH_ENABLE_CONTROL			1
    401        1.3  augustss #define  CH_LEVEL_CONTROL			2
    402        1.3  augustss #define  CH_RATE_CONTROL			3
    403        1.3  augustss #define  CH_DEPTH_CONTROL			4
    404        1.3  augustss #define DYN_RANGE_COMP_PROCESS		6
    405        1.3  augustss #define  DR_ENABLE_CONTROL			1
    406        1.3  augustss #define  DR_COMPRESSION_RATE_CONTROL		2
    407        1.3  augustss #define  DR_MAXAMPL_CONTROL			3
    408        1.3  augustss #define  DR_THRESHOLD_CONTROL			4
    409        1.3  augustss #define  DR_ATTACK_TIME_CONTROL			5
    410        1.3  augustss #define  DR_RELEASE_TIME_CONTROL		6
    411