CRAS: hfp_ag_profile - Delay the action to remove conflict audio gateway
When an A2DP/HFP headset connects while an HFP-only headset in use, the
new HFP connection kicks out the 1st HFP-only device but still takes a
few seconds before its A2DP part get connected. Delay the action until
the new device's A2DP connection is established to avoid the audio
output got routes to internal speaker for a short period.
BUG=chromium:479247
TEST=Connect HFP-only device and stream audio, connect a 2nd
A2DP/HFP headset, verify that the 1st headset gets disconnected and
audio transfers to the 2nd headset seemslessly without noticing
a short while that audio routes to internal speaker.
Change-Id: I2a754bc5eac2f70c27906e1ff06c6ec5d8681fdf
Reviewed-on: https://chromium-review.googlesource.com/267012
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
5 files changed