Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 1 | # Global configuration section: lists input and output devices always present on the device |
| 2 | # as well as the output device selected by default. |
| 3 | # Devices are designated by a string that corresponds to the enum in audio.h |
| 4 | |
| 5 | global_configuration { |
| 6 | attached_output_devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_TELEPHONY_TX |
| 7 | default_output_device AUDIO_DEVICE_OUT_SPEAKER |
| 8 | attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_THIRD_MIC|AUDIO_DEVICE_IN_REMOTE_SUBMIX|AUDIO_DEVICE_IN_FM_RX|AUDIO_DEVICE_IN_FM_RX_A2DP|AUDIO_DEVICE_IN_TELEPHONY_RX|AUDIO_DEVICE_IN_VOICE_CALL |
| 9 | } |
| 10 | |
| 11 | # audio hardware module section: contains descriptors for all audio hw modules present on the |
| 12 | # device. Each hw module node is named after the corresponding hw module library base name. |
| 13 | # For instance, "primary" corresponds to audio.primary.<device>.so. |
| 14 | # The "primary" module is mandatory and must include at least one output with |
| 15 | # AUDIO_OUTPUT_FLAG_PRIMARY flag. |
| 16 | # Each module descriptor contains one or more output profile descriptors and zero or more |
| 17 | # input profile descriptors. Each profile lists all the parameters supported by a given output |
| 18 | # or input stream category. |
| 19 | # The "channel_masks", "formats", "devices" and "flags" are specified using strings corresponding |
| 20 | # to enums in audio.h and audio_policy.h. They are concatenated by use of "|" without space or "\n". |
| 21 | |
| 22 | audio_hw_modules { |
| 23 | primary { |
| 24 | outputs { |
| 25 | primary { |
| 26 | sampling_rates 44100|48000 |
| 27 | channel_masks AUDIO_CHANNEL_OUT_STEREO |
| 28 | formats AUDIO_FORMAT_PCM_16_BIT |
| 29 | devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_LINE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_FM|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET |
| 30 | flags AUDIO_OUTPUT_FLAG_PRIMARY |
| 31 | } |
| 32 | fast { |
| 33 | sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000 |
| 34 | channel_masks AUDIO_CHANNEL_OUT_STEREO |
| 35 | formats AUDIO_FORMAT_PCM_16_BIT |
| 36 | devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET |
| 37 | flags AUDIO_OUTPUT_FLAG_FAST |
| 38 | } |
| 39 | hdmi { |
| 40 | sampling_rates 48000 |
| 41 | channel_masks dynamic |
| 42 | formats AUDIO_FORMAT_PCM_16_BIT |
| 43 | devices AUDIO_DEVICE_OUT_AUX_DIGITAL |
| 44 | flags AUDIO_OUTPUT_FLAG_MULTI_CH |
| 45 | } |
| 46 | compress_offload { |
| 47 | sampling_rates 8000|11025|16000|22050|32000|44100|48000 |
| 48 | channel_masks AUDIO_CHANNEL_OUT_MONO|AUDIO_CHANNEL_OUT_STEREO|AUDIO_CHANNEL_OUT_2POINT1|AUDIO_CHANNEL_OUT_QUAD|AUDIO_CHANNEL_OUT_PENTA|AUDIO_CHANNEL_OUT_5POINT1|AUDIO_CHANNEL_OUT_6POINT1|AUDIO_CHANNEL_OUT_7POINT1 |
| 49 | formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_AAC|AUDIO_FORMAT_AC3|AUDIO_FORMAT_EAC3 |
| 50 | devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET |
| 51 | flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING |
| 52 | } |
| 53 | voip_rx { |
| 54 | sampling_rates 8000|16000 |
| 55 | channel_masks AUDIO_CHANNEL_OUT_MONO |
| 56 | formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_AMR_NB|AUDIO_FORMAT_AMR_WB|AUDIO_FORMAT_QCELP|AUDIO_FORMAT_EVRC|AUDIO_FORMAT_EVRCB|AUDIO_FORMAT_EVRCWB|AUDIO_FORMAT_EVRCNW |
| 57 | devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_LINE |
| 58 | flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_VOIP_RX |
| 59 | } |
| 60 | } |
| 61 | inputs { |
| 62 | primary { |
| 63 | sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000 |
| 64 | channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO|AUDIO_CHANNEL_IN_FRONT_BACK|AUDIO_CHANNEL_IN_VOICE_UPLINK|AUDIO_CHANNEL_IN_VOICE_DNLINK |
| 65 | formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_AMR_NB|AUDIO_FORMAT_AMR_WB|AUDIO_FORMAT_QCELP|AUDIO_FORMAT_EVRC|AUDIO_FORMAT_EVRCB|AUDIO_FORMAT_EVRCWB|AUDIO_FORMAT_EVRCNW |
| 66 | devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADPHONE|AUDIO_DEVICE_IN_AUX_DIGITAL|AUDIO_DEVICE_IN_VOICE_CALL|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_THIRD_MIC|AUDIO_DEVICE_IN_FM|AUDIO_DEVICE_IN_FM_RX|AUDIO_DEVICE_IN_FM_RX_A2DP |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | a2dp { |
| 71 | outputs { |
| 72 | a2dp { |
| 73 | sampling_rates 44100 |
| 74 | channel_masks AUDIO_CHANNEL_OUT_STEREO |
| 75 | formats AUDIO_FORMAT_PCM_16_BIT |
| 76 | devices AUDIO_DEVICE_OUT_ALL_A2DP |
| 77 | } |
| 78 | } |
| 79 | inputs { |
| 80 | a2dp { |
| 81 | sampling_rates 44100|48000 |
| 82 | channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO |
| 83 | formats AUDIO_FORMAT_PCM_16_BIT |
| 84 | devices AUDIO_DEVICE_IN_BLUETOOTH_A2DP |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | usb { |
| 89 | outputs { |
| 90 | usb_accessory { |
| 91 | sampling_rates 44100 |
| 92 | channel_masks AUDIO_CHANNEL_OUT_STEREO |
| 93 | formats AUDIO_FORMAT_PCM_16_BIT |
| 94 | devices AUDIO_DEVICE_OUT_USB_ACCESSORY |
| 95 | } |
| 96 | usb_device { |
| 97 | sampling_rates 44100|48000 |
| 98 | channel_masks dynamic |
| 99 | formats AUDIO_FORMAT_PCM_16_BIT |
| 100 | devices AUDIO_DEVICE_OUT_USB_DEVICE|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET |
| 101 | } |
| 102 | } |
| 103 | } |
| 104 | tms { |
| 105 | outputs { |
| 106 | tms { |
| 107 | sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000 |
| 108 | channel_masks AUDIO_CHANNEL_OUT_STEREO |
| 109 | formats AUDIO_FORMAT_PCM_16_BIT |
| 110 | devices AUDIO_DEVICE_OUT_EXTERNAL_TMS |
| 111 | } |
| 112 | } |
| 113 | inputs { |
| 114 | tms { |
| 115 | sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000 |
| 116 | channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO |
| 117 | formats AUDIO_FORMAT_PCM_16_BIT |
| 118 | devices AUDIO_DEVICE_IN_EXTERNAL_TMS |
| 119 | } |
| 120 | } |
| 121 | } |
| 122 | r_submix { |
| 123 | outputs { |
| 124 | submix { |
| 125 | sampling_rates 48000 |
| 126 | channel_masks AUDIO_CHANNEL_OUT_STEREO |
| 127 | formats AUDIO_FORMAT_PCM_16_BIT |
| 128 | devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX |
| 129 | } |
| 130 | } |
| 131 | inputs { |
| 132 | submix { |
| 133 | sampling_rates 48000 |
| 134 | channel_masks AUDIO_CHANNEL_IN_STEREO |
| 135 | formats AUDIO_FORMAT_PCM_16_BIT |
| 136 | devices AUDIO_DEVICE_IN_REMOTE_SUBMIX |
| 137 | } |
| 138 | } |
| 139 | } |
| 140 | } |