1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4** Copyright 2021, The Android Open Source Project 5** 6** Licensed under the Apache License, Version 2.0 (the "License"); 7** you may not use this file except in compliance with the License. 8** You may obtain a copy of the License at 9** 10** http://www.apache.org/licenses/LICENSE-2.0 11** 12** Unless required by applicable law or agreed to in writing, software 13** distributed under the License is distributed on an "AS IS" BASIS, 14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15** See the License for the specific language governing permissions and 16** limitations under the License. 17*/ 18--> 19 20<!-- 21 Overlay resources to configure car service based on each OEM's preference. 22 See also packages/services/Car/service/res/values/config.xml 23--> 24<audioPolicyConfiguration version="1.0" xmlns:xi="http://www.w3.org/2001/XInclude"> 25 <!-- Global configuration Decalaration --> 26 <globalConfiguration speaker_drc_enabled="true"/> 27 <modules> 28 <module name="primary" halVersion="2.0"> 29 <attachedDevices> 30 <item>Speaker</item> 31 <item>Built-In Mic</item> 32 </attachedDevices> 33 <defaultOutputDevice>Speaker</defaultOutputDevice> 34 <mixPorts> 35 <mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_PRIMARY"> 36 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 37 samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> 38 </mixPort> 39 <mixPort name="primary input" role="sink"> 40 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 41 samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_IN_MONO"/> 42 </mixPort> 43 </mixPorts> 44 <devicePorts> 45 <devicePort tagName="Speaker" role="sink" type="AUDIO_DEVICE_OUT_BUS" 46 address="Speaker"> 47 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" 48 samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> 49 <gains> 50 <gain name="" mode="AUDIO_GAIN_MODE_JOINT" 51 minValueMB="-3200" maxValueMB="600" defaultValueMB="0" stepValueMB="100"/> 52 </gains> 53 </devicePort> 54 55 <devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source"> 56 </devicePort> 57 </devicePorts> 58 <routes> 59 <route type="mix" sink="Speaker" 60 sources="primary output"/> 61 <route type="mix" sink="primary input" 62 sources="Built-In Mic"/> 63 </routes> 64 </module> 65 66 <!-- Remote Submix Audio HAL --> 67 <xi:include href="r_submix_audio_policy_configuration.xml"/> 68 </modules> 69 70 <xi:include href="audio_policy_volumes.xml"/> 71 <xi:include href="default_volume_tables.xml"/> 72 73 <!-- End of Volume section --> 74 <!-- End of Modules section --> 75 76</audioPolicyConfiguration> 77