1<?xml version="1.0" encoding="UTF-8"?> 2<!-- Default Primary Audio HAL Module Audio Policy Configuration include file --> 3<module name="primary" halVersion="3.0"> 4 <attachedDevices> 5 <item>Speaker</item> 6 <item>Built-In Mic</item> 7 <item>Telephony Tx</item> 8 <item>Telephony Rx</item> 9 <item>FM Tuner</item> 10 </attachedDevices> 11 <defaultOutputDevice>Speaker</defaultOutputDevice> 12 <mixPorts> 13 <mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_PRIMARY"> 14 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 15 samplingRates="8000 11025 16000 32000 44100 48000" 16 channelMasks="AUDIO_CHANNEL_OUT_MONO AUDIO_CHANNEL_OUT_STEREO"/> 17 </mixPort> 18 <mixPort name="primary input" role="sink"> 19 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 20 samplingRates="8000 11025 16000 32000 44100 48000" 21 channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> 22 </mixPort> 23 24 <mixPort name="telephony_tx" role="source"> 25 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 26 samplingRates="8000 11025 16000 32000 44100 48000" 27 channelMasks="AUDIO_CHANNEL_OUT_MONO AUDIO_CHANNEL_OUT_STEREO"/> 28 </mixPort> 29 <mixPort name="telephony_rx" role="sink"> 30 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 31 samplingRates="8000 11025 16000 32000 44100 48000" 32 channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> 33 </mixPort> 34 35 <mixPort name="fm_tuner" role="sink"> 36 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 37 samplingRates="8000 11025 16000 32000 44100 48000" 38 channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/> 39 </mixPort> 40 </mixPorts> 41 <devicePorts> 42 <devicePort tagName="Speaker" type="AUDIO_DEVICE_OUT_SPEAKER" role="sink"> 43 </devicePort> 44 <devicePort tagName="Telephony Tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink"> 45 </devicePort> 46 47 <devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source"> 48 </devicePort> 49 <devicePort tagName="Telephony Rx" type="AUDIO_DEVICE_IN_TELEPHONY_RX" role="source"> 50 </devicePort> 51 52 <devicePort tagName="FM Tuner" type="AUDIO_DEVICE_IN_FM_TUNER" role="source"> 53 </devicePort> 54 </devicePorts> 55 <routes> 56 <route type="mix" sink="Speaker" 57 sources="primary output"/> 58 <route type="mix" sink="primary input" 59 sources="Built-In Mic"/> 60 61 <route type="mix" sink="telephony_rx" 62 sources="Telephony Rx"/> 63 <route type="mix" sink="Telephony Tx" 64 sources="telephony_tx"/> 65 66 <route type="mix" sink="fm_tuner" 67 sources="FM Tuner"/> 68 </routes> 69</module> 70