Created
October 11, 2022 10:31
-
-
Save unknown321/a9e124a28a85944fc0728134b3a79b78 to your computer and use it in GitHub Desktop.
audio/sku_sprd/primary_audio_policy_configuration.xml sm-x205
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- Default Primary Audio HAL Module Audio Policy Configuration include flie --> | |
| <module name="primary" halVersion="2.0"> | |
| <attachedDevices> | |
| <item>Speaker</item> | |
| <item>Earpiece</item> | |
| <item>Built-In Mic</item> | |
| <item>Built-In Back Mic</item> | |
| <item>Fm Record Device</item> | |
| <item>Telephony Rx</item> | |
| <item>Telephony Tx</item> | |
| </attachedDevices> | |
| <defaultOutputDevice>Speaker</defaultOutputDevice> | |
| <mixPorts> | |
| <!-- Tab A8 code for P210922-02750 by maoruiqian at 20210929 start --> | |
| <mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_PRIMARY|AUDIO_OUTPUT_FLAG_DEEP_BUFFER"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> | |
| </mixPort> | |
| <!-- Tab A8 code for P210922-02750 by maoruiqian at 20210929 end --> | |
| <!-- Tab A8 code for P210923-06623 by dongtianbao at 20211011 start --> | |
| <mixPort name="low-latency" role="source" flags="AUDIO_OUTPUT_FLAG_FAST"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> | |
| </mixPort> | |
| <!-- Tab A8 code for P210923-06623 by dongtianbao at 20211011 end --> | |
| <mixPort name="primary input" role="sink"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" | |
| channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/> | |
| </mixPort> | |
| <mixPort name="recognition input" role="sink"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" | |
| channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/> | |
| </mixPort> | |
| <mixPort name="fm input" role="sink"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" | |
| channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/> | |
| </mixPort> | |
| <mixPort name="voice_tx" role="source" flags="AUDIO_OUTPUT_FLAG_INCALL_MUSIC"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="8000,16000,32000,48000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/> | |
| </mixPort> | |
| </mixPorts> | |
| <devicePorts> | |
| <!-- Output devices declaration, i.e. Sink DEVICE PORT --> | |
| <devicePort tagName="Earpiece" type="AUDIO_DEVICE_OUT_EARPIECE" role="sink"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_MONO"/> | |
| </devicePort> | |
| <devicePort tagName="Speaker" role="sink" type="AUDIO_DEVICE_OUT_SPEAKER"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> | |
| </devicePort> | |
| <devicePort tagName="Wired Headset" type="AUDIO_DEVICE_OUT_WIRED_HEADSET" role="sink"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> | |
| </devicePort> | |
| <devicePort tagName="Wired Headphones" type="AUDIO_DEVICE_OUT_WIRED_HEADPHONE" role="sink"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> | |
| </devicePort> | |
| <devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> | |
| </devicePort> | |
| <devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" role="sink"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> | |
| </devicePort> | |
| <devicePort tagName="BT SCO Car Kit" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT" role="sink"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> | |
| </devicePort> | |
| <devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" | |
| channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/> | |
| </devicePort> | |
| <devicePort tagName="Built-In Back Mic" type="AUDIO_DEVICE_IN_BACK_MIC" role="source"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" | |
| channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/> | |
| </devicePort> | |
| <devicePort tagName="Wired Headset Mic" type="AUDIO_DEVICE_IN_WIRED_HEADSET" role="source"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" | |
| channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/> | |
| </devicePort> | |
| <devicePort tagName="BT SCO Headset Mic" type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_IN_MONO"/> | |
| </devicePort> | |
| <devicePort tagName="Telephony Rx" type="AUDIO_DEVICE_IN_TELEPHONY_RX" role="source"> | |
| </devicePort> | |
| <devicePort tagName="Telephony Tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink"> | |
| </devicePort> | |
| <devicePort tagName="Fm Record Device" type="AUDIO_DEVICE_IN_FM_TUNER" role="source"> | |
| <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" | |
| samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_IN_MONO"/> | |
| </devicePort> | |
| <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink"/> | |
| <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"/> | |
| <devicePort tagName="USB Device In" type="AUDIO_DEVICE_IN_USB_DEVICE" role="source"/> | |
| <devicePort tagName="USB Headset In" type="AUDIO_DEVICE_IN_USB_HEADSET" role="source"/> | |
| </devicePorts> | |
| <!-- route declaration, i.e. list all available sources for a given sink --> | |
| <routes> | |
| <!-- Tab A8 code for P210923-06623 by dongtianbao at 20211011 start --> | |
| <route type="mix" sink="Earpiece" | |
| sources="primary output,low-latency"/> | |
| <route type="mix" sink="Speaker" | |
| sources="primary output,low-latency"/> | |
| <route type="mix" sink="Wired Headset" | |
| sources="primary output,low-latency"/> | |
| <route type="mix" sink="Wired Headphones" | |
| sources="primary output,low-latency"/> | |
| <route type="mix" sink="BT SCO" | |
| sources="primary output,low-latency"/> | |
| <route type="mix" sink="BT SCO Headset" | |
| sources="primary output,low-latency"/> | |
| <route type="mix" sink="BT SCO Car Kit" | |
| sources="primary output,low-latency"/> | |
| <route type="mix" sink="primary input" | |
| sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,USB Device In,USB Headset In,Telephony Rx"/> | |
| <route type="mix" sink="recognition input" | |
| sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,USB Headset In,USB Device In"/> | |
| <route type="mix" sink="fm input" | |
| sources="Fm Record Device"/> | |
| <route type="mix" sink="USB Device Out" | |
| sources="primary output,low-latency"/> | |
| <route type="mix" sink="USB Headset Out" | |
| sources="primary output,low-latency"/> | |
| <!-- Tab A8 code for P210923-06623 by dongtianbao at 20211011 end --> | |
| <route type="mix" sink="Telephony Tx" | |
| sources="voice_tx"/> | |
| </routes> | |
| </module> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment