1<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 2<!-- Copyright (C) 2025 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<module name="primary" halVersion="7.0"> 18 <attachedDevices> 19 <item>BUS00_MEDIA_CARD_0_DEV_0</item> 20 <item>BUS01_NAV_GUIDANCE_CARD_0_DEV_1</item> 21 <item>BUS02_NOTIFICATION_CARD_0_DEV_2</item> 22 <item>BUS03_PHONE_CARD_0_DEV_3</item> 23 <item>BUS04_ASSISTANT_CARD_0_DEV_4</item> 24 <item>BUS05_SYSTEM_CARD_0_DEV_5</item> 25 <item>builtin_mic</item> 26 <item>fm_tuner</item> 27 <item>telephony_tx</item> 28 <item>telephony_rx</item> 29 </attachedDevices> 30 31 <defaultOutputDevice>BUS00_MEDIA_CARD_0_DEV_0</defaultOutputDevice> 32 <mixPorts> 33 <mixPort name="primary_input" role="sink" maxActiveCount="1" maxOpenCount="1"> 34 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="8000 11025 16000 44100 48000" 35 channelMasks="AUDIO_CHANNEL_IN_STEREO AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_FRONT_BACK" /> 36 </mixPort> 37 <mixPort name="radio_input" role="sink"> 38 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_STEREO" /> 39 </mixPort> 40 <mixPort name="mixport_bus0_usage_main_output" role="source" flags="AUDIO_OUTPUT_FLAG_PRIMARY"> 41 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" /> 42 </mixPort> 43 <mixPort name="mixport_bus1_usage_nav_guidance_output" role="source"> 44 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" /> 45 </mixPort> 46 <mixPort name="mixport_bus2_usage_notification_output" role="source"> 47 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" /> 48 </mixPort> 49 <mixPort name="mixport_bus3_usage_voice_output" role="source"> 50 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" /> 51 </mixPort> 52 <mixPort name="mixport_bus4_usage_assistant_output" role="source"> 53 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" /> 54 </mixPort> 55 <mixPort name="mixport_bus5_usage_system_output" role="source"> 56 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" /> 57 </mixPort> 58 <mixPort name="hfp_tx_mix" role="source"> 59 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" /> 60 </mixPort> 61 <mixPort name="hfp_rx_mix" role="sink" flags="AUDIO_INPUT_FLAG_PRIMARY"> 62 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_STEREO" /> 63 </mixPort> 64 </mixPorts> 65 66 <devicePorts> 67 <devicePort tagName="builtin_mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source" address="bottom_CARD_0_DEV_0"> 68 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="16000 48000" channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO" /> 69 </devicePort> 70 <devicePort tagName="fm_tuner" type="AUDIO_DEVICE_IN_FM_TUNER" role="source" address="tuner0"> 71 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_STEREO" /> 72 <gains> 73 <gain name="" mode="AUDIO_GAIN_MODE_JOINT" minValueMB="-3200" maxValueMB="600" defaultValueMB="0" stepValueMB="100" /> 74 </gains> 75 </devicePort> 76 <devicePort tagName="BUS00_MEDIA_CARD_0_DEV_0" type="AUDIO_DEVICE_OUT_BUS" role="sink" address="BUS00_MEDIA_CARD_0_DEV_0"> 77 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" /> 78 <gains> 79 <gain useForVolume="true" name="volume_bus0_usage_main" mode="AUDIO_GAIN_MODE_JOINT" minValueMB="-8800" maxValueMB="1200" defaultValueMB="-4550" stepValueMB="250" /> 80 </gains> 81 </devicePort> 82 <devicePort tagName="BUS01_NAV_GUIDANCE_CARD_0_DEV_1" role="sink" type="AUDIO_DEVICE_OUT_BUS" 83 address="BUS01_NAV_GUIDANCE_CARD_0_DEV_1"> 84 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" /> 85 <gains> 86 <gain useForVolume="true" name="volume_bus1_usage_nav_guidance" mode="AUDIO_GAIN_MODE_JOINT" minValueMB="-8800" maxValueMB="1200" defaultValueMB="-4550" stepValueMB="250" /> 87 </gains> 88 </devicePort> 89 <devicePort tagName="BUS02_NOTIFICATION_CARD_0_DEV_2" role="sink" type="AUDIO_DEVICE_OUT_BUS" 90 address="BUS02_NOTIFICATION_CARD_0_DEV_2"> 91 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" /> 92 <gains> 93 <gain useForVolume="true" name="volume_bus2_usage_notification" mode="AUDIO_GAIN_MODE_JOINT" minValueMB="-8800" maxValueMB="1200" defaultValueMB="-4550" stepValueMB="250" /> 94 </gains> 95 </devicePort> 96 <devicePort tagName="BUS03_PHONE_CARD_0_DEV_3" role="sink" type="AUDIO_DEVICE_OUT_BUS" 97 address="BUS03_PHONE_CARD_0_DEV_3"> 98 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" /> 99 <gains> 100 <gain useForVolume="true" name="volume_bus3_usage_voice" mode="AUDIO_GAIN_MODE_JOINT" minValueMB="-8800" maxValueMB="1200" defaultValueMB="-4550" stepValueMB="250" /> 101 </gains> 102 </devicePort> 103 <devicePort tagName="BUS04_ASSISTANT_CARD_0_DEV_4" role="sink" type="AUDIO_DEVICE_OUT_BUS" 104 address="BUS04_ASSISTANT_CARD_0_DEV_4"> 105 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" /> 106 <gains> 107 <gain useForVolume="true" name="volume_bus4_usage_assistant" mode="AUDIO_GAIN_MODE_JOINT" minValueMB="-8800" maxValueMB="1200" defaultValueMB="-4550" stepValueMB="250" /> 108 </gains> 109 </devicePort> 110 <devicePort tagName="BUS05_SYSTEM_CARD_0_DEV_5" role="sink" type="AUDIO_DEVICE_OUT_BUS" 111 address="BUS05_SYSTEM_CARD_0_DEV_5"> 112 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" /> 113 <gains> 114 <gain useForVolume="true" name="volume_bus5_usage_system" mode="AUDIO_GAIN_MODE_JOINT" minValueMB="-8800" maxValueMB="1200" defaultValueMB="-4550" stepValueMB="250" /> 115 </gains> 116 </devicePort> 117 <devicePort tagName="telephony_tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink" address="hfp_client_out"> 118 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" /> 119 <gains> 120 <gain defaultValueMB="0" maxValueMB="4000" minValueMB="-8800" mode="AUDIO_GAIN_MODE_JOINT" name="" stepValueMB="100" useForVolume="false" /> 121 </gains> 122 </devicePort> 123 <devicePort tagName="telephony_rx" type="AUDIO_DEVICE_IN_TELEPHONY_RX" role="source" address="hfp_client_in"> 124 <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO" /> 125 <gains> 126 <gain defaultValueMB="0" maxValueMB="4000" minValueMB="-8400" mode="AUDIO_GAIN_MODE_JOINT" name="" stepValueMB="100" useForVolume="false" /> 127 </gains> 128 </devicePort> 129 </devicePorts> 130 131 <routes> 132 <route type="mix" sink="primary_input" sources="builtin_mic" /> 133 <route type="mix" sink="radio_input" sources="fm_tuner" /> 134 <route type="mix" sink="BUS00_MEDIA_CARD_0_DEV_0" sources="mixport_bus0_usage_main_output"/> 135 <route type="mix" sink="BUS01_NAV_GUIDANCE_CARD_0_DEV_1" sources="mixport_bus1_usage_nav_guidance_output"/> 136 <route type="mix" sink="BUS02_NOTIFICATION_CARD_0_DEV_2" sources="mixport_bus2_usage_notification_output"/> 137 <route type="mix" sink="BUS03_PHONE_CARD_0_DEV_3" sources="mixport_bus3_usage_voice_output"/> 138 <route type="mix" sink="BUS04_ASSISTANT_CARD_0_DEV_4" sources="mixport_bus4_usage_assistant_output"/> 139 <route type="mix" sink="BUS05_SYSTEM_CARD_0_DEV_5" sources="mixport_bus5_usage_system_output"/> 140 <route type="mix" sink="telephony_tx" sources="builtin_mic,hfp_tx_mix" /> 141 <route type="mix" sink="hfp_rx_mix" sources="telephony_rx" /> 142 </routes> 143 </module> 144