summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisael Lopez Cruz2014-01-28 14:14:56 -0600
committerGerrit Code Review2014-02-02 21:33:27 -0600
commitfcbbe5362b9622888add119f56afd7371b3ad6cb (patch)
treede8676640940985559a9b7e7625df67f46dda709 /audio/multizone/AudioHw.cpp
parent4a54e3f96b410df1206ab55f8e142fbe46cabe99 (diff)
downloaddevice-ti-jacinto6evm-fcbbe5362b9622888add119f56afd7371b3ad6cb.tar.gz
device-ti-jacinto6evm-fcbbe5362b9622888add119f56afd7371b3ad6cb.tar.xz
device-ti-jacinto6evm-fcbbe5362b9622888add119f56afd7371b3ad6cb.zip
audio: Multizone: Flush voice call mono pipes
Flush the mono pipes used during voice call to avoid rendering old data from the last time the pipe was used (e.g. when the paired phone enables, disables and re-enables Bluetooth during the voice call). Change-Id: I43756abed06143522e5630ca0276ca5fbc02bb29 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Diffstat (limited to 'audio/multizone/AudioHw.cpp')
-rw-r--r--audio/multizone/AudioHw.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/multizone/AudioHw.cpp b/audio/multizone/AudioHw.cpp
index d323139..38d06ed 100644
--- a/audio/multizone/AudioHw.cpp
+++ b/audio/multizone/AudioHw.cpp
@@ -1014,6 +1014,9 @@ void AudioHwDevice::leaveVoiceCall()
1014 if (mVoiceULOutStream->isStarted()) 1014 if (mVoiceULOutStream->isStarted())
1015 mVoiceULOutStream->stop(); 1015 mVoiceULOutStream->stop();
1016 1016
1017 mULPipe->flush();
1018 mDLPipe->flush();
1019
1017 disableVoiceCall(); 1020 disableVoiceCall();
1018 1021
1019 /* Reset the cabin volume for media */ 1022 /* Reset the cabin volume for media */