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="3">
26    <mirroringDevices>
27        <mirroringDevice address="bus1000_mirror_device"/>
28    </mirroringDevices>
29    <zones>
30        <zone name="primary zone" isPrimary="true" occupantZoneId="0">
31            <zoneConfigs>
32                <zoneConfig name="primary zone config" isDefault="true">
33                    <volumeGroups>
34                        <group>
35                            <device address="bus0_media_out">
36                                <context context="music"/>
37                            </device>
38                            <device address="bus3_call_ring_out">
39                                <context context="call_ring"/>
40                            </device>
41                            <device address="bus6_notification_out">
42                                <context context="notification"/>
43                            </device>
44                        </group>
45                        <group>
46                            <device address="bus1_navigation_out">
47                                <context context="navigation"/>
48                            </device>
49                            <device address="bus2_voice_command_out">
50                                <context context="voice_command"/>
51                            </device>
52                        </group>
53                        <group>
54                            <device address="bus4_call_out">
55                                <context context="call"/>
56                            </device>
57                        </group>
58                        <group>
59                            <device address="bus5_alarm_out">
60                                <context context="alarm"/>
61                            </device>
62                            <device address="bus7_system_sound_out">
63                                <context context="system_sound"/>
64                                <context context="emergency"/>
65                                <context context="safety"/>
66                                <context context="vehicle_status"/>
67                                <context context="announcement"/>
68                            </device>
69                        </group>
70                    </volumeGroups>
71                </zoneConfig>
72            </zoneConfigs>
73            <inputDevices>
74                <inputDevice address="input_bus_tone_zone_0"/>
75                <inputDevice address="tuner0"/>
76            </inputDevices>
77        </zone>
78        <zone name="front passenger zone 1" audioZoneId="1" occupantZoneId="1">
79            <zoneConfigs>
80                <zoneConfig name="front passenger zone 1 config 0" isDefault="true">
81                    <volumeGroups>
82                        <group>
83                            <device address="bus100_audio_zone_1">
84                                <context context="music"/>
85                            </device>
86                        </group>
87                        <group>
88                            <device address="bus101_audio_zone_1">
89                                <context context="navigation"/>
90                                <context context="voice_command"/>
91                                <context context="call_ring"/>
92                                <context context="call"/>
93                                <context context="alarm"/>
94                                <context context="notification"/>
95                                <context context="system_sound"/>
96                                <context context="emergency"/>
97                                <context context="safety"/>
98                                <context context="vehicle_status"/>
99                                <context context="announcement"/>
100                            </device>
101                        </group>
102                    </volumeGroups>
103                </zoneConfig>
104                <zoneConfig name="front passenger zone 1 config 1">
105                    <volumeGroups>
106                        <group>
107                            <device address="bus110_audio_zone_1">
108                                <context context="music"/>
109                            </device>
110                        </group>
111                        <group>
112                            <device address="bus111_audio_zone_1">
113                                <context context="navigation"/>
114                                <context context="voice_command"/>
115                                <context context="call_ring"/>
116                                <context context="call"/>
117                                <context context="alarm"/>
118                                <context context="notification"/>
119                                <context context="system_sound"/>
120                                <context context="emergency"/>
121                                <context context="safety"/>
122                                <context context="vehicle_status"/>
123                                <context context="announcement"/>
124                            </device>
125                        </group>
126                    </volumeGroups>
127                </zoneConfig>
128            </zoneConfigs>
129            <inputDevices>
130                <inputDevice address="input_bus_tone_zone_1"/>
131            </inputDevices>
132        </zone>
133        <zone name="rear seat zone 2"  audioZoneId="2"  occupantZoneId="2">
134            <zoneConfigs>
135                <zoneConfig name="rear seat zone 2 config 0" isDefault="true">
136                    <volumeGroups>
137                        <group>
138                            <device address="bus200_audio_zone_2">
139                                <context context="music"/>
140                            </device>
141                        </group>
142                        <group>
143                            <device address="bus201_audio_zone_2">
144                                <context context="navigation"/>
145                                <context context="voice_command"/>
146                                <context context="call_ring"/>
147                                <context context="call"/>
148                                <context context="alarm"/>
149                                <context context="notification"/>
150                                <context context="system_sound"/>
151                                <context context="emergency"/>
152                                <context context="safety"/>
153                                <context context="vehicle_status"/>
154                                <context context="announcement"/>
155                            </device>
156                        </group>
157                    </volumeGroups>
158                </zoneConfig>
159                <zoneConfig name="rear seat zone 2 config 1">
160                    <volumeGroups>
161                        <group>
162                            <device address="bus210_audio_zone_2">
163                                <context context="music"/>
164                            </device>
165                        </group>
166                        <group>
167                            <device address="bus211_audio_zone_2">
168                                <context context="navigation"/>
169                                <context context="voice_command"/>
170                                <context context="call_ring"/>
171                                <context context="call"/>
172                                <context context="alarm"/>
173                                <context context="notification"/>
174                                <context context="system_sound"/>
175                                <context context="emergency"/>
176                                <context context="safety"/>
177                                <context context="vehicle_status"/>
178                                <context context="announcement"/>
179                            </device>
180                        </group>
181                    </volumeGroups>
182                </zoneConfig>
183            </zoneConfigs>
184        </zone>
185    </zones>
186</carAudioConfiguration>
187