summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqctecmdr <qctecmdr@localhost>2020-07-30 01:44:59 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2020-07-30 01:44:59 -0700
commitd0271980890d7cdf579bce97dffdaceb11c14d5c (patch)
tree6316c72a4a9d14835c1baa7744503a091f5744d8
parentad9d364285b1b3363909a325545b720b02794122 (diff)
parent4732998c6da18b2f0def3b8ab7aec634be67ac6e (diff)
downloadmsm-extra-d0271980890d7cdf579bce97dffdaceb11c14d5c.tar.gz
Merge "dsp: fix to race condition in voice call mute command handling."
-rw-r--r--dsp/q6voice.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/dsp/q6voice.c b/dsp/q6voice.c
index c63cf982..84a2eb94 100644
--- a/dsp/q6voice.c
+++ b/dsp/q6voice.c
@@ -7204,6 +7204,16 @@ int voc_enable_device(uint32_t session_id)
goto done;
}
v->voc_state = VOC_RUN;
+
+ if (v->lch_mode == 0) {
+ pr_debug("%s: dev_mute = %d, ramp_duration = %d ms\n",
+ __func__, v->dev_rx.dev_mute,
+ v->dev_rx.dev_mute_ramp_duration_ms);
+ ret = voice_send_device_mute_cmd(v,
+ VSS_IVOLUME_DIRECTION_RX,
+ v->dev_rx.dev_mute,
+ v->dev_rx.dev_mute_ramp_duration_ms);
+ }
} else {
pr_debug("%s: called in voc state=%d, No_OP\n",
__func__, v->voc_state);