summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-06-18 15:08:16 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-06-18 15:08:16 -0700
commitc5e9c134c9ac3ccfca276638b15e2d89a0825070 (patch)
tree313c580164eadf4e8877b6374b069d483fc142d1 /audio
parent76c7a5bf734dd63a1bd7e9a856242040423d5438 (diff)
parent0a89265957a604cc40966434595247e2dd3870fc (diff)
downloaddevice_samsung_tuna-c5e9c134c9ac3ccfca276638b15e2d89a0825070.zip
device_samsung_tuna-c5e9c134c9ac3ccfca276638b15e2d89a0825070.tar.gz
device_samsung_tuna-c5e9c134c9ac3ccfca276638b15e2d89a0825070.tar.bz2
am 0a892659: am 2cbfd06d: audio: fix in call audio path switch issue
* commit '0a89265957a604cc40966434595247e2dd3870fc': audio: fix in call audio path switch issue
Diffstat (limited to 'audio')
-rw-r--r--audio/audio_hw.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 85cfc7b..74f2383 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -1797,6 +1797,8 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
}
/* force standby if moving to/from HDMI/SPDIF or if the output
* device changes when in HDMI/SPDIF mode */
+ /* FIXME also force standby when in call as some audio path switches do not work
+ * while in call and an output stream is active (e.g BT SCO => earpiece) */
/* FIXME workaround for audio being dropped when switching path without forcing standby
* (several hundred ms of audio can be lost: e.g beginning of a ringtone. We must understand
@@ -1815,7 +1817,8 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
(adev->devices & (AUDIO_DEVICE_OUT_AUX_DIGITAL |
AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET)) ||
((val & AUDIO_DEVICE_OUT_SPEAKER) ^
- (adev->devices & AUDIO_DEVICE_OUT_SPEAKER)))
+ (adev->devices & AUDIO_DEVICE_OUT_SPEAKER)) ||
+ (adev->mode == AUDIO_MODE_IN_CALL))
do_output_standby(out);
}
if (out != adev->outputs[OUTPUT_HDMI]) {