Line data Source code
1 0 : /* 2 : * Copyright (c) 2023 Nordic Semiconductor ASA 3 : * 4 : * SPDX-License-Identifier: Apache-2.0 5 : */ 6 : 7 : #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_USB_AUDIO_H 8 : #define ZEPHYR_INCLUDE_DT_BINDINGS_USB_AUDIO_H 9 : 10 : /* USB Device Class Definition for Audio Devices Release 2.0 May 31, 2006 11 : * A.7 Audio Function Category Codes 12 : */ 13 0 : #define AUDIO_FUNCTION_SUBCLASS_UNDEFINED 0x00 14 0 : #define AUDIO_FUNCTION_DESKTOP_SPEAKER 0x01 15 0 : #define AUDIO_FUNCTION_HOME_THEATER 0x02 16 0 : #define AUDIO_FUNCTION_MICROPHONE 0x03 17 0 : #define AUDIO_FUNCTION_HEADSET 0x04 18 0 : #define AUDIO_FUNCTION_TELEPHONE 0x05 19 0 : #define AUDIO_FUNCTION_CONVERTER 0x06 20 0 : #define AUDIO_FUNCTION_VOICE_SOUND_RECORDER 0x07 21 0 : #define AUDIO_FUNCTION_IO_BOX 0x08 22 0 : #define AUDIO_FUNCTION_MUSICAL_INSTRUMENT 0x09 23 0 : #define AUDIO_FUNCTION_PRO_AUDIO 0x0A 24 0 : #define AUDIO_FUNCTION_AUDIO_VIDEO 0x0B 25 0 : #define AUDIO_FUNCTION_CONTROL_PANEL 0x0C 26 0 : #define AUDIO_FUNCTION_OTHER 0xFF 27 : 28 : 29 : /* USB Device Class Definition for Terminal Types 30 : * Both "Universal Serial Bus Device Class Definition for Terminal Types" 31 : * Release 2.0 May 31, 2006 and Release 3.0 September 22, 2016 contain exactly 32 : * the same terminal types and values. 33 : */ 34 : 35 : /* 2.1 USB Terminal Types */ 36 0 : #define USB_TERMINAL_UNDEFINED 0x0100 37 0 : #define USB_TERMINAL_STREAMING 0x0101 38 0 : #define USB_TERMINAL_VENDOR_SPECIFIC 0x01FF 39 : 40 : /* 2.2 Input Terminal Types */ 41 0 : #define INPUT_TERMINAL_UNDEFINED 0x0200 42 0 : #define INPUT_TERMINAL_MICROPHONE 0x0201 43 0 : #define INPUT_TERMINAL_DESKTOP_MICROPHONE 0x0202 44 0 : #define INPUT_TERMINAL_PERSONAL_MICROPHONE 0x0203 45 0 : #define INPUT_TERMINAL_OMNI_DIRECTIONAL_MICROPHONE 0x0204 46 0 : #define INPUT_TERMINAL_MICROPHONE_ARRAY 0x0205 47 0 : #define INPUT_TERMINAL_PROCESSING_MICROPHONE_ARRAY 0x0206 48 : 49 : /* 2.3 Output Terminal Types */ 50 0 : #define OUTPUT_TERMINAL_UNDEFINED 0x0300 51 0 : #define OUTPUT_TERMINAL_SPEAKER 0x0301 52 0 : #define OUTPUT_TERMINAL_HEADPHONES 0x0302 53 0 : #define OUTPUT_TERMINAL_HEAD_MOUNTED_DISPLAY_AUDIO 0x0303 54 0 : #define OUTPUT_TERMINAL_DESKTOP_SPEAKER 0x0304 55 0 : #define OUTPUT_TERMINAL_ROOM_SPEAKER 0x0305 56 0 : #define OUTPUT_TERMINAL_COMMUNICATION_SPEAKER 0x0306 57 0 : #define OUTPUT_TERMINAL_LOW_FREQUENCY_EFFECTS_SPEAKER 0x0307 58 : 59 : /* 2.4 Bi-directional Terminal Types */ 60 0 : #define BIDIRECTIONAL_TERMINAL_UNDEFINED 0x0400 61 0 : #define BIDIRECTIONAL_TERMINAL_HANDSET 0x0401 62 0 : #define BIDIRECTIONAL_TERMINAL_HEADSET 0x0402 63 0 : #define BIDIRECTIONAL_TERMINAL_SPEAKERPHONE_NO_ECHO_REDUCTION 0x0403 64 0 : #define BIDIRECTIONAL_TERMINAL_ECHO_SUPPRESSING_SPEAKERPHONE 0x0404 65 0 : #define BIDIRECTIONAL_TERMINAL_ECHO_CANCELLING_SPEAKERPHONE 0x0405 66 : 67 : /* 2.5 Telephony Terminal Types */ 68 0 : #define TELEPHONY_TERMINAL_UNDEFINED 0x0500 69 0 : #define TELEPHONY_TERMINAL_PHONE_LINE 0x0501 70 0 : #define TELEPHONY_TERMINAL_TELEPHONE 0x0502 71 0 : #define TELEPHONY_TERMINAL_DOWN_LINE_PHONE 0x0503 72 : 73 : /* 2.6 External Terminal Types */ 74 0 : #define EXTERNAL_TERMINAL_UNDEFINED 0x0600 75 0 : #define EXTERNAL_TERMINAL_ANALOG_CONNECTOR 0x0601 76 0 : #define EXTERNAL_TERMINAL_DIGITAL_AUDIO_INTERFACE 0x0602 77 0 : #define EXTERNAL_TERMINAL_LINE_CONNECTOR 0x0603 78 0 : #define EXTERNAL_TERMINAL_LEGACY_AUDIO_CONNECTOR 0x0604 79 0 : #define EXTERNAL_TERMINAL_SPDIF_INTERFACE 0x0605 80 0 : #define EXTERNAL_TERMINAL_1394_DA_STREAM 0x0606 81 0 : #define EXTERNAL_TERMINAL_1394_DV_STREAM_SOUNDTRACK 0x0607 82 0 : #define EXTERNAL_TERMINAL_ADAT_LIGHTPIPE 0x0608 83 0 : #define EXTERNAL_TERMINAL_TDIF 0x0609 84 0 : #define EXTERNAL_TERMINAL_MADI 0x060A 85 : 86 : /* 2.7 Embedded Function Terminal Types */ 87 0 : #define EMBEDDED_TERMINAL_UNDEFINED 0x0700 88 0 : #define EMBEDDED_TERMINAL_LEVEL_CALIBRATION_NOISE_SOURCE 0x0701 89 0 : #define EMBEDDED_TERMINAL_EQUALIZATION_NOISE 0x0702 90 0 : #define EMBEDDED_TERMINAL_CD_PLAYER 0x0703 91 0 : #define EMBEDDED_TERMINAL_DAT 0x0704 92 0 : #define EMBEDDED_TERMINAL_DCC 0x0705 93 0 : #define EMBEDDED_TERMINAL_COMPRESSED_AUDIO_PLAYER 0x0706 94 0 : #define EMBEDDED_TERMINAL_ANALOG_TAPE 0x0707 95 0 : #define EMBEDDED_TERMINAL_PHONOGRAPH 0x0708 96 0 : #define EMBEDDED_TERMINAL_VCR_AUDIO 0x0709 97 0 : #define EMBEDDED_TERMINAL_VIDEO_DISC_AUDIO 0x070A 98 0 : #define EMBEDDED_TERMINAL_DVD_AUDIO 0x070B 99 0 : #define EMBEDDED_TERMINAL_TV_TUNER_AUDIO 0x070C 100 0 : #define EMBEDDED_TERMINAL_SATELLITE_RECEIVER_AUDIO 0x070D 101 0 : #define EMBEDDED_TERMINAL_CABLE_TUNER_AUDIO 0x070E 102 0 : #define EMBEDDED_TERMINAL_DSS_AUDIO 0x070F 103 0 : #define EMBEDDED_TERMINAL_RADIO_RECEIVER 0x0710 104 0 : #define EMBEDDED_TERMINAL_RADIO_TRANSMITTER 0x0711 105 0 : #define EMBEDDED_TERMINAL_MULTI_TRACK_RECORDER 0x0712 106 0 : #define EMBEDDED_TERMINAL_SYNTHESIZER 0x0713 107 0 : #define EMBEDDED_TERMINAL_PIANO 0x0714 108 0 : #define EMBEDDED_TERMINAL_GUITAR 0x0715 109 0 : #define EMBEDDED_TERMINAL_DRUMS_RHYTHM 0x0716 110 0 : #define EMBEDDED_TERMINAL_OTHER_MUSICAL_INSTRUMENT 0x0717 111 : 112 : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_USB_AUDIO_H */