usb_commun_audio.h

Go to the documentation of this file.
00001 /*This file has been prepared for Doxygen automatic documentation generation.*/
00015 
00016 /* Copyright (c) 2007, Atmel Corporation All rights reserved.
00017  *
00018  * Redistribution and use in source and binary forms, with or without
00019  * modification, are permitted provided that the following conditions are met:
00020  *
00021  * 1. Redistributions of source code must retain the above copyright notice,
00022  * this list of conditions and the following disclaimer.
00023  *
00024  * 2. Redistributions in binary form must reproduce the above copyright notice,
00025  * this list of conditions and the following disclaimer in the documentation
00026  * and/or other materials provided with the distribution.
00027  *
00028  * 3. The name of ATMEL may not be used to endorse or promote products derived
00029  * from this software without specific prior written permission.
00030  *
00031  * THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED
00032  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00033  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND
00034  * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
00035  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00036  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00037  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00038  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00039  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
00040  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00041  */
00042 
00043 #ifndef _USB_COMMUN_AUDIO_H_
00044 #define _USB_COMMUN_AUDIO_H_
00045 
00046 #define  AUDIO_CLASS_REVISION                   0x0100  
00047 
00050 #define  AUDIO_CLASS                            0x01
00051 #define  AUDIO_SUB_CLASS_CONTROL                0x01    
00052 #define  AUDIO_SUB_CLASS_STREAMING              0x02    
00053 #define  AUDIO_SUB_CLASS_MIDISTREAMING          0x03    
00054 
00055         
00056 
00061 #define  DESCRIPTOR_AUDIO_UNDEFINED             0x20
00062 #define  DESCRIPTOR_AUDIO_DEVICE                0x21
00063 #define  DESCRIPTOR_AUDIO_CONFIGURATION         0x22
00064 #define  DESCRIPTOR_AUDIO_STRING                0x23
00065 #define  DESCRIPTOR_AUDIO_INTERFACE             0x24
00066 #define  DESCRIPTOR_AUDIO_ENDPOINT              0x25
00068         
00071 #define  DESCRIPTOR_SUBTYPE_AUDIO_AC_UNDEFINED              0x00
00072 #define  DESCRIPTOR_SUBTYPE_AUDIO_AC_HEADER                 0x01
00073 #define  DESCRIPTOR_SUBTYPE_AUDIO_AC_INPUT_TERMINAL         0x02
00074 #define  DESCRIPTOR_SUBTYPE_AUDIO_AC_OUTPUT_TERMINAL        0x03
00075 #define  DESCRIPTOR_SUBTYPE_AUDIO_AC_MIXER_UNIT             0x04
00076 #define  DESCRIPTOR_SUBTYPE_AUDIO_AC_SELECTOR_UNIT          0x05
00077 #define  DESCRIPTOR_SUBTYPE_AUDIO_AC_FEATURE_UNIT           0x06
00078 #define  DESCRIPTOR_SUBTYPE_AUDIO_AC_PROCESSING_UNIT        0x07
00079 #define  DESCRIPTOR_SUBTYPE_AUDIO_AC_EXTENSION_UNIT         0x08
00081         
00084 #define  DESCRIPTOR_SUBTYPE_AUDIO_AS_UNDEFINED              0x00
00085 #define  DESCRIPTOR_SUBTYPE_AUDIO_AS_GENERAL                0x01
00086 #define  DESCRIPTOR_SUBTYPE_AUDIO_AS_FORMAT_TYPE            0x02
00087 #define  DESCRIPTOR_SUBTYPE_AUDIO_AS_FORMAT_SPECIFIC        0x03
00089        
00092 #define  DESCRIPTOR_SUBTYPE_AUDIO_ENDP_UNDEFINED            0x00
00093 #define  DESCRIPTOR_SUBTYPE_AUDIO_ENDP_GENERAL              0x01
00095 
00098 #define  AUDIO_PROCESSING_UNIT_UNDEFINED                    0x00
00099 #define  AUDIO_PROCESSING_UNIT_UPDOWNMIX                    0x01
00100 #define  AUDIO_PROCESSING_UNIT_DOLBY_PROLOGIC               0x02
00101 #define  AUDIO_PROCESSING_UNIT_3D_STEREO_EXTENDER           0x03
00102 #define  AUDIO_PROCESSING_UNIT_REVERBERATION                0x04
00103 #define  AUDIO_PROCESSING_UNIT_CHORUS                       0x05
00104 #define  AUDIO_PROCESSING_UNIT_DYN_RANGE_COMP               0x06
00107 
00108 
00112 #define  AUDIO_CHANNEL_NO_POSITION                          0x0000  // non-predefined spatial positions
00113 #define  AUDIO_CHANNEL_L                                    0x0001  // Left Front (L)
00114 #define  AUDIO_CHANNEL_R                                    0x0002  // Right Front (R)
00115 #define  AUDIO_CHANNEL_C                                    0x0004  // Center Front (C)
00116 #define  AUDIO_CHANNEL_LFE                                  0x0008  // Low Frequency Enhancement (LFE) [Super woofer]
00117 #define  AUDIO_CHANNEL_LS                                   0x0010  // Left Surround (LS)
00118 #define  AUDIO_CHANNEL_RS                                   0x0020  // Right Surround (RS)
00119 #define  AUDIO_CHANNEL_LC                                   0x0040  // Left of Center (LC) [in front]
00120 #define  AUDIO_CHANNEL_RC                                   0x0080  // Right of Center (RC) [in front]
00121 #define  AUDIO_CHANNEL_S                                    0x0100  // Surround (S) [rear]
00122 #define  AUDIO_CHANNEL_SL                                   0x0200  // Side Left (SL) [left wall]
00123 #define  AUDIO_CHANNEL_SR                                   0x0400  // Side Right (SR) [right wall]
00124 #define  AUDIO_CHANNEL_T                                    0x0800  // Top (T) [overhead]
00126 
00127 
00128 
00133 #define  AUDIO_TE_TYPE_USB_UNDEFINE                         0x0100  // I/O USB Terminal, undefined Type.
00134 #define  AUDIO_TE_TYPE_USB_STREAMING                        0x0101  // I/O A Terminal dealing with a signal carried over an endpoint in an AudioStreaming interface. The AudioStreaming interface descriptor points to the associated Terminal through the bTerminalLink field.
00135 #define  AUDIO_TE_TYPE_USB_VENDOR_SPECIFIC                  0x01FF  // I/O A Terminal dealing with a signal carried over a vendor-specific interface. The vendor-specific interface descriptor must contain a field that references the Terminal
00139 #define  AUDIO_TE_TYPE_INPUT_UNDEFINED                      0x0200  // I Input Terminal, undefined Type.
00140 #define  AUDIO_TE_TYPE_INPUT_MICROPHONE                     0x0201  // I A generic microphone that does not fit under any of the other classifications.
00141 #define  AUDIO_TE_TYPE_INPUT_DESKTOP_MICROPHONE             0x0202  // I A microphone normally placed on the desktop or integrated into the monitor.
00142 #define  AUDIO_TE_TYPE_INPUT_PERSONAL_MICROPHONE            0x0203  // I A head-mounted or clip-on microphone.
00143 #define  AUDIO_TE_TYPE_INPUT_OMNI_DIRECTIONAL_MICROPHONE    0x0204  // I A microphone designed to pick up voice from more than one speaker at relatively long ranges.
00144 #define  AUDIO_TE_TYPE_INPUT_MICROPHONE_ARRAY               0x0205  // I An array of microphones designed for directional processing using host-based signal processing algorithms.
00145 #define  AUDIO_TE_TYPE_INPUT_PROCESSING_MICROPHONE_ARRAY    0x0206  // I An array of microphones with an embedded signal processor.
00149 #define  AUDIO_TE_TYPE_OUTPUT_UNDEFINED                     0x0300  // O Output Terminal, undefined Type.
00150 #define  AUDIO_TE_TYPE_OUTPUT_SPEAKER                       0x0301  // O A generic speaker or set of speakers that does not fit under any of the other classifications.
00151 #define  AUDIO_TE_TYPE_OUTPUT_HEADPHONES                    0x0302  // O A head-mounted audio output device.
00152 #define  AUDIO_TE_TYPE_OUTPUT_HEAD_MOUNTED DISPLAY AUDIO    0x0303  // O The audio part of a VR head mounted display. The Associated Interfaces descriptor can be used to reference the HID interface used to report the position and orientation of the HMD.
00153 #define  AUDIO_TE_TYPE_OUTPUT_DESKTOP_SPEAKER               0x0304  // O Relatively small speaker or set of speakers normally placed on the desktop or integrated into the monitor. These speakers are close to the user and have limited stereo separation.
00154 #define  AUDIO_TE_TYPE_OUTPUT_ROOM_SPEAKER                  0x0305  // O Larger speaker or set of speakers that are heard well anywhere in the room.
00155 #define  AUDIO_TE_TYPE_OUTPUT_COMMUNICATION_SPEAKER         0x0306  // O Speaker or set of speakers designed for voice communication.
00156 #define  AUDIO_TE_TYPE_OUTPUT_LOW_FREQUENCY_EFFECTS_SPEAKER 0x0307  // O Speaker designed for low frequencies (subwoofer). Not capable of reproducing speech or music.
00160 #define  AUDIO_TE_TYPE_BI_UNDEFINED                         0x0400  // I/O Bi-directional Terminal, undefined Type.
00161 #define  AUDIO_TE_TYPE_BI_HANDSET                           0x0401  // I/O Hand-held bi-directional audio device.
00162 #define  AUDIO_TE_TYPE_BI_HEADSET                           0x0402  // I/O Head-mounted bi-directional audio device.
00163 #define  AUDIO_TE_TYPE_BI_SPEAKERPHONE_NO_ECHO_REDUCTION    0x0403  // I/O A hands-free audio device designed for host-based echo cancellation.
00164 #define  AUDIO_TE_TYPE_BI_ECHO_SUPPRESSING_SPEAKERPHONE     0x0404  // I/O A hands-free audio device with echo suppression capable of half-duplex operation.
00165 #define  AUDIO_TE_TYPE_BI_ECHO_CANCELING_SPEAKERPHONE       0x0405  // I/O A hands-free audio device with echo cancellation capable of full-duplex operation.
00169 #define  AUDIO_TE_TYPE_TELEPHONY_UNDEFINED                  0x0500  // I/O Telephony Terminal, undefined Type.
00170 #define  AUDIO_TE_TYPE_TELEPHONY_PHONE_LINE                 0x0501  // I/O May be an analog telephone line jack, an ISDN line, a proprietary PBX interface, or a wireless link.
00171 #define  AUDIO_TE_TYPE_TELEPHONY_TELEPHONE                  0x0502  // I/O Device can be used as a telephone. When not in use as a telephone, handset is used as a bi-directional audio device.
00172 #define  AUDIO_TE_TYPE_TELEPHONY_DOWN_LINE_PHONE            0x0503  // I/O A standard telephone set connected to the device. When not in use as a telephone, it can be used as a bidirectional audio device.
00176 #define  AUDIO_TE_TYPE_EXTERNAL_UNDEFINED                   0x0600  // I/O External Terminal, undefined Type.
00177 #define  AUDIO_TE_TYPE_EXTERNAL_ANALOG_CONNECTOR            0x0601  // I/O A generic analog connector.
00178 #define  AUDIO_TE_TYPE_EXTERNAL_DIGITAL_AUDIO_INTERFACE     0x0602  // I/O A generic digital audio interface.
00179 #define  AUDIO_TE_TYPE_EXTERNAL_LINE_CONNECTOR              0x0603  // I/O An analog connector at standard line levels. Usually uses 3.5mm.
00180 #define  AUDIO_TE_TYPE_EXTERNAL_LEGACY_AUDIO_CONNECTOR      0x0604  // I/O An input connector assumed to be connected to the lineout of the legacy audio system of the host computer. Used for backward compatibility.
00181 #define  AUDIO_TE_TYPE_EXTERNAL_S_PDIF_INTERFACE            0x0605  // I/O An S/PDIF digital audio interface. The Associated Interface descriptor can be used to reference an interface used for controlling special functions of this interface.
00182 #define  AUDIO_TE_TYPE_EXTERNAL_1394_DA_STREAM              0x0606  // I/O An interface to audio streams on a 1394 bus.
00183 #define  AUDIO_TE_TYPE_EXTERNAL_1394_DV_STREAM_SOUNDTRACK   0x0607  // I/O An interface to soundtrack of A/V stream on a 1394 bus.
00187 #define  AUDIO_TE_TYPE_EMBEDDED_UNDEFINED                   0x0700  // I/O Embedded Terminal, undefined Type.
00188 #define  AUDIO_TE_TYPE_EMBEDDED_LEVEL_CALIBRATION_NOISE_SRC 0x0701  // O Internal Noise source for level calibration (MPEG decoding, Dolby PrologicÔ, AC-3 etc.)
00189 #define  AUDIO_TE_TYPE_EMBEDDED_EQUALIZATION NOISE          0x0702  // O Internal Noise source for measurements.
00190 #define  AUDIO_TE_TYPE_EMBEDDED_CD_PLAYER                   0x0703  // I Audio compact disc player or CD-ROM capable of audio playback.
00191 #define  AUDIO_TE_TYPE_EMBEDDED_DAT                         0x0704  // I/O Digital Audio Tape.
00192 #define  AUDIO_TE_TYPE_EMBEDDED_DCC                         0x0705  // I/O Digital Compact Cassette.
00193 #define  AUDIO_TE_TYPE_EMBEDDED_MINIDISK                    0x0706  // I/O Minidisk player.
00194 #define  AUDIO_TE_TYPE_EMBEDDED_ANALOG_TAPE                 0x0707  // I/O Analog Audio Tape.
00195 #define  AUDIO_TE_TYPE_EMBEDDED_PHONOGRAPH                  0x0708  // I Analog vinyl record player.
00196 #define  AUDIO_TE_TYPE_EMBEDDED_VCR_AUDIO                   0x0709  // I Audio track of VCR.
00197 #define  AUDIO_TE_TYPE_EMBEDDED_VIDEO_DISC_AUDIO            0x070A  // I Audio track of VideoDisc player.
00198 #define  AUDIO_TE_TYPE_EMBEDDED_DVD_AUDIO                   0x070B  // I Audio track of DVD player.
00199 #define  AUDIO_TE_TYPE_EMBEDDED_TV_TUNER_AUDIO              0x070C  // I Audio track of TV tuner.
00200 #define  AUDIO_TE_TYPE_EMBEDDED_SATELLITE_RECEIVER_AUDIO    0x070D  // I Audio track of satellite receiver.
00201 #define  AUDIO_TE_TYPE_EMBEDDED_CABLE_TUNER_AUDIO           0x070E  // I Audio track of cable tuner.
00202 #define  AUDIO_TE_TYPE_EMBEDDED_DSS_AUDIO                   0x070F  // I Audio track of DSS receiver.
00203 #define  AUDIO_TE_TYPE_EMBEDDED_RADIO_RECEIVER              0x0710  // I AM/FM radio receiver.
00204 #define  AUDIO_TE_TYPE_EMBEDDED_RADIO_TRANSMITTER           0x0711  // O AM/FM radio transmitter.
00205 #define  AUDIO_TE_TYPE_EMBEDDED_MULTI_TRACK_RECORDER        0x0712  // I/O A multi-track recording system.
00206 #define  AUDIO_TE_TYPE_EMBEDDED_SYNTHESIZER                 0x0713  // I Synthesizer.
00209 
00210 
00213 
00216 #define  AUDIO_FORMAT_TYPE_UNDEFINED                        0x00
00217 #define  AUDIO_FORMAT_TYPE_I                                0x01
00218 #define  AUDIO_FORMAT_TYPE_II                               0x02
00219 #define  AUDIO_FORMAT_TYPE_III                              0x03
00221 
00226 #define  AUDIO_FORMAT_TI_UNDEFINE                           0x0000
00227 #define  AUDIO_FORMAT_TI_PCM                                0x0001
00228 #define  AUDIO_FORMAT_TI_PCM8                               0x0002
00229 #define  AUDIO_FORMAT_TI_IEEE_FLOAT                         0x0003
00230 #define  AUDIO_FORMAT_TI_ALAW                               0x0004
00231 #define  AUDIO_FORMAT_TI_MULAW                              0x0005
00235 #define  AUDIO_FORMAT_TII_UNDEFINED                         0x1000
00236 #define  AUDIO_FORMAT_TII_MPEG                              0x1001
00237 #define  AUDIO_FORMAT_TII_AC_3                              0x1002
00241 #define  AUDIO_FORMAT_TIII_UNDEFINED                        0x2000
00242 #define  AUDIO_FORMAT_TIII_IEC1937_AC_3                     0x2001
00243 #define  AUDIO_FORMAT_TIII_IEC1937_MPEG1_L1                 0x2002
00244 #define  AUDIO_FORMAT_TIII_IEC1937_MPEG1_L2_3_OR_MP_2_NOEXT 0x2003
00245 #define  AUDIO_FORMAT_TIII_IEC1937_MPEG2_EXT                0x2004
00246 #define  AUDIO_FORMAT_TIII_IEC1937_MPEG2_L1_LS              0x2005
00247 #define  AUDIO_FORMAT_TIII_IEC1937_MPEG2_L2_L3_LS           0x2006
00250 
00255 #define  AUDIO_FORMAT_CS_MP_UNDEFINED                       0x00
00256 #define  AUDIO_FORMAT_CS_MP_DUAL_CHANNEL                    0x01
00257 #define  AUDIO_FORMAT_CS_MP_SECOND_STEREO                   0x02
00258 #define  AUDIO_FORMAT_CS_MP_MULTILINGUAL                    0x03
00259 #define  AUDIO_FORMAT_CS_MP_DYN_RANGE                       0x04
00260 #define  AUDIO_FORMAT_CS_MP_SCALING                         0x05
00261 #define  AUDIO_FORMAT_CS_MP_HILO_SCALING                    0x06
00265 #define  AUDIO_FORMAT_CS_AC_CONTROL_UNDEFINED               0x00
00266 #define  AUDIO_FORMAT_CS_AC_MODE                            0x01
00267 #define  AUDIO_FORMAT_CS_AC_DYN_RANGE                       0x02
00268 #define  AUDIO_FORMAT_CS_AC_SCALING                         0x03
00269 #define  AUDIO_FORMAT_CS_AC_HILO_SCALING                    0x04
00273 
00274 
00275 
00280 
00292 #define  SETUP_AUDIO_SET_CUR                    0x01
00293 #define  SETUP_AUDIO_SET_MIN                    0x02
00294 #define  SETUP_AUDIO_SET_MAX                    0x03
00295 #define  SETUP_AUDIO_SET_RES                    0x04
00296 #define  SETUP_AUDIO_GET_CUR                    0x81
00297 #define  SETUP_AUDIO_GET_MIN                    0x82
00298 #define  SETUP_AUDIO_GET_MAX                    0x83
00299 #define  SETUP_AUDIO_GET_RES                    0x84
00305 #define  SETUP_AUDIO_SET_MEM                    0x05
00306 #define  SETUP_AUDIO_GET_MEM                    0x85
00307 #define  SETUP_AUDIO_GET_STAT                   0xFF
00309 
00310        
00317 #define  AUDIO_TE_CONTROL_CS_UNDEFINED                      0x00
00318 #define  AUDIO_TE_CONTROL_CS_COPY_PROTECT                   0x01
00322 #define  AUDIO_TE_CONTROL_CS_COPY_PROTECT_ATT_CPL0          0x00  // Copying is permitted without restriction. The material is either not copyrighted, or the copyright is not asserted
00323 #define  AUDIO_TE_CONTROL_CS_COPY_PROTECT_ATT_CPL1          0x01  // One generation of copies may be made. The material is copyright protected and is the original.
00324 #define  AUDIO_TE_CONTROL_CS_COPY_PROTECT_ATT_CPL2          0x02  // The material is copyright protected and no digital copying is permitted.
00327 
00328 
00335 #define  AUDIO_MIXER_CONTROL_IOCN_ALL_PROGRAM               0xFFFF   // To get or set all programmable Mixer Controls
00336 #define  AUDIO_MIXER_CONTROL_IOCN_ALL                       0x0000   // To get all Mixer Controls
00339 
00340 
00349 
00350 
00357 #define  AUDIO_FU_CONTROL_CS_UNDEFINED                      0x00
00358 #define  AUDIO_FU_CONTROL_CS_MUTE                           0x01
00359 #define  AUDIO_FU_CONTROL_CS_VOLUME                         0x02
00360 #define  AUDIO_FU_CONTROL_CS_BASS                           0x03
00361 #define  AUDIO_FU_CONTROL_CS_MID                            0x04
00362 #define  AUDIO_FU_CONTROL_CS_TREBLE                         0x05
00363 #define  AUDIO_FU_CONTROL_CS_GRAPHIC_EQUALIZER              0x06
00364 #define  AUDIO_FU_CONTROL_CS_AUTOMATIC_GAIN                 0x07
00365 #define  AUDIO_FU_CONTROL_CS_DELAY                          0x08
00366 #define  AUDIO_FU_CONTROL_CS_BASS_BOOST                     0x09
00367 #define  AUDIO_FU_CONTROL_CS_LOUDNESS                       0x0A
00371 #define  AUDIO_FU_CONTROL_CN_ALL                            0xFF   // To get or set all available Controls
00373 
00376 #define  AUDIO_FU_CONTROL_BAND_EQ_25Hz          0x00000001  // band 14
00377 #define  AUDIO_FU_CONTROL_BAND_EQ_31_5Hz        0x00000002  // band 15*
00378 #define  AUDIO_FU_CONTROL_BAND_EQ_40Hz          0x00000004  // band 16
00379 #define  AUDIO_FU_CONTROL_BAND_EQ_50Hz          0x00000008  // band 17
00380 #define  AUDIO_FU_CONTROL_BAND_EQ_63Hz          0x00000010  // band 18*
00381 #define  AUDIO_FU_CONTROL_BAND_EQ_80Hz          0x00000020  // band 19
00382 #define  AUDIO_FU_CONTROL_BAND_EQ_100Hz         0x00000040  // band 20
00383 #define  AUDIO_FU_CONTROL_BAND_EQ_125Hz         0x00000080  // band 21*
00384 #define  AUDIO_FU_CONTROL_BAND_EQ_160Hz         0x00000100  // band 22
00385 #define  AUDIO_FU_CONTROL_BAND_EQ_200Hz         0x00000200  // band 23
00386 #define  AUDIO_FU_CONTROL_BAND_EQ_250Hz         0x00000400  // band 24*
00387 #define  AUDIO_FU_CONTROL_BAND_EQ_315Hz         0x00000800  // band 25
00388 #define  AUDIO_FU_CONTROL_BAND_EQ_400Hz         0x00001000  // band 26
00389 #define  AUDIO_FU_CONTROL_BAND_EQ_500Hz         0x00002000  // band 27*
00390 #define  AUDIO_FU_CONTROL_BAND_EQ_630Hz         0x00004000  // band 28
00391 #define  AUDIO_FU_CONTROL_BAND_EQ_800Hz         0x00008000  // band 29
00392 #define  AUDIO_FU_CONTROL_BAND_EQ_1000Hz        0x00010000  // band 30*
00393 #define  AUDIO_FU_CONTROL_BAND_EQ_1250Hz        0x00020000  // band 31
00394 #define  AUDIO_FU_CONTROL_BAND_EQ_1600Hz        0x00040000  // band 32
00395 #define  AUDIO_FU_CONTROL_BAND_EQ_2000Hz        0x00080000  // band 33*
00396 #define  AUDIO_FU_CONTROL_BAND_EQ_2500Hz        0x00100000  // band 34
00397 #define  AUDIO_FU_CONTROL_BAND_EQ_3150Hz        0x00200000  // band 35
00398 #define  AUDIO_FU_CONTROL_BAND_EQ_4000Hz        0x00400000  // band 36*
00399 #define  AUDIO_FU_CONTROL_BAND_EQ_5000Hz        0x00800000  // band 37
00400 #define  AUDIO_FU_CONTROL_BAND_EQ_6300Hz        0x01000000  // band 38
00401 #define  AUDIO_FU_CONTROL_BAND_EQ_8000Hz        0x02000000  // band 39*
00402 #define  AUDIO_FU_CONTROL_BAND_EQ_10000Hz       0x04000000  // band 40
00403 #define  AUDIO_FU_CONTROL_BAND_EQ_12500Hz       0x08000000  // band 41
00404 #define  AUDIO_FU_CONTROL_BAND_EQ_16000Hz       0x10000000  // band 42*
00405 #define  AUDIO_FU_CONTROL_BAND_EQ_20000Hz       0x20000000  // band 43
00410 #define  AUDIO_FU_CONTROL_DELAY_0MS             0x0000      // 0 ms
00411 #define  AUDIO_FU_CONTROL_DELAY_1MS             0x0040      // 1 ms
00412 #define  AUDIO_FU_CONTROL_DELAY_MAX             0xFFFF      // 1023.9844 ms
00415 
00416 
00423 #define  AUDIO_PU_CONTROL_CS_UD_UNDEFINED                   0x00
00424 #define  AUDIO_PU_CONTROL_CS_UD_ENABLE                      0x01
00425 #define  AUDIO_PU_CONTROL_CS_UD_MODE_SELECT                 0x02
00429 #define  AUDIO_PU_CONTROL_CS_DP_UNDEFINED                   0x00
00430 #define  AUDIO_PU_CONTROL_CS_DP_ENABLE                      0x01
00431 #define  AUDIO_PU_CONTROL_CS_DP_MODE_SELECT                 0x02
00435 #define  AUDIO_PU_CONTROL_CS_3D_UNDEFINED                   0x00
00436 #define  AUDIO_PU_CONTROL_CS_3D_ENABLE                      0x01
00437 #define  AUDIO_PU_CONTROL_CS_3D_SPACIOUSNESS                0x03
00441 #define  AUDIO_PU_CONTROL_CS_RV_UNDEFINED                   0x00
00442 #define  AUDIO_PU_CONTROL_CS_RV_ENABLE                      0x01
00443 #define  AUDIO_PU_CONTROL_CS_RV_LEVEL                       0x02
00444 #define  AUDIO_PU_CONTROL_CS_RV_TIME                        0x03
00445 #define  AUDIO_PU_CONTROL_CS_RV_FEEDBACK                    0x04
00449 #define  AUDIO_PU_CONTROL_CS_CH_UNDEFINED                   0x00
00450 #define  AUDIO_PU_CONTROL_CS_CH_ENABLE                      0x01
00451 #define  AUDIO_PU_CONTROL_CS_CH_LEVEL                       0x02
00452 #define  AUDIO_PU_CONTROL_CS_CH_RATE                        0x03
00453 #define  AUDIO_PU_CONTROL_CS_CH_DEPTH                       0x04
00457 #define  AUDIO_PU_CONTROL_CS_DR_UNDEFINED                   0x00
00458 #define  AUDIO_PU_CONTROL_CS_DR_ENABLE                      0x01
00459 #define  AUDIO_PU_CONTROL_CS_DR_COMPRESSION_RATE            0x02
00460 #define  AUDIO_PU_CONTROL_CS_DR_MAXAMPL                     0x03
00461 #define  AUDIO_PU_CONTROL_CS_DR_THRESHOLD                   0x04
00462 #define  AUDIO_PU_CONTROL_CS_DR_ATTACK_TIME                 0x05
00463 #define  AUDIO_PU_CONTROL_CS_DR_RELEASE_TIME                0x06
00467 #define  AUDIO_PU_CONTROL_CS_RV_TYPE_ROOM1                  0     // simulates the reverberation of a small room.
00468 #define  AUDIO_PU_CONTROL_CS_RV_TYPE_ROOM2                  1     // simulates the reverberation of a medium room.
00469 #define  AUDIO_PU_CONTROL_CS_RV_TYPE_ROOM3                  2     // simulates the reverberation of a large room.
00470 #define  AUDIO_PU_CONTROL_CS_RV_TYPE_HALL1                  3     // simulates the reverberation of a medium concert hall.
00471 #define  AUDIO_PU_CONTROL_CS_RV_TYPE_HALL2                  4     // simulates the reverberation of a large concert hall.
00472 #define  AUDIO_PU_CONTROL_CS_RV_TYPE_PLATE                  5     // simulates a plate reverberation (a studio device using a metal plate).
00473 #define  AUDIO_PU_CONTROL_CS_RV_TYPE_DELAY                  6     // conventional delay that produces echo effects.
00474 #define  AUDIO_PU_CONTROL_CS_RV_TYPE_PANNING_DELAY          7     // special delay in which the delayed sounds move left and right.
00479 #define  AUDIO_PU_CONTROL_CS_DR_RELEASE_TIME_DELAY_0MS             0x0000      // 0 ms
00480 #define  AUDIO_PU_CONTROL_CS_DR_RELEASE_TIME_DELAY_MAX             0xFFFF      // 255.9961 ms
00483 
00484 
00491 #define  AUDIO_XU_CONTROL_CS_UNDEFINED                     0x00
00492 #define  AUDIO_XU_CONTROL_CS_ENABLE                        0x01
00495 
00502 #define  AUDIO_EP_CONTROL_CS_UNDEFINED                      0x00
00503 #define  AUDIO_EP_CONTROL_CS_SAMPLING_FREQ                  0x01
00504 #define  AUDIO_EP_CONTROL_CS_PITCH                          0x02
00507 
00508 
00515 
00516 
00523 
00524 
00537 #define  AUDIO_CONTROL_LEVEL16_DB_STEP                      (1L/256) //  1/256 dB
00538 #define  AUDIO_CONTROL_LEVEL16_MAX                          0x7FFF   //  127.9961 dB
00539 #define  AUDIO_CONTROL_LEVEL16_1DB                          0x0100   //         1 dB
00540 #define  AUDIO_CONTROL_LEVEL16_0DB                          0x0000   //         0 dB
00541 #define  AUDIO_CONTROL_LEVEL16_M1DB                         0xFE00   //        -1 dB
00542 #define  AUDIO_CONTROL_LEVEL16_MIN                          0x8001   // -127.9961 dB
00543 #define  AUDIO_CONTROL_LEVEL16_MUTE                         0x8000   // -infinit dB (CUR attribute only)
00552 #define  AUDIO_CONTROL_LEVEL8_MAX                           0x7F     // +31.75 dB
00553 #define  AUDIO_CONTROL_LEVEL8_0DB                           0x00     //      0 dB
00554 #define  AUDIO_CONTROL_LEVEL8_MIN                           0x80    //  -32.00 dB
00557 
00559 
00560 #endif   // _USB_COMMUN_AUDIO_H_
00561 

Generated on Fri Oct 31 15:31:41 2008 for ATMEL by  doxygen 1.5.3