1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2020 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 <activationVolumeConfigs> 27 <activationVolumeConfig name="activation_volume_on_boot_config"> 28 <activationVolumeConfigEntry maxActivationVolumePercentage="90" invocationType="onBoot" /> 29 </activationVolumeConfig> 30 <activationVolumeConfig name="activation_volume_on_source_changed_config"> 31 <activationVolumeConfigEntry minActivationVolumePercentage="20" maxActivationVolumePercentage="90" invocationType="onSourceChanged" /> 32 </activationVolumeConfig> 33 <activationVolumeConfig name="activation_volume_on_playback_changed_config"> 34 <activationVolumeConfigEntry minActivationVolumePercentage="20" maxActivationVolumePercentage="90" /> 35 </activationVolumeConfig> 36 </activationVolumeConfigs> 37 <zones> 38 <zone name="primary zone" isPrimary="true" occupantZoneId="0"> 39 <zoneConfigs> 40 <zoneConfig name="primary zone config 0" isDefault="true"> 41 <volumeGroups> 42 <group maxActivationVolumePercentage="90" activationConfig="activation_volume_on_boot_config"> 43 <device address="bus0_media_out"> 44 <context context="music"/> 45 <context context="announcement"/> 46 </device> 47 <device address="bus6_notification_out"> 48 <context context="notification"/> 49 </device> 50 </group> 51 <group minActivationVolumePercentage="20" activationConfig="activation_volume_on_source_changed_config"> 52 <device address="bus1_navigation_out"> 53 <context context="navigation"/> 54 </device> 55 <device address="bus2_voice_command_out"> 56 <context context="voice_command"/> 57 </device> 58 </group> 59 <group minActivationVolumePercentage="20" activationConfig="activation_volume_on_playback_changed_config"> 60 <device address="bus4_call_out"> 61 <context context="call"/> 62 </device> 63 <device address="bus3_call_ring_out"> 64 <context context="call_ring"/> 65 </device> 66 </group> 67 <group activationConfig="activation_volume_on_source_changed_config"> 68 <device address="bus5_alarm_out"> 69 <context context="alarm"/> 70 </device> 71 <device address="bus7_system_sound_out"> 72 <context context="system_sound"/> 73 <context context="emergency"/> 74 <context context="safety"/> 75 <context context="vehicle_status"/> 76 </device> 77 </group> 78 </volumeGroups> 79 <applyFadeConfigs> 80 <fadeConfig name="relaxed fading" isDefault="true"> 81 </fadeConfig> 82 <fadeConfig name="aggressive fading"> 83 <audioAttributes> 84 <usage value="AUDIO_USAGE_VOICE_COMMUNICATION" /> 85 <usage value="AUDIO_USAGE_ANNOUNCEMENT" /> 86 <usage value="AUDIO_USAGE_VEHICLE_STATUS" /> 87 <usage value="AUDIO_USAGE_SAFETY" /> 88 </audioAttributes> 89 </fadeConfig> 90 <fadeConfig name="disabled fading"> 91 <audioAttributes> 92 <usage value="AUDIO_USAGE_EMERGENCY" /> 93 </audioAttributes> 94 </fadeConfig> 95 </applyFadeConfigs> 96 </zoneConfig> 97 </zoneConfigs> 98 </zone> 99 <zone name="rear seat zone 1" audioZoneId="1"> 100 <zoneConfigs> 101 <zoneConfig name="rear seat zone 1 config 0" isDefault="true"> 102 <volumeGroups> 103 <group> 104 <device address="bus100_audio_zone_1"> 105 <context context="music"/> 106 </device> 107 </group> 108 <group> 109 <device address="bus101_audio_zone_1"> 110 <context context="navigation"/> 111 <context context="voice_command"/> 112 <context context="call_ring"/> 113 <context context="call"/> 114 <context context="alarm"/> 115 <context context="notification"/> 116 <context context="system_sound"/> 117 <context context="emergency"/> 118 <context context="safety"/> 119 <context context="vehicle_status"/> 120 <context context="announcement"/> 121 </device> 122 </group> 123 </volumeGroups> 124 <applyFadeConfigs> 125 <fadeConfig name="aggressive fading" isDefault="true"> 126 </fadeConfig> 127 <fadeConfig name="disabled fading"> 128 <audioAttributes> 129 <usage value="AUDIO_USAGE_EMERGENCY" /> 130 <usage value="AUDIO_USAGE_VOICE_COMMUNICATION" /> 131 <usage value="AUDIO_USAGE_ANNOUNCEMENT" /> 132 <usage value="AUDIO_USAGE_VEHICLE_STATUS" /> 133 <usage value="AUDIO_USAGE_SAFETY" /> 134 </audioAttributes> 135 </fadeConfig> 136 </applyFadeConfigs> 137 </zoneConfig> 138 <zoneConfig name="rear seat zone 1 config 1"> 139 <volumeGroups> 140 <group> 141 <device address="bus110_audio_zone_1"> 142 <context context="music"/> 143 </device> 144 </group> 145 <group> 146 <device address="bus111_audio_zone_1"> 147 <context context="navigation"/> 148 <context context="voice_command"/> 149 <context context="call_ring"/> 150 <context context="call"/> 151 <context context="alarm"/> 152 <context context="notification"/> 153 <context context="system_sound"/> 154 <context context="emergency"/> 155 <context context="safety"/> 156 <context context="vehicle_status"/> 157 <context context="announcement"/> 158 </device> 159 </group> 160 </volumeGroups> 161 <applyFadeConfigs> 162 <fadeConfig name="aggressive fading" isDefault="true"> 163 </fadeConfig> 164 <fadeConfig name="disabled fading"> 165 <audioAttributes> 166 <usage value="AUDIO_USAGE_EMERGENCY" /> 167 <usage value="AUDIO_USAGE_VOICE_COMMUNICATION" /> 168 <usage value="AUDIO_USAGE_ANNOUNCEMENT" /> 169 <usage value="AUDIO_USAGE_VEHICLE_STATUS" /> 170 <usage value="AUDIO_USAGE_SAFETY" /> 171 </audioAttributes> 172 </fadeConfig> 173 </applyFadeConfigs> 174 </zoneConfig> 175 </zoneConfigs> 176 </zone> 177 <zone name="rear seat zone 2" audioZoneId="2"> 178 <zoneConfigs> 179 <zoneConfig name="rear seat zone 2 config 0" isDefault="true"> 180 <volumeGroups> 181 <group> 182 <device address="bus200_audio_zone_2"> 183 <context context="music"/> 184 </device> 185 </group> 186 <group> 187 <device address="bus201_audio_zone_2"> 188 <context context="navigation"/> 189 <context context="voice_command"/> 190 <context context="call_ring"/> 191 <context context="call"/> 192 <context context="alarm"/> 193 <context context="notification"/> 194 <context context="system_sound"/> 195 <context context="emergency"/> 196 <context context="safety"/> 197 <context context="vehicle_status"/> 198 <context context="announcement"/> 199 </device> 200 </group> 201 </volumeGroups> 202 <applyFadeConfigs> 203 <fadeConfig name="aggressive fading" isDefault="true"> 204 </fadeConfig> 205 <fadeConfig name="disabled fading"> 206 <audioAttributes> 207 <usage value="AUDIO_USAGE_EMERGENCY" /> 208 <usage value="AUDIO_USAGE_VOICE_COMMUNICATION" /> 209 <usage value="AUDIO_USAGE_ANNOUNCEMENT" /> 210 <usage value="AUDIO_USAGE_VEHICLE_STATUS" /> 211 <usage value="AUDIO_USAGE_SAFETY" /> 212 </audioAttributes> 213 </fadeConfig> 214 </applyFadeConfigs> 215 </zoneConfig> 216 <zoneConfig name="rear seat zone 2 config 1"> 217 <volumeGroups> 218 <group> 219 <device address="bus210_audio_zone_2"> 220 <context context="music"/> 221 </device> 222 </group> 223 <group> 224 <device address="bus211_audio_zone_2"> 225 <context context="navigation"/> 226 <context context="voice_command"/> 227 <context context="call_ring"/> 228 <context context="call"/> 229 <context context="alarm"/> 230 <context context="notification"/> 231 <context context="system_sound"/> 232 <context context="emergency"/> 233 <context context="safety"/> 234 <context context="vehicle_status"/> 235 <context context="announcement"/> 236 </device> 237 </group> 238 </volumeGroups> 239 <applyFadeConfigs> 240 <fadeConfig name="aggressive fading" isDefault="true"> 241 </fadeConfig> 242 <fadeConfig name="disabled fading"> 243 <audioAttributes> 244 <usage value="AUDIO_USAGE_EMERGENCY" /> 245 <usage value="AUDIO_USAGE_VOICE_COMMUNICATION" /> 246 <usage value="AUDIO_USAGE_ANNOUNCEMENT" /> 247 <usage value="AUDIO_USAGE_VEHICLE_STATUS" /> 248 <usage value="AUDIO_USAGE_SAFETY" /> 249 </audioAttributes> 250 </fadeConfig> 251 </applyFadeConfigs> 252 </zoneConfig> 253 </zoneConfigs> 254 </zone> 255 </zones> 256</carAudioConfiguration> 257