merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
Michael Bestas | b603e38 | 2023-02-02 17:41:45 +0200 | [diff] [blame] | 2 | <!-- Copyright (c) 2016-2021, The Linux Foundation. All rights reserved |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 3 | Not a Contribution. |
| 4 | --> |
| 5 | <!-- Copyright (C) 2015 The Android Open Source Project |
| 6 | |
| 7 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | you may not use this file except in compliance with the License. |
| 9 | You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | --> |
| 19 | |
| 20 | <audioPolicyConfiguration version="1.0" xmlns:xi="http://www.w3.org/2001/XInclude"> |
| 21 | <!-- version section contains a “version” tag in the form “major.minor” e.g version=”1.0” --> |
| 22 | |
| 23 | <!-- Global configuration Decalaration --> |
| 24 | <globalConfiguration speaker_drc_enabled="true" call_screen_mode_supported="true"/> |
| 25 | |
| 26 | |
| 27 | <!-- Modules section: |
| 28 | There is one section per audio HW module present on the platform. |
| 29 | Each module section will contains two mandatory tags for audio HAL “halVersion” and “name”. |
| 30 | The module names are the same as in current .conf file: |
| 31 | “primary”, “A2DP”, “remote_submix”, “USB” |
| 32 | Each module will contain the following sections: |
| 33 | “devicePorts”: a list of device descriptors for all input and output devices accessible via this |
| 34 | module. |
| 35 | This contains both permanently attached devices and removable devices. |
| 36 | “mixPorts”: listing all output and input streams exposed by the audio HAL |
| 37 | “routes”: list of possible connections between input and output devices or between stream and |
| 38 | devices. |
| 39 | "route": is defined by an attribute: |
| 40 | -"type": <mux|mix> means all sources are mutual exclusive (mux) or can be mixed (mix) |
| 41 | -"sink": the sink involved in this route |
| 42 | -"sources": all the sources than can be connected to the sink via vis route |
| 43 | “attachedDevices”: permanently attached devices. |
| 44 | The attachedDevices section is a list of devices names. The names correspond to device names |
| 45 | defined in <devicePorts> section. |
| 46 | “defaultOutputDevice”: device to be used by default when no policy rule applies |
| 47 | --> |
| 48 | <modules> |
| 49 | <!-- Primary Audio HAL --> |
| 50 | <module name="primary" halVersion="2.0"> |
| 51 | <attachedDevices> |
| 52 | <item>Earpiece</item> |
| 53 | <item>Speaker</item> |
| 54 | <item>Telephony Tx</item> |
| 55 | <item>Built-In Mic</item> |
| 56 | <item>Built-In Back Mic</item> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 57 | <item>Telephony Rx</item> |
| 58 | </attachedDevices> |
| 59 | <defaultOutputDevice>Speaker</defaultOutputDevice> |
| 60 | <mixPorts> |
| 61 | <mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_PRIMARY"> |
Adithya R | f91aad6 | 2020-10-18 19:54:00 +0530 | [diff] [blame] | 62 | <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED" |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 63 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> |
| 64 | </mixPort> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 65 | <mixPort name="deep_buffer" role="source" |
| 66 | flags="AUDIO_OUTPUT_FLAG_DEEP_BUFFER"> |
Adithya R | f91aad6 | 2020-10-18 19:54:00 +0530 | [diff] [blame] | 67 | <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED" |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 68 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> |
| 69 | </mixPort> |
| 70 | <mixPort name="mmap_no_irq_out" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_MMAP_NOIRQ"> |
| 71 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 72 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> |
| 73 | </mixPort> |
| 74 | <mixPort name="hifi_playback" role="source" /> |
| 75 | <mixPort name="compress_passthrough" role="source" |
| 76 | flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING"> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 77 | </mixPort> |
| 78 | <mixPort name="direct_pcm" role="source" |
| 79 | flags="AUDIO_OUTPUT_FLAG_DIRECT"> |
| 80 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 81 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000" |
Tommy Webb | 8837e23 | 2024-05-14 20:37:55 +0000 | [diff] [blame] | 82 | channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 83 | <profile name="" format="AUDIO_FORMAT_PCM_8_24_BIT" |
| 84 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000,352800,384000" |
Tommy Webb | 8837e23 | 2024-05-14 20:37:55 +0000 | [diff] [blame] | 85 | channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 86 | <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED" |
| 87 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000,352800,384000" |
Tommy Webb | 8837e23 | 2024-05-14 20:37:55 +0000 | [diff] [blame] | 88 | channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 89 | <profile name="" format="AUDIO_FORMAT_PCM_32_BIT" |
| 90 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000,352800,384000" |
Tommy Webb | 8837e23 | 2024-05-14 20:37:55 +0000 | [diff] [blame] | 91 | channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 92 | </mixPort> |
| 93 | <mixPort name="compressed_offload" role="source" |
| 94 | flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING"> |
| 95 | <profile name="" format="AUDIO_FORMAT_MP3" |
| 96 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" |
| 97 | channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> |
| 98 | <profile name="" format="AUDIO_FORMAT_FLAC" |
| 99 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000" |
| 100 | channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> |
| 101 | <profile name="" format="AUDIO_FORMAT_ALAC" |
| 102 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000" |
Tommy Webb | 8837e23 | 2024-05-14 20:37:55 +0000 | [diff] [blame] | 103 | channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 104 | <profile name="" format="AUDIO_FORMAT_APE" |
| 105 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000" |
| 106 | channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> |
| 107 | <profile name="" format="AUDIO_FORMAT_AAC_LC" |
| 108 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000" |
| 109 | channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> |
| 110 | <profile name="" format="AUDIO_FORMAT_AAC_HE_V1" |
| 111 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000" |
| 112 | channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> |
| 113 | <profile name="" format="AUDIO_FORMAT_AAC_HE_V2" |
| 114 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000" |
| 115 | channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> |
| 116 | <profile name="" format="AUDIO_FORMAT_DTS" |
| 117 | samplingRates="32000,44100,48000" |
Tommy Webb | 8837e23 | 2024-05-14 20:37:55 +0000 | [diff] [blame] | 118 | channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 119 | <profile name="" format="AUDIO_FORMAT_DTS_HD" |
| 120 | samplingRates="32000,44100,48000,64000,88200,96000,128000,176400,192000" |
Tommy Webb | 8837e23 | 2024-05-14 20:37:55 +0000 | [diff] [blame] | 121 | channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 122 | <profile name="" format="AUDIO_FORMAT_WMA" |
| 123 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" |
Tommy Webb | 8837e23 | 2024-05-14 20:37:55 +0000 | [diff] [blame] | 124 | channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 125 | <profile name="" format="AUDIO_FORMAT_WMA_PRO" |
| 126 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000" |
Tommy Webb | 8837e23 | 2024-05-14 20:37:55 +0000 | [diff] [blame] | 127 | channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 128 | <profile name="" format="AUDIO_FORMAT_AAC_ADTS_LC" |
| 129 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000" |
| 130 | channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> |
| 131 | <profile name="" format="AUDIO_FORMAT_AAC_ADTS_HE_V1" |
| 132 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000" |
| 133 | channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> |
| 134 | <profile name="" format="AUDIO_FORMAT_AAC_ADTS_HE_V2" |
| 135 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000" |
| 136 | channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/> |
| 137 | </mixPort> |
| 138 | <mixPort name="voice_tx" role="source"> |
| 139 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 140 | samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> |
| 141 | </mixPort> |
| 142 | <mixPort name="voip_rx" role="source" |
| 143 | flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_VOIP_RX"> |
| 144 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 145 | samplingRates="8000,16000,32000,48000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> |
| 146 | </mixPort> |
| 147 | <mixPort name="incall_music_uplink" role="source" |
| 148 | flags="AUDIO_OUTPUT_FLAG_INCALL_MUSIC"> |
| 149 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 150 | samplingRates="8000,16000,48000" |
| 151 | channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> |
| 152 | </mixPort> |
| 153 | |
Samyak Jain | 50e92a4 | 2019-01-22 14:58:10 +0530 | [diff] [blame] | 154 | <mixPort name="primary input" role="sink"> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 155 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 156 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" |
| 157 | channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/> |
| 158 | </mixPort> |
| 159 | <mixPort name="voip_tx" role="sink" |
| 160 | flags="AUDIO_INPUT_FLAG_VOIP_TX"> |
| 161 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 162 | samplingRates="8000,16000,32000,48000" channelMasks="AUDIO_CHANNEL_IN_MONO"/> |
| 163 | </mixPort> |
| 164 | <mixPort name="usb_surround_sound" role="sink"> |
| 165 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 166 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000" |
| 167 | channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> |
| 168 | <profile name="" format="AUDIO_FORMAT_PCM_32_BIT" |
| 169 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000" |
| 170 | channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> |
| 171 | <profile name="" format="AUDIO_FORMAT_PCM_FLOAT" |
| 172 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000" |
Michael Bestas | b603e38 | 2023-02-02 17:41:45 +0200 | [diff] [blame] | 173 | channelMasks="AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_INDEX_MASK_2,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 174 | </mixPort> |
| 175 | <mixPort name="record_24" role="sink" maxOpenCount="2" maxActiveCount="2"> |
| 176 | <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED" |
| 177 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,96000,192000" |
| 178 | channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4"/> |
| 179 | <profile name="" format="AUDIO_FORMAT_PCM_8_24_BIT" |
| 180 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,96000,192000" |
| 181 | channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4"/> |
| 182 | <profile name="" format="AUDIO_FORMAT_PCM_FLOAT" |
| 183 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,96000,192000" |
| 184 | channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4"/> |
| 185 | </mixPort> |
| 186 | <mixPort name="voice_rx" role="sink"> |
| 187 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 188 | samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/> |
| 189 | </mixPort> |
| 190 | <mixPort name="mmap_no_irq_in" role="sink" flags="AUDIO_INPUT_FLAG_MMAP_NOIRQ"> |
| 191 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 192 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" |
| 193 | channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3"/> |
| 194 | </mixPort> |
| 195 | <mixPort name="hifi_input" role="sink" /> |
| 196 | <mixPort name="fast input" role="sink" |
| 197 | flags="AUDIO_INPUT_FLAG_FAST"> |
| 198 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 199 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" |
| 200 | channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/> |
| 201 | </mixPort> |
| 202 | <mixPort name="quad mic" role="sink"> |
| 203 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 204 | samplingRates="48000" |
| 205 | channelMasks="AUDIO_CHANNEL_INDEX_MASK_4"/> |
| 206 | </mixPort> |
| 207 | </mixPorts> |
| 208 | |
| 209 | <devicePorts> |
| 210 | <!-- Output devices declaration, i.e. Sink DEVICE PORT --> |
| 211 | <devicePort tagName="Earpiece" type="AUDIO_DEVICE_OUT_EARPIECE" role="sink"> |
| 212 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
Pierre-Hugues Husson | 347dd7a | 2018-04-24 00:14:28 +0200 | [diff] [blame] | 213 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 214 | </devicePort> |
| 215 | <devicePort tagName="Speaker" role="sink" type="AUDIO_DEVICE_OUT_SPEAKER" address=""> |
| 216 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 217 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> |
| 218 | </devicePort> |
| 219 | <devicePort tagName="Wired Headset" type="AUDIO_DEVICE_OUT_WIRED_HEADSET" role="sink"> |
| 220 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 221 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> |
| 222 | </devicePort> |
| 223 | <devicePort tagName="Wired Headphones" type="AUDIO_DEVICE_OUT_WIRED_HEADPHONE" role="sink"> |
| 224 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 225 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> |
| 226 | </devicePort> |
| 227 | <devicePort tagName="Line" type="AUDIO_DEVICE_OUT_LINE" role="sink"> |
| 228 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 229 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> |
| 230 | </devicePort> |
| 231 | <devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink"> |
| 232 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 233 | samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> |
| 234 | </devicePort> |
| 235 | <devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" role="sink"> |
| 236 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 237 | samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> |
| 238 | </devicePort> |
| 239 | <devicePort tagName="BT SCO Car Kit" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT" role="sink"> |
| 240 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 241 | samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> |
| 242 | </devicePort> |
| 243 | <devicePort tagName="Telephony Tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink"> |
| 244 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 245 | samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> |
| 246 | </devicePort> |
| 247 | <devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink"> |
| 248 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
Michael Bestas | b603e38 | 2023-02-02 17:41:45 +0200 | [diff] [blame] | 249 | samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 250 | </devicePort> |
| 251 | <devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink"> |
| 252 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
Michael Bestas | b603e38 | 2023-02-02 17:41:45 +0200 | [diff] [blame] | 253 | samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 254 | </devicePort> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 255 | <devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink" |
Michael Bestas | aa6d47b | 2022-03-28 20:47:59 +0300 | [diff] [blame] | 256 | encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_LDAC"> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 257 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 258 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> |
| 259 | </devicePort> |
| 260 | <devicePort tagName="BT A2DP Headphones" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES" role="sink" |
Michael Bestas | aa6d47b | 2022-03-28 20:47:59 +0300 | [diff] [blame] | 261 | encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_LDAC"> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 262 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 263 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> |
| 264 | </devicePort> |
| 265 | <devicePort tagName="BT A2DP Speaker" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER" role="sink" |
Michael Bestas | aa6d47b | 2022-03-28 20:47:59 +0300 | [diff] [blame] | 266 | encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_LDAC"> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 267 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 268 | samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> |
| 269 | </devicePort> |
| 270 | <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink"> |
| 271 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
Michael Bestas | b603e38 | 2023-02-02 17:41:45 +0200 | [diff] [blame] | 272 | samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 273 | </devicePort> |
| 274 | <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"> |
| 275 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
Michael Bestas | b603e38 | 2023-02-02 17:41:45 +0200 | [diff] [blame] | 276 | samplingRates="44100,48000,64000,88200,96000,128000,176400,192000"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 277 | </devicePort> |
| 278 | |
| 279 | <!-- Input devices declaration, i.e. Source DEVICE PORT --> |
| 280 | <devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source"> |
| 281 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 282 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" |
| 283 | channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/> |
| 284 | </devicePort> |
| 285 | <devicePort tagName="Built-In Back Mic" type="AUDIO_DEVICE_IN_BACK_MIC" role="source"> |
| 286 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 287 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" |
| 288 | channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/> |
| 289 | </devicePort> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 290 | <devicePort tagName="Wired Headset Mic" type="AUDIO_DEVICE_IN_WIRED_HEADSET" role="source"> |
| 291 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 292 | samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" |
| 293 | channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/> |
| 294 | </devicePort> |
| 295 | <devicePort tagName="BT SCO Headset Mic" type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source"> |
| 296 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 297 | samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_IN_MONO"/> |
| 298 | </devicePort> |
| 299 | <devicePort tagName="Telephony Rx" type="AUDIO_DEVICE_IN_TELEPHONY_RX" role="source"> |
| 300 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 301 | samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_IN_MONO"/> |
| 302 | </devicePort> |
| 303 | <devicePort tagName="USB Device In" type="AUDIO_DEVICE_IN_USB_DEVICE" role="source"> |
| 304 | </devicePort> |
| 305 | <devicePort tagName="USB Headset In" type="AUDIO_DEVICE_IN_USB_HEADSET" role="source"> |
| 306 | </devicePort> |
| 307 | |
| 308 | </devicePorts> |
| 309 | <!-- route declaration, i.e. list all available sources for a given sink --> |
| 310 | <routes> |
| 311 | <route type="mix" sink="Earpiece" |
LuK1337 | 1a8901e | 2018-01-29 00:55:25 +0100 | [diff] [blame] | 312 | sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 313 | <route type="mix" sink="Speaker" |
LuK1337 | 1a8901e | 2018-01-29 00:55:25 +0100 | [diff] [blame] | 314 | sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 315 | <route type="mix" sink="Wired Headset" |
LuK1337 | 1a8901e | 2018-01-29 00:55:25 +0100 | [diff] [blame] | 316 | sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 317 | <route type="mix" sink="Wired Headphones" |
LuK1337 | 1a8901e | 2018-01-29 00:55:25 +0100 | [diff] [blame] | 318 | sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 319 | <route type="mix" sink="Line" |
LuK1337 | 1a8901e | 2018-01-29 00:55:25 +0100 | [diff] [blame] | 320 | sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 321 | <route type="mix" sink="HDMI" |
LuK1337 | 1a8901e | 2018-01-29 00:55:25 +0100 | [diff] [blame] | 322 | sources="primary output,deep_buffer,direct_pcm,compressed_offload,compress_passthrough,voip_rx"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 323 | <route type="mix" sink="Proxy" |
LuK1337 | 1a8901e | 2018-01-29 00:55:25 +0100 | [diff] [blame] | 324 | sources="primary output,deep_buffer,direct_pcm,compressed_offload"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 325 | <route type="mix" sink="BT SCO" |
LuK1337 | 1a8901e | 2018-01-29 00:55:25 +0100 | [diff] [blame] | 326 | sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 327 | <route type="mix" sink="BT SCO Headset" |
LuK1337 | 1a8901e | 2018-01-29 00:55:25 +0100 | [diff] [blame] | 328 | sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 329 | <route type="mix" sink="BT SCO Car Kit" |
LuK1337 | 1a8901e | 2018-01-29 00:55:25 +0100 | [diff] [blame] | 330 | sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 331 | <route type="mix" sink="USB Device Out" |
LuK1337 | 1a8901e | 2018-01-29 00:55:25 +0100 | [diff] [blame] | 332 | sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 333 | <route type="mix" sink="USB Headset Out" |
LuK1337 | 1a8901e | 2018-01-29 00:55:25 +0100 | [diff] [blame] | 334 | sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 335 | <route type="mix" sink="Telephony Tx" |
| 336 | sources="voice_tx,incall_music_uplink"/> |
| 337 | <route type="mix" sink="voice_rx" |
| 338 | sources="Telephony Rx"/> |
| 339 | <route type="mix" sink="primary input" |
Michael Bestas | 0a0f54b | 2021-01-01 02:16:24 +0200 | [diff] [blame] | 340 | sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,Telephony Rx"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 341 | <route type="mix" sink="usb_surround_sound" |
| 342 | sources="USB Device In,USB Headset In"/> |
| 343 | <route type="mix" sink="voip_tx" |
| 344 | sources="Built-In Mic,Built-In Back Mic,BT SCO Headset Mic,USB Device In,USB Headset In,Wired Headset Mic"/> |
| 345 | <route type="mix" sink="record_24" |
| 346 | sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic"/> |
| 347 | <route type="mix" sink="mmap_no_irq_in" |
| 348 | sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,USB Device In,USB Headset In"/> |
| 349 | <route type="mix" sink="BT A2DP Out" |
| 350 | sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> |
| 351 | <route type="mix" sink="BT A2DP Headphones" |
| 352 | sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> |
| 353 | <route type="mix" sink="BT A2DP Speaker" |
| 354 | sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> |
| 355 | <route type="mix" sink="hifi_input" sources="USB Device In,USB Headset In" /> |
| 356 | <route type="mix" sink="fast input" |
| 357 | sources="Built-In Mic,Built-In Back Mic,BT SCO Headset Mic,USB Device In,USB Headset In,Wired Headset Mic"/> |
| 358 | <route type="mix" sink="quad mic" |
| 359 | sources="Built-In Mic,Built-In Back Mic,BT SCO Headset Mic,USB Device In,USB Headset In,Wired Headset Mic"/> |
| 360 | </routes> |
| 361 | |
| 362 | </module> |
| 363 | |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 364 | <!-- Usb Audio HAL --> |
| 365 | <module name="usb" halVersion="2.0"> |
| 366 | <mixPorts> |
| 367 | <mixPort name="usb_accessory output" role="source"> |
| 368 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 369 | samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> |
| 370 | </mixPort> |
| 371 | </mixPorts> |
| 372 | <devicePorts> |
| 373 | <devicePort tagName="USB Host Out" type="AUDIO_DEVICE_OUT_USB_ACCESSORY" role="sink"> |
| 374 | <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" |
| 375 | samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> |
| 376 | </devicePort> |
| 377 | </devicePorts> |
| 378 | <routes> |
| 379 | <route type="mix" sink="USB Host Out" |
| 380 | sources="usb_accessory output"/> |
| 381 | </routes> |
| 382 | </module> |
| 383 | |
| 384 | <!-- Remote Submix Audio HAL --> |
| 385 | <xi:include href="/vendor/etc/r_submix_audio_policy_configuration.xml"/> |
| 386 | |
Michael Bestas | bbdf153 | 2022-03-28 20:22:52 +0300 | [diff] [blame] | 387 | <!-- Bluetooth Audio HAL for Hearing aid --> |
| 388 | <xi:include href="/vendor/etc/bluetooth_hearing_aid_audio_policy_configuration.xml"/> |
merothh | d7649fd | 2022-01-02 20:05:19 +0530 | [diff] [blame] | 389 | |
| 390 | </modules> |
| 391 | <!-- End of Modules section --> |
| 392 | |
| 393 | <!-- Volume section --> |
| 394 | |
| 395 | <xi:include href="/vendor/etc/audio_policy_volumes.xml"/> |
| 396 | <xi:include href="/vendor/etc/default_volume_tables.xml"/> |
| 397 | |
| 398 | <!-- End of Volume section --> |
| 399 | |
| 400 | </audioPolicyConfiguration> |