1<?xml version="1.0" encoding="utf-8"?> 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<!-- 18 Defines the audio configuration in a car, including 19 - Audio zones 20 - Zone configurations (in each audio zone) 21 - Volume groups (in each zone configuration) 22 - Context to audio bus mappings (in each volume group) 23 in the car environment. 24--> 25<carAudioConfiguration version="4"> 26 <deviceConfigurations> 27 <deviceConfiguration name="useHalDuckingSignals" value="false" /> 28 <deviceConfiguration name="useCoreAudioRouting" value="true" /> 29 <deviceConfiguration name="useCoreAudioVolume" value="true" /> 30 <deviceConfiguration name="useCarVolumeGroupMuting" value="true" /> 31 </deviceConfigurations> 32 <activationVolumeConfigs> 33 <activationVolumeConfig name="activation_volume_on_boot_config"> 34 <activationVolumeConfigEntry minActivationVolumePercentage="20" 35 maxActivationVolumePercentage="90" invocationType="onPlaybackChanged" /> 36 </activationVolumeConfig> 37 <activationVolumeConfig name="activation_volume_on_source_changed_config"> 38 <activationVolumeConfigEntry minActivationVolumePercentage="20" 39 maxActivationVolumePercentage="80" invocationType="onSourceChanged" /> 40 </activationVolumeConfig> 41 <activationVolumeConfig name="activation_volume_on_playback_changed_config"> 42 <activationVolumeConfigEntry minActivationVolumePercentage="20" 43 maxActivationVolumePercentage="80" /> 44 </activationVolumeConfig> 45 </activationVolumeConfigs> 46 <oemContexts> 47 <oemContext name="oem_traffic_announcement"> 48 <audioAttributes> 49 <usage value="AUDIO_USAGE_ANNOUNCEMENT" /> 50 <audioAttribute usage="AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE" 51 tags="VX_OEM_TA" /> 52 </audioAttributes> 53 </oemContext> 54 <oemContext name="oem_ipa"> 55 <audioAttributes> 56 <usage value="AUDIO_USAGE_SAFETY" /> 57 <usage value="AUDIO_USAGE_VEHICLE_STATUS" /> 58 <audioAttribute usage="AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE" 59 tags="VX_OEM_IPA" /> 60 </audioAttributes> 61 </oemContext> 62 <oemContext name="oem_xcall"> 63 <audioAttributes> 64 <audioAttribute usage="AUDIO_USAGE_VOICE_COMMUNICATION" 65 tags="VX_OEM_XCALL" /> 66 <usage value="AUDIO_USAGE_EMERGENCY" /> 67 </audioAttributes> 68 </oemContext> 69 <oemContext name="third_party_alternate"> 70 <audioAttributes> 71 <audioAttribute usage="AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE" 72 tags="VX_OEM_ALTERNATE" /> 73 </audioAttributes> 74 </oemContext> 75 <oemContext name="third_party_auxiliary"> 76 <audioAttributes> 77 <audioAttribute usage="AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE" 78 tags="VX_OEM_AUXILIARY"/> 79 <audioAttribute usage="AUDIO_USAGE_ASSISTANT" 80 tags="VX_OEM_AUXILIARY"/> 81 </audioAttributes> 82 </oemContext> 83 <oemContext name="third_party_alert"> 84 <audioAttributes> 85 <audioAttribute usage="AUDIO_USAGE_ALARM" 86 tags="VX_OEM_ALERT" /> 87 <audioAttribute usage="AUDIO_USAGE_NOTIFICATION_TELEPHONY_RINGTONE" 88 tags="VX_OEM_ALERT" /> 89 </audioAttributes> 90 </oemContext> 91 <oemContext name="voice_command"> 92 <audioAttributes> 93 <usage value="AUDIO_USAGE_ASSISTANT"/> 94 <usage value="AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY"/> 95 </audioAttributes> 96 </oemContext> 97 <oemContext name="music"> 98 <audioAttributes> 99 <usage value="AUDIO_USAGE_MEDIA" /> 100 <usage value="AUDIO_USAGE_GAME" /> 101 <usage value="AUDIO_USAGE_UNKNOWN"/> 102 </audioAttributes> 103 </oemContext> 104 <oemContext name="nav_guidance"> 105 <audioAttributes> 106 <usage value="AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE" /> 107 </audioAttributes> 108 </oemContext> 109 <oemContext name="ring"> 110 <audioAttributes> 111 <usage value="AUDIO_USAGE_NOTIFICATION_TELEPHONY_RINGTONE"/> 112 </audioAttributes> 113 </oemContext> 114 <oemContext name="notification"> 115 <audioAttributes> 116 <usage value="AUDIO_USAGE_NOTIFICATION" /> 117 <usage value="AUDIO_USAGE_NOTIFICATION_EVENT" /> 118 </audioAttributes> 119 </oemContext> 120 <oemContext name="system"> 121 <audioAttributes> 122 <usage value="AUDIO_USAGE_ASSISTANCE_SONIFICATION" /> 123 </audioAttributes> 124 </oemContext> 125 <oemContext name="alarm"> 126 <audioAttributes> 127 <usage value="AUDIO_USAGE_ALARM" /> 128 </audioAttributes> 129 </oemContext> 130 <oemContext name="voice_call"> 131 <audioAttributes> 132 <usage value="AUDIO_USAGE_VOICE_COMMUNICATION" /> 133 <usage value="AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING" /> 134 <usage value="AUDIO_USAGE_CALL_ASSISTANT" /> 135 </audioAttributes> 136 </oemContext> 137 </oemContexts> 138 <zones> 139 <zone isPrimary="true" name="primary zone" audioZoneId="0" occupantZoneId="0"> 140 <zoneConfigs> 141 <zoneConfig name="primary zone config 1" isDefault="true"> 142 <volumeGroups> 143 <group name="entertainment" activationConfig="activation_volume_on_boot_config"> 144 <device address="BUS00_MEDIA_CARD_0_DEV_0"> 145 <context context="music"/> 146 </device> 147 </group> 148 <group name="navvol" activationConfig="activation_volume_on_source_changed_config"> 149 <device address="BUS01_NAV_GUIDANCE_CARD_0_DEV_1"> 150 <context context="nav_guidance"/> 151 <context context="oem_ipa"/> 152 <context context="oem_traffic_announcement"/> 153 </device> 154 <device address="BUS02_NOTIFICATION_CARD_0_DEV_2"> 155 <context context="third_party_alternate"/> 156 </device> 157 </group> 158 <group name="sdsvol" activationConfig="activation_volume_on_playback_changed_config"> 159 <device address="BUS04_ASSISTANT_CARD_0_DEV_4"> 160 <context context="voice_command"/> 161 <context context="third_party_auxiliary"/> 162 </device> 163 </group> 164 <group name="system" activationConfig="activation_volume_on_source_changed_config"> 165 <device address="BUS05_SYSTEM_CARD_0_DEV_5"> 166 <context context="system"/> 167 <context context="notification"/> 168 </device> 169 </group> 170 <group name="telringvol" activationConfig="activation_volume_on_playback_changed_config"> 171 <device address="BUS03_PHONE_CARD_0_DEV_3"> 172 <context context="voice_call"/> 173 <context context="oem_xcall"/> 174 <context context="ring"/> 175 <context context="alarm"/> 176 <context context="third_party_alert"/> 177 </device> 178 </group> 179 </volumeGroups> 180 </zoneConfig> 181 </zoneConfigs> 182 </zone> 183 </zones> 184</carAudioConfiguration> 185