policy-hal: make sure policy-hal is in sync with AOSP
This change makes sure that changes in the base function
are moved to custom policy if the function is derived in
custom policy.
Below changes are taken care
1) audio policy: fix capture indication to sound trigger service.
Only indicate active capture to sound trigger service
when capturing from primay HW module.
Bug: 31826453
Bug: 31771879
Change-Id: Idf92393d3e7dbf926b847ab23f670e7ab5dd5248
2) audio policy: fix media volume after ringtone
Fix regression introduced by commit 11c499a5 causing
music volume not to be restored after ringtone playback
over duplicated output (speaker + A2DP).
Bug: 31539910
Change-Id: I1c4eebea1f1a8f82ae2acfeecb9a61c437a74e25
3) audio policy: fix call volume over USB
Make sure the cache of output device selection per strategy is updated
also when an input device is connected or disconnected as the list of
input devices sometimes impacts the output device selection in
getDeviceForStrategy().
Bug: 30659619
Change-Id: Ie9f7bafda0074afcc803f309379c35b538f50170
4) audio policy: workaround for truncated touch sounds
Implement workaround to avoid touch sound truncation when
audio path or volume changes are triggered by user actions.
Also:
- Fix regression introduced by commit c75307b7 causing failure
to honor playback start delay in case of path change.
- Fix failure to report path switch delay in updateCallRouting().
- Make sure we delay temporary mute according to requested device
switch delay in checkDeviceMuteStrategies().
Bug: 29528161
Bug: 27535199
Change-Id: Id729579b6623ee67a767055b9aca7d2e2dde8491
Change-Id: I2f0b0e51ec725a462e913432f648cb7b3cf125fe
1 file changed