Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acb5f586 authored by haobo10173529's avatar haobo10173529 Committed by Jia Jia
Browse files

audiopolicy: Fixed bug for rule file of strategy sonification respectful

If 'USE_CONFIGURABLE_AUDIO_POLICY' enabled, 'engineconfigurable'
will be used for devices selection. A bug was found in rule file
for strategy_sonification_respectful if rule file used to generate
PolicyConfigurableDomains.xml, and in that case the function of
AudioPolicyManager::getDevicesForStream will always return wrong
devices after device2, e.g., headset, connected and removed.

After removed, device2 should be reset to 'none', otherwise the
devices returned for strategy_sonification_respecful will always
not changed.

Change-Id: I656781ed46b73c5bef1f18612700a5547ea0043f
parent 6bff4d55
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -534,3 +534,20 @@ domainGroup: DeviceForStrategy
					usb_device = 0
					hdmi = 0

			conf: None
				component: /Policy/policy/strategies/sonification_respectful/selected_output_devices/mask
					earpiece = 0
					bluetooth_sco = 0
					bluetooth_sco_headset = 0
					bluetooth_sco_carkit = 0
					bluetooth_a2dp_headphones = 0
					bluetooth_a2dp_speaker = 0
					bluetooth_a2dp = 0
					wired_headset = 0
					wired_headphone = 0
					line = 0
					angl_dock_headset = 0
					dgtl_dock_headset = 0
					usb_accessory = 0
					usb_device = 0
					hdmi = 0