1<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 2<!-- Copyright (C) 2019 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<audioPolicyConfiguration version="1.0" xmlns:xi="http://www.w3.org/2001/XInclude"> 18 <globalConfiguration speaker_drc_enabled="true"/> 19 20 <modules> 21 <!-- Primary module --> 22 <module name="primary" halVersion="2.0"> 23 <attachedDevices> 24 <item>Speaker</item> 25 <item>Built-In Mic</item> 26 </attachedDevices> 27 <defaultOutputDevice>Speaker</defaultOutputDevice> 28 <mixPorts> 29 <mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_PRIMARY"> 30 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 31 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> 32 </mixPort> 33 <mixPort name="primary input" role="sink"> 34 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 35 samplingRates="48000" 36 channelMasks="AUDIO_CHANNEL_IN_STEREO"/> 37 </mixPort> 38 <mixPort name="mixport_bt_hfp_output" role="source"> 39 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 40 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> 41 </mixPort> 42 <mixPort name="mixport_bt_hfp_input" role="sink"> 43 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 44 samplingRates="8000,11025,16000,44100,48000" 45 channelMasks="AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_MONO"/> 46 </mixPort> 47 </mixPorts> 48 <devicePorts> 49 <devicePort tagName="Speaker" type="AUDIO_DEVICE_OUT_SPEAKER" role="sink"> 50 </devicePort> 51 <devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source"> 52 </devicePort> 53 <devicePort tagName="Hdmi" type="AUDIO_DEVICE_OUT_HDMI" role="sink"> 54 </devicePort> 55 <devicePort tagName="Hdmi-In Mic" type="AUDIO_DEVICE_IN_HDMI" role="source"> 56 </devicePort> 57 <devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" 58 role="sink" address="hfp_client_out"> 59 </devicePort> 60 <devicePort tagName="BT SCO Headset Mic" type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" 61 role="source" address="hfp_client_in"> 62 </devicePort> 63 </devicePorts> 64 <routes> 65 <route type="mix" sink="Speaker" 66 sources="primary output"/> 67 <route type="mix" sink="primary input" 68 sources="Built-In Mic,Hdmi-In Mic"/> 69 <route type="mix" sink="Hdmi" 70 sources="primary output"/> 71 <route type="mix" sink="BT SCO" 72 sources="mixport_bt_hfp_output"/> 73 <route type="mix" sink="mixport_bt_hfp_input" 74 sources="BT SCO Headset Mic"/> 75 </routes> 76 </module> 77 78 <!-- Remote Submix module --> 79 <module name="r_submix" halVersion="2.0"> 80 <attachedDevices> 81 <item>Remote Submix In</item> 82 </attachedDevices> 83 <mixPorts> 84 <mixPort name="r_submix output" role="source"> 85 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 86 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> 87 </mixPort> 88 <mixPort name="r_submix input" role="sink"> 89 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 90 samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_STEREO"/> 91 </mixPort> 92 </mixPorts> 93 <devicePorts> 94 <devicePort tagName="Remote Submix Out" type="AUDIO_DEVICE_OUT_REMOTE_SUBMIX" role="sink"> 95 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 96 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> 97 </devicePort> 98 <devicePort tagName="Remote Submix In" type="AUDIO_DEVICE_IN_REMOTE_SUBMIX" role="source"> 99 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 100 samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_STEREO"/> 101 </devicePort> 102 </devicePorts> 103 <routes> 104 <route type="mix" sink="Remote Submix Out" 105 sources="r_submix output"/> 106 <route type="mix" sink="r_submix input" 107 sources="Remote Submix In"/> 108 </routes> 109 </module> 110 </modules> 111</audioPolicyConfiguration> 112