summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLakshman Chaluvaraju <lchalu@codeaurora.org>2021-02-02 15:50:11 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2021-02-08 02:28:02 -0800
commit88bb65c9b6f7a96d035985d6f435d9ae3e936cb4 (patch)
treefada6e96199a23797ef848c57ef28f507ccc212f
parentebe9f3c5c71283de25038c0a7cfc9f735af20319 (diff)
audio-hal: fix a2dp mute issue
Playback usecase on a2dp path is muting if its enabled while usecase on bt sco mic is still active. To fix this, avoid enabling record usecase on SCO device when A2DP device is in ready state. Change-Id: Id6d926096fd35a1f0d3b60b3f10dc8c39f2cb225
-rw-r--r--hal/audio_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 3b784b82..9b29a219 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -3157,7 +3157,7 @@ int start_input_stream(struct stream_in *in)
}
if (is_sco_in_device_type(&in->device_list)) {
- if (!adev->bt_sco_on) {
+ if (!adev->bt_sco_on || audio_extn_a2dp_source_is_ready()) {
ALOGE("%s: SCO profile is not ready, return error", __func__);
ret = -EIO;
goto error_config;