audio policy: fix disordered sequence while changing device
Disordered sequence will occur when delayMs of muting volume
and changing path are the same and no additional delay between
both commands (muteWaitMs == 0).
Add half reported latency to delayMs for routing could avoid
processing muting stream volume and switching path concurrently.
Test: Make VoIP/voice call and switch device between handset/handsfree.
Check if touch tone is truncated in QXDM.
Signed-off-by: Jasmine Cha <firstname.lastname@example.org>
(cherry picked from commit 7f82d1a74e77e0a89fd8431dbaf68f9b8e8b7118)
1 file changed