1supDomain: DeviceForProductStrategy
2	supDomain: SonificationRespectful
3		#
4		# Sonificiation Respectful follows:
5		#	- If in call: Strategy sonification (that follows phone strategy in call also...)
6		#	- If not in call AND a music stream is active remotely: Strategy sonification (that
7		#     follows enforced audible, which follows media)
8		#	- if not in call and no music stream active remotely and music stream active): strategy
9		#     media
10		#   - Otherwise follows sonification by replacing speaker with speaker safe if speaker is
11		#	  selected.
12		#
13		# Case of stream active handled programmatically
14		domain: UnreachableDevices
15			conf: calibration
16				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
17					remote_submix = 0
18					hdmi_arc = 0
19					aux_line = 0
20					spdif = 0
21					fm = 0
22					telephony_tx = 0
23					ip = 0
24					proxy = 0
25					usb_headset = 0
26					stub = 0
27				/Policy/policy/product_strategies/sonification_respectful/device_address =
28
29		domain: Speakers
30
31			conf: SpeakerSafe
32				AvailableOutputDevices Includes Speaker
33				AvailableOutputDevices Includes SpeakerSafe
34				#
35				# Follows sonification strategy if not in call and replace speaker by speaker safe
36				# if and only if speaker only selected
37				#
38				TelephonyMode IsNot InCall
39				TelephonyMode IsNot InCommunication
40
41				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
42					speaker_safe = 1
43					speaker = 0
44
45			conf: Speaker
46				AvailableOutputDevices Includes Speaker
47				ANY
48					#
49					# Follows sonification strategy if not in call
50					#
51					ALL
52						TelephonyMode IsNot InCall
53						TelephonyMode IsNot InCommunication
54					ALL
55						#
56						# Follows Phone Strategy if call
57						#
58						ForceUseForCommunication Is ForceSpeaker
59						ANY
60							TelephonyMode Is InCall
61							TelephonyMode Is InCommunication
62						AvailableOutputDevices Excludes Line
63
64				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
65					speaker_safe = 0
66					speaker = 1
67
68			conf: None
69				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
70					speaker_safe = 0
71					speaker = 0
72
73		domain: Device2
74			conf: BluetoothA2dp
75				#
76				# SonificationRespectful Follows Sonification that falls through Media strategy if not in call
77				# SonificationRespectful follows media if music stream is active
78				#
79				TelephonyMode IsNot InCall
80				TelephonyMode IsNot InCommunication
81				ForceUseForMedia IsNot ForceNoBtA2dp
82				AvailableOutputDevices Includes BluetoothA2dp
83
84				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
85					earpiece = 0
86					bluetooth_sco = 0
87					bluetooth_sco_headset = 0
88					bluetooth_sco_carkit = 0
89					bluetooth_a2dp_headphones = 0
90					bluetooth_a2dp_speaker = 0
91					bluetooth_a2dp = 1
92					wired_headset = 0
93					wired_headphone = 0
94					line = 0
95					angl_dock_headset = 0
96					dgtl_dock_headset = 0
97					usb_accessory = 0
98					usb_device = 0
99					hdmi = 0
100
101			conf: BluetoothA2dpHeadphones
102				#
103				# SonificationRespectful Follows Sonification that falls through Media strategy if not in call
104				# SonificationRespectful follows media if music stream is active
105				#
106				TelephonyMode IsNot InCall
107				TelephonyMode IsNot InCommunication
108				ForceUseForMedia IsNot ForceNoBtA2dp
109				AvailableOutputDevices Includes BluetoothA2dpHeadphones
110
111				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
112					earpiece = 0
113					bluetooth_sco = 0
114					bluetooth_sco_headset = 0
115					bluetooth_sco_carkit = 0
116					bluetooth_a2dp_headphones = 1
117					bluetooth_a2dp_speaker = 0
118					bluetooth_a2dp = 0
119					wired_headset = 0
120					wired_headphone = 0
121					line = 0
122					angl_dock_headset = 0
123					dgtl_dock_headset = 0
124					usb_accessory = 0
125					usb_device = 0
126					hdmi = 0
127
128			conf: BluetoothA2dpSpeaker
129				#
130				# SonificationRespectful Follows Sonification that falls through Media strategy if not in call
131				# SonificationRespectful follows media if music stream is active
132				#
133				TelephonyMode IsNot InCall
134				TelephonyMode IsNot InCommunication
135				ForceUseForMedia IsNot ForceNoBtA2dp
136				AvailableOutputDevices Includes BluetoothA2dpSpeaker
137
138				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
139					earpiece = 0
140					bluetooth_sco = 0
141					bluetooth_sco_headset = 0
142					bluetooth_sco_carkit = 0
143					bluetooth_a2dp_headphones = 0
144					bluetooth_a2dp_speaker = 1
145					bluetooth_a2dp = 0
146					wired_headset = 0
147					wired_headphone = 0
148					line = 0
149					angl_dock_headset = 0
150					dgtl_dock_headset = 0
151					usb_accessory = 0
152					usb_device = 0
153					hdmi = 0
154
155			conf: BluetoothScoCarkit
156				#
157				# SonificationRespectful Follows Phone strategy if in call
158				#
159				ANY
160					TelephonyMode Is InCall
161					TelephonyMode Is InCommunication
162				ForceUseForCommunication Is ForceBtSco
163				AvailableOutputDevices Includes BluetoothScoCarkit
164
165				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
166					earpiece = 0
167					bluetooth_sco = 0
168					bluetooth_sco_headset = 0
169					bluetooth_sco_carkit = 1
170					bluetooth_a2dp_headphones = 0
171					bluetooth_a2dp_speaker = 0
172					bluetooth_a2dp = 0
173					wired_headset = 0
174					wired_headphone = 0
175					line = 0
176					angl_dock_headset = 0
177					dgtl_dock_headset = 0
178					usb_accessory = 0
179					usb_device = 0
180					hdmi = 0
181
182			conf: BluetoothScoHeadset
183				#
184				# SonificationRespectful Follows Phone strategy if in call
185				#
186				ANY
187					TelephonyMode Is InCall
188					TelephonyMode Is InCommunication
189				ForceUseForCommunication Is ForceBtSco
190				AvailableOutputDevices Includes BluetoothScoHeadset
191
192				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
193					earpiece = 0
194					bluetooth_sco = 0
195					bluetooth_sco_headset = 1
196					bluetooth_sco_carkit = 0
197					bluetooth_a2dp_headphones = 0
198					bluetooth_a2dp_speaker = 0
199					bluetooth_a2dp = 0
200					wired_headset = 0
201					wired_headphone = 0
202					line = 0
203					angl_dock_headset = 0
204					dgtl_dock_headset = 0
205					usb_accessory = 0
206					usb_device = 0
207					hdmi = 0
208
209			conf: BluetoothSco
210				#
211				# SonificationRespectful Follows Phone strategy if in call
212				#
213				ANY
214					TelephonyMode Is InCall
215					TelephonyMode Is InCommunication
216				ForceUseForCommunication Is ForceBtSco
217				AvailableOutputDevices Includes BluetoothSco
218
219				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
220					earpiece = 0
221					bluetooth_sco = 1
222					bluetooth_sco_headset = 0
223					bluetooth_sco_carkit = 0
224					bluetooth_a2dp_headphones = 0
225					bluetooth_a2dp_speaker = 0
226					bluetooth_a2dp = 0
227					wired_headset = 0
228					wired_headphone = 0
229					line = 0
230					angl_dock_headset = 0
231					dgtl_dock_headset = 0
232					usb_accessory = 0
233					usb_device = 0
234					hdmi = 0
235
236			conf: WiredHeadphone
237				ANY
238					ALL
239						#
240						# SonificationRespectful Follows Phone strategy if in call
241						#
242						ANY
243							TelephonyMode Is InCall
244							TelephonyMode Is InCommunication
245						ForceUseForCommunication IsNot ForceSpeaker
246					ALL
247						#
248						# SonificationRespectful Follows Sonification that falls through Media strategy if not in call
249						# SonificationRespectful follows media if music stream is active
250						#
251						TelephonyMode IsNot InCall
252						TelephonyMode IsNot InCommunication
253						ForceUseForMedia IsNot ForceSpeaker
254				AvailableOutputDevices Includes WiredHeadphone
255
256				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
257					earpiece = 0
258					bluetooth_sco = 0
259					bluetooth_sco_headset = 0
260					bluetooth_sco_carkit = 0
261					bluetooth_a2dp_headphones = 0
262					bluetooth_a2dp_speaker = 0
263					bluetooth_a2dp = 0
264					wired_headset = 0
265					wired_headphone = 1
266					line = 0
267					angl_dock_headset = 0
268					dgtl_dock_headset = 0
269					usb_accessory = 0
270					usb_device = 0
271					hdmi = 0
272
273			conf: Line
274				ANY
275					#
276					# SonificationRespectful Follows Phone strategy if in call
277					# but Line has a lower priority than WiredHeadset in this case.
278					#
279					#
280					ALL
281						ANY
282							TelephonyMode Is InCall
283							TelephonyMode Is InCommunication
284						ForceUseForCommunication IsNot ForceSpeaker
285						AvailableOutputDevices Excludes WiredHeadset
286					#
287					# SonificationRespectful Follows Sonification that falls through Media strategy if not in call
288					# SonificationRespectful follows media if music stream is active
289					#
290					ALL
291						TelephonyMode IsNot InCall
292						TelephonyMode IsNot InCommunication
293						AvailableOutputDevices Includes WiredHeadphone
294						ForceUseForMedia IsNot ForceSpeaker
295				AvailableOutputDevices Includes Line
296
297				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
298					earpiece = 0
299					bluetooth_sco = 0
300					bluetooth_sco_headset = 0
301					bluetooth_sco_carkit = 0
302					bluetooth_a2dp_headphones = 0
303					bluetooth_a2dp_speaker = 0
304					bluetooth_a2dp = 0
305					wired_headset = 0
306					wired_headphone = 0
307					line = 1
308					angl_dock_headset = 0
309					dgtl_dock_headset = 0
310					usb_accessory = 0
311					usb_device = 0
312					hdmi = 0
313
314			conf: WiredHeadset
315				ANY
316					ALL
317						#
318						# SonificationRespectful Follows Phone strategy if in call
319						#
320						ANY
321							TelephonyMode Is InCall
322							TelephonyMode Is InCommunication
323						ForceUseForCommunication IsNot ForceSpeaker
324					ALL
325						#
326						# SonificationRespectful Follows Sonification that falls through Media strategy if not in call
327						# SonificationRespectful follows media if music stream is active
328						#
329						TelephonyMode IsNot InCall
330						TelephonyMode IsNot InCommunication
331						ForceUseForMedia IsNot ForceSpeaker
332				AvailableOutputDevices Includes WiredHeadset
333
334				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
335					earpiece = 0
336					bluetooth_sco = 0
337					bluetooth_sco_headset = 0
338					bluetooth_sco_carkit = 0
339					bluetooth_a2dp_headphones = 0
340					bluetooth_a2dp_speaker = 0
341					bluetooth_a2dp = 0
342					wired_headset = 1
343					wired_headphone = 0
344					line = 0
345					angl_dock_headset = 0
346					dgtl_dock_headset = 0
347					usb_accessory = 0
348					usb_device = 0
349					hdmi = 0
350
351			conf: UsbDevice
352				ANY
353					ALL
354						#
355						# SonificationRespectful Follows Phone strategy if in call
356						#
357						ANY
358							TelephonyMode Is InCall
359							TelephonyMode Is InCommunication
360						ForceUseForCommunication IsNot ForceSpeaker
361					ALL
362						#
363						# SonificationRespectful Follows Sonification that falls through Media strategy if not in call
364						# SonificationRespectful follows media if music stream is active
365						#
366						TelephonyMode IsNot InCall
367						TelephonyMode IsNot InCommunication
368						ForceUseForMedia IsNot ForceSpeaker
369						AvailableOutputDevices Excludes UsbAccessory
370				AvailableOutputDevices Includes UsbDevice
371
372				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
373					earpiece = 0
374					bluetooth_sco = 0
375					bluetooth_sco_headset = 0
376					bluetooth_sco_carkit = 0
377					bluetooth_a2dp_headphones = 0
378					bluetooth_a2dp_speaker = 0
379					bluetooth_a2dp = 0
380					wired_headset = 0
381					wired_headphone = 0
382					line = 0
383					angl_dock_headset = 0
384					dgtl_dock_headset = 0
385					usb_accessory = 0
386					usb_device = 1
387					hdmi = 0
388
389			conf: UsbAccessory
390				#
391				# SonificationRespectful Follows Phone strategy if in call (widely speaking)
392				# but UsbAccessory not reachable in call.
393				#
394				# SonificationRespectful Follows Sonification that falls through Media strategy if not in call
395				# SonificationRespectful follows media if music stream is active
396				#
397				TelephonyMode IsNot InCall
398				TelephonyMode IsNot InCommunication
399				ForceUseForMedia IsNot ForceSpeaker
400				AvailableOutputDevices Includes UsbAccessory
401
402				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
403					earpiece = 0
404					bluetooth_sco = 0
405					bluetooth_sco_headset = 0
406					bluetooth_sco_carkit = 0
407					bluetooth_a2dp_headphones = 0
408					bluetooth_a2dp_speaker = 0
409					bluetooth_a2dp = 0
410					wired_headset = 0
411					wired_headphone = 0
412					line = 0
413					angl_dock_headset = 0
414					dgtl_dock_headset = 0
415					usb_accessory = 1
416					usb_device = 0
417					hdmi = 0
418
419			conf: DgtlDockHeadset
420				#
421				# SonificationRespectful Follows Phone strategy if in call (widely speaking)
422				# but DgtlDockHeadset not reachable in call.
423				#
424				# SonificationRespectful Follows Sonification that falls through Media strategy if not in call
425				# SonificationRespectful follows media if music stream is active
426				#
427				TelephonyMode IsNot InCall
428				TelephonyMode IsNot InCommunication
429				ForceUseForMedia IsNot ForceSpeaker
430				AvailableOutputDevices Includes DgtlDockHeadset
431
432				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
433					earpiece = 0
434					bluetooth_sco = 0
435					bluetooth_sco_headset = 0
436					bluetooth_sco_carkit = 0
437					bluetooth_a2dp_headphones = 0
438					bluetooth_a2dp_speaker = 0
439					bluetooth_a2dp = 0
440					wired_headset = 0
441					wired_headphone = 0
442					line = 0
443					angl_dock_headset = 0
444					dgtl_dock_headset = 1
445					usb_accessory = 0
446					usb_device = 0
447					hdmi = 0
448
449			conf: AuxDigital
450				#
451				# SonificationRespectful Follows Phone strategy if in call (widely speaking)
452				# but HDMI not reachable in call.
453				#
454				# SonificationRespectful Follows Sonification that falls through Media strategy if not in call
455				# SonificationRespectful follows media if music stream is active
456				#
457				TelephonyMode IsNot InCall
458				TelephonyMode IsNot InCommunication
459				ForceUseForMedia IsNot ForceSpeaker
460				AvailableOutputDevices Includes Hdmi
461
462				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
463					earpiece = 0
464					bluetooth_sco = 0
465					bluetooth_sco_headset = 0
466					bluetooth_sco_carkit = 0
467					bluetooth_a2dp_headphones = 0
468					bluetooth_a2dp_speaker = 0
469					bluetooth_a2dp = 0
470					wired_headset = 0
471					wired_headphone = 0
472					line = 0
473					angl_dock_headset = 0
474					dgtl_dock_headset = 0
475					usb_accessory = 0
476					usb_device = 0
477					hdmi = 1
478
479			conf: AnlgDockHeadset
480				#
481				# SonificationRespectful Follows Phone strategy if in call (widely speaking)
482				# but AnlgDockHeadset not reachable in call.
483				#
484				# SonificationRespectful Follows Sonification that falls through Media strategy if not in call
485				# SonificationRespectful follows media if music stream is active
486				#
487				TelephonyMode IsNot InCall
488				TelephonyMode IsNot InCommunication
489				ForceUseForMedia IsNot ForceSpeaker
490				ForceUseForDock Is ForceAnalogDock
491				AvailableOutputDevices Includes AnlgDockHeadset
492
493				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
494					earpiece = 0
495					bluetooth_sco = 0
496					bluetooth_sco_headset = 0
497					bluetooth_sco_carkit = 0
498					bluetooth_a2dp_headphones = 0
499					bluetooth_a2dp_speaker = 0
500					bluetooth_a2dp = 0
501					wired_headset = 0
502					wired_headphone = 0
503					line = 0
504					angl_dock_headset = 1
505					dgtl_dock_headset = 0
506					usb_accessory = 0
507					usb_device = 0
508					hdmi = 0
509
510			conf: Earpiece
511				#
512				# SonificationRespectful Follows Phone strategy if in call
513				#
514				ANY
515					TelephonyMode Is InCall
516					TelephonyMode Is InCommunication
517				ForceUseForCommunication IsNot ForceSpeaker
518				AvailableOutputDevices Includes Earpiece
519
520				component: /Policy/policy/product_strategies/sonification_respectful/selected_output_devices/mask
521					earpiece = 1
522					bluetooth_sco = 0
523					bluetooth_sco_headset = 0
524					bluetooth_sco_carkit = 0
525					bluetooth_a2dp_headphones = 0
526					bluetooth_a2dp_speaker = 0
527					bluetooth_a2dp = 0
528					wired_headset = 0
529					wired_headphone = 0
530					line = 0
531					angl_dock_headset = 0
532					dgtl_dock_headset = 0
533					usb_accessory = 0
534					usb_device = 0
535					hdmi = 0
536
537