1 <?xml version="1.0" encoding="UTF-8"?>
2 <c:configuration xmlns:c="controller" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="controller audiomanagertypes.xsd ">
6 <domainName>UNKNOWN</domainName>
7 <name>SourceTemplate</name>
9 <visible>TRUE</visible>
10 <className>UNKNOWN</className>
11 <sourceState>SS_OFF</sourceState>
12 <connectionFormat>CF_GENIVI_STEREO</connectionFormat>
13 <connectionFormat>CF_GENIVI_MONO</connectionFormat>
14 <interruptState>IS_OFF</interruptState>
16 <availability>A_AVAILABLE</availability>
17 <availabilityReason>AR_UNKNOWN</availabilityReason>
20 <type>SP_GENIVI_TREBLE</type>
21 <value minValue="0" maxValue="10">5</value>
24 <type>SP_GENIVI_MID</type>
25 <value minValue="0" maxValue="10">5</value>
28 <type>SP_GENIVI_BASS</type>
29 <value minValue="0" maxValue="10">5</value>
32 <type>MSP_GENIVI_TREBLE</type>
33 <value minValue="0" maxValue="10">5</value>
36 <type>MSP_GENIVI_MID</type>
37 <value minValue="0" maxValue="10">5</value>
40 <type>MSP_GENIVI_BASS</type>
41 <value minValue="0" maxValue="10">5</value>
43 <registrationType>REG_TEMPLATE</registrationType>
44 <isVolumeSupported>TRUE</isVolumeSupported>
45 <priority>1</priority>
46 <listMainSoundPropertiesToSoundProperties>
47 <mapEntry>MSP_UNKNOWN,SP_UNKNOWN</mapEntry>
48 <mapEntry>MSP_GENIVI_TREBLE,SP_GENIVI_TREBLE</mapEntry>
49 </listMainSoundPropertiesToSoundProperties>
51 <source baseName="SourceTemplate">
53 <domainName>PulseAudio</domainName>
54 <name>mediaplayer</name>
55 <className>BASE</className>
56 <registrationType>REG_ROUTER</registrationType>
58 <source baseName="SourceTemplate">
60 <domainName>PulseAudio</domainName>
61 <name>ALSA#Playback</name>
62 <className>BASE</className>
63 <registrationType>REG_ROUTER</registrationType>
65 <source baseName="SourceTemplate">
67 <domainName>PulseAudio</domainName>
69 <className>BASE</className>
70 <registrationType>REG_ROUTER</registrationType>
72 <source baseName="SourceTemplate">
74 <domainName>PulseAudio</domainName>
76 <className>INT</className>
77 <registrationType>REG_ROUTER</registrationType>
79 <source baseName="SourceTemplate">
81 <domainName>PulseAudio</domainName>
83 <className>PHONE</className>
84 <registrationType>REG_ROUTER</registrationType>
90 <domainName>UNKNOWN</domainName>
91 <name>SinkTemplate</name>
93 <visible>TRUE</visible>
94 <mainVolume>100</mainVolume>
95 <className>BASE</className>
96 <muteState>MS_UNMUTED</muteState>
97 <connectionFormat>CF_GENIVI_STEREO</connectionFormat>
98 <connectionFormat>CF_GENIVI_MONO</connectionFormat>
100 <availability>A_AVAILABLE</availability>
101 <availabilityReason>AR_GENIVI_NEWMEDIA</availabilityReason>
104 <type>SP_GENIVI_TREBLE</type>
105 <value minValue="0" maxValue="10">5</value>
108 <type>SP_GENIVI_MID</type>
109 <value minValue="0" maxValue="10">5</value>
112 <type>SP_GENIVI_BASS</type>
113 <value minValue="0" maxValue="10">5</value>
116 <type>MSP_GENIVI_TREBLE</type>
117 <value minValue="0" maxValue="10">5</value>
120 <type>MSP_GENIVI_MID</type>
121 <value minValue="0" maxValue="10">5</value>
124 <type>MSP_GENIVI_BASS</type>
125 <value minValue="0" maxValue="10">5</value>
127 <registrationType>REG_TEMPLATE</registrationType>
128 <isVolumeSupported>TRUE</isVolumeSupported>
129 <priority>1</priority>
130 <listMainVolumesToNormalizedVolumes>
131 <tableEntry>0,0.0</tableEntry>
132 <tableEntry>1,0.01</tableEntry>
133 <tableEntry>2,0.02</tableEntry>
134 <tableEntry>3,0.03</tableEntry>
135 <tableEntry>4,0.04</tableEntry>
136 <tableEntry>5,0.05</tableEntry>
137 <tableEntry>6,0.06</tableEntry>
138 <tableEntry>7,0.07</tableEntry>
139 <tableEntry>8,0.08</tableEntry>
140 <tableEntry>9,0.09</tableEntry>
141 <tableEntry>10,0.1</tableEntry>
142 <tableEntry>11,0.11</tableEntry>
143 <tableEntry>12,0.12</tableEntry>
144 <tableEntry>14,0.14</tableEntry>
145 <tableEntry>15,0.15</tableEntry>
146 <tableEntry>17,0.17</tableEntry>
147 <tableEntry>20,0.2</tableEntry>
148 <tableEntry>22,0.22</tableEntry>
149 <tableEntry>25,0.25</tableEntry>
150 <tableEntry>28,0.28</tableEntry>
151 <tableEntry>31,0.31</tableEntry>
152 <tableEntry>35,0.35</tableEntry>
153 <tableEntry>40,0.4</tableEntry>
154 <tableEntry>45,0.45</tableEntry>
155 <tableEntry>50,0.5</tableEntry>
156 <tableEntry>56,0.56</tableEntry>
157 <tableEntry>62,0.62</tableEntry>
158 <tableEntry>70,0.7</tableEntry>
159 <tableEntry>80,0.8</tableEntry>
160 <tableEntry>90,0.9</tableEntry>
161 <tableEntry>100,1.0</tableEntry>
162 </listMainVolumesToNormalizedVolumes>
163 <listNormalizedVolumesToDecibelVolumes>
164 <tableEntry>0.0,-192.0</tableEntry>
165 <tableEntry>0.01,-40.0</tableEntry>
166 <tableEntry>0.02,-34.0</tableEntry>
167 <tableEntry>0.03,-30.0</tableEntry>
168 <tableEntry>0.04,-27.0</tableEntry>
169 <tableEntry>0.05,-26.0</tableEntry>
170 <tableEntry>0.06,-24.0</tableEntry>
171 <tableEntry>0.07,-23.0</tableEntry>
172 <tableEntry>0.08,-22.0</tableEntry>
173 <tableEntry>0.09,-21.0</tableEntry>
174 <tableEntry>0.1,-20.0</tableEntry>
175 <tableEntry>0.11,-19.0</tableEntry>
176 <tableEntry>0.12,-18.0</tableEntry>
177 <tableEntry>0.14,-17.0</tableEntry>
178 <tableEntry>0.15,-16.0</tableEntry>
179 <tableEntry>0.17,-15.0</tableEntry>
180 <tableEntry>0.2,-14.0</tableEntry>
181 <tableEntry>0.22,-13.0</tableEntry>
182 <tableEntry>0.25,-12.0</tableEntry>
183 <tableEntry>0.28,-11.0</tableEntry>
184 <tableEntry>0.31,-10.0</tableEntry>
185 <tableEntry>0.35,-9.0</tableEntry>
186 <tableEntry>0.4,-8.0</tableEntry>
187 <tableEntry>0.45,-7.0</tableEntry>
188 <tableEntry>0.5,-6.0</tableEntry>
189 <tableEntry>0.56,-5.0</tableEntry>
190 <tableEntry>0.62,-4.0</tableEntry>
191 <tableEntry>0.7,-3.0</tableEntry>
192 <tableEntry>0.8,-2.0</tableEntry>
193 <tableEntry>0.9,-1.0</tableEntry>
194 <tableEntry>1.0,0.0</tableEntry>
195 </listNormalizedVolumesToDecibelVolumes>
196 <listMainSoundPropertiesToSoundProperties>
197 <mapEntry>MSP_UNKNOWN,SP_UNKNOWN</mapEntry>
198 <mapEntry>MSP_GENIVI_TREBLE,SP_GENIVI_TREBLE</mapEntry>
199 </listMainSoundPropertiesToSoundProperties>
201 <sink baseName="SinkTemplate">
203 <domainName>PulseAudio</domainName>
204 <name>rsnd-dai.0-ak4642-hifi#Analog#Stereo</name>
205 <className>BASE</className>
206 <registrationType>REG_ROUTER</registrationType>
208 <sink baseName="SinkTemplate">
210 <domainName>PulseAudio</domainName>
211 <name>Microchip#MOST:0#Multichannel</name>
212 <className>BASE</className>
213 <registrationType>REG_ROUTER</registrationType>
217 <!-- This is a single domain example, therefore no gateway is present -->
222 <name>PulseAudio</name>
223 <busName>org.genivi.audiomanager</busName>
224 <nodeName>pulseaudio</nodeName>
226 <complete>TRUE</complete>
227 <state>DS_CONTROLLED</state>
228 <registrationType>REG_ROUTER</registrationType>
234 <type>C_PLAYBACK</type>
235 <priority>1</priority>
236 <topology>Microchip#MOST:0#Multichannel^rsnd-dai.0-ak4642-hifi#Analog#Stereo=mediaplayer^music^ALSA#Playback</topology>
240 <type>C_PLAYBACK</type>
241 <priority>2</priority>
242 <topology>Microchip#MOST:0#Multichannel^rsnd-dai.0-ak4642-hifi#Analog#Stereo=Navi</topology>
246 <type>C_PLAYBACK</type>
247 <priority>3</priority>
248 <topology>Microchip#MOST:0#Multichannel^rsnd-dai.0-ak4642-hifi#Analog#Stereo=phone</topology>
252 <!--Connect Policy Start-->
255 <trigger>USER_CONNECTION_REQUEST</trigger>
257 <condition>name(CLASS, REQUESTING) EQ "BASE"</condition>
258 <condition>connectionState(CONNECTIONOFCLASS, REQUESTING, OTHERS) INC CS_CONNECTED</condition>
260 <type>ACTION_SUSPEND</type>
262 <className>"BASE"</className>
263 <connectionState>CS_CONNECTED</connectionState>
270 <trigger>USER_CONNECTION_REQUEST</trigger>
272 <condition>name(CLASS, REQUESTING) EQ "INT"</condition>
274 <type>ACTION_LIMIT</type>
276 <className>"BASE"</className>
277 <volume>-1000</volume>
278 <pattern>01</pattern>
283 <condition>name(CLASS, REQUESTING) EQ "INT"</condition>
284 <condition>connectionState(CONNECTIONOFCLASS, REQUESTING, OTHERS) INC CS_CONNECTED</condition>
285 <condition>priority(CONNECTIONOFCLASS, REQUESTING, OTHERS) LT priority(CONNECTION, REQUESTING)</condition>
287 <type>ACTION_PUSH</type>
289 <className>"INT"</className>
290 <order>O_NEWEST</order>
296 <condition>name(CLASS, REQUESTING) EQ "INT"</condition>
297 <condition>connectionState(CONNECTIONOFCLASS, REQUESTING, OTHERS) INC CS_CONNECTED</condition>
299 <type>ACTION_PUSH</type>
301 <className>"INT"</className>
302 <order>O_OLDEST</order>
307 <condition>name(CLASS, REQUESTING) EQ "INT"</condition>
308 <condition>connectionState(CONNECTIONOFCLASS, "PHONE") INC CS_CONNECTED</condition>
310 <type>ACTION_MUTE</type>
312 <className>REQUESTING</className>
316 <type>ACTION_CONNECT</type>
318 <className>REQUESTING</className>
326 <trigger>USER_CONNECTION_REQUEST</trigger>
328 <condition>name(CLASS, REQUESTING) EQ "PHONE"</condition>
330 <type>ACTION_LIMIT</type>
332 <className>"BASE"</className>
333 <volume>-1000</volume>
334 <pattern>02</pattern>
339 <condition>name(CLASS, REQUESTING) EQ "PHONE"</condition>
340 <condition>connectionState(CONNECTIONOFCLASS, "INT") INC CS_CONNECTED</condition>
342 <type>ACTION_MUTE</type>
344 <className>"INT"</className>
349 <condition>name(SINK, REQUESTING) EQ "AMP"</condition>
351 <type>ACTION_CONNECT</type>
353 <className>REQUESTING</className>
354 <timeOut>5000</timeOut>
360 <!--Connect policy end-->
361 <!--Disconnect policy start-->
363 <trigger>USER_DISCONNECTION_REQUEST</trigger>
366 <type>ACTION_DISCONNECT</type>
368 <sourceName>REQUESTING</sourceName>
369 <sinkName>REQUESTING</sinkName>
374 <condition>name(CLASS, REQUESTING) EQ "INT"</condition>
376 <type>ACTION_UNLIMIT</type>
378 <className>"BASE"</className>
379 <pattern>01</pattern>
384 <condition>name(CLASS, REQUESTING) EQ "INT"</condition>
385 <condition>connectionState(CONNECTIONOFCLASS, REQUESTING, OTHERS) INC CS_CONNECTED</condition>
387 <type>ACTION_POP</type>
389 <className>"INT"</className>
390 <order>O_OLDEST</order>
395 <condition>name(CLASS, REQUESTING) EQ "PHONE"</condition>
396 <condition>connectionState(CONNECTIONOFCLASS, "INT") INC CS_CONNECTED</condition>
398 <type>ACTION_UNMUTE</type>
400 <className>"INT"</className>
405 <condition>name(CLASS, REQUESTING) EQ "PHONE"</condition>
407 <type>ACTION_UNLIMIT</type>
409 <className>"BASE"</className>
410 <pattern>02</pattern>
415 <condition>name(CLASS, REQUESTING) EQ "BASE"</condition>
416 <condition>connectionState(CONNECTIONOFCLASS, "BASE") INC CS_SUSPENDED</condition>
418 <type>ACTION_RESUME</type>
420 <className>"BASE"</className>
421 <connectionState>CS_SUSPENDED</connectionState>
426 <!-- default volume policy start -->
428 <trigger>USER_SET_VOLUME</trigger>
431 <type>ACTION_SET_VOLUME</type>
433 <sinkName>REQUESTING</sinkName>
438 <!-- default volume policy end -->
439 <!-- default mute policy start -->
441 <trigger>USER_SET_SINK_MUTE_STATE</trigger>
443 <condition>muteState(USER,REQUESTING) EQ MS_MUTED</condition>
445 <type>ACTION_MUTE</type>
447 <sinkName>REQUESTING</sinkName>
452 <condition>muteState(USER,REQUESTING) EQ MS_UNMUTED</condition>
454 <type>ACTION_UNMUTE</type>
456 <sinkName>REQUESTING</sinkName>
461 <!-- default mute policy end -->
462 <!-- default set sink sound property policy start -->
464 <trigger>USER_SET_SINK_MAIN_SOUND_PROPERTY</trigger>
467 <type>ACTION_SET_PROPERTY</type>
469 <sinkName>REQUESTING</sinkName>
474 <!-- default set sink sound property policy end -->
475 <!-- default set source sound property policy start -->
477 <trigger>USER_SET_SOURCE_MAIN_SOUND_PROPERTY</trigger>
480 <type>ACTION_SET_PROPERTY</type>
482 <sourceName>REQUESTING</sourceName>
487 <!-- default set source sound property policy end -->
488 <!-- default connect policy start -->
490 <trigger>USER_CONNECTION_REQUEST</trigger>
493 <type>ACTION_MUTE</type>
495 <className>REQUESTING</className>
496 <timeOut>5000</timeOut>
500 <type>ACTION_CONNECT</type>
502 <className>REQUESTING</className>
503 <timeOut>5000</timeOut>
507 <type>ACTION_UNMUTE</type>
509 <className>REQUESTING</className>
514 <!-- default connect policy end -->
516 <listSystemProperties>
518 <type>SYP_DEBUG_LOG</type>
521 </listSystemProperties>