diff options
author | Uday Kishore Pasupuleti <upasupul@codeaurora.org> | 2015-09-08 22:49:18 +0900 |
---|---|---|
committer | Prashant Malani <pmalani@google.com> | 2015-10-08 11:11:04 -0700 |
commit | a1f480505a2e11b65e8fe6590239bd87b3a33f11 (patch) | |
tree | 1971cb79f37624a1560493ef0bc966444b49d552 /hal/msm8974/platform.c | |
parent | fb21e4e53923416672ebbf33910d3c4bea5d15f5 (diff) | |
download | android_hardware_qcom_audio-a1f480505a2e11b65e8fe6590239bd87b3a33f11.tar.gz android_hardware_qcom_audio-a1f480505a2e11b65e8fe6590239bd87b3a33f11.tar.bz2 android_hardware_qcom_audio-a1f480505a2e11b65e8fe6590239bd87b3a33f11.zip |
hal: Support mute/unmute for HFP Tx
Current hal doesn't support mute/unmute for HFP Tx. So add the feature
to support mute/unmute for HFP Tx
Bug: 23559037
Change-Id: Ibd67225ce926516974ca87059bb139e6af0083ac
Signed-off-by: Uday Kishore Pasupuleti <upasupul@codeaurora.org>
Diffstat (limited to 'hal/msm8974/platform.c')
-rw-r--r-- | hal/msm8974/platform.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c index 134a2d87..cf493952 100644 --- a/hal/msm8974/platform.c +++ b/hal/msm8974/platform.c @@ -1607,9 +1607,13 @@ int platform_set_mic_mute(void *platform, bool state) ALL_SESSION_VSID, DEFAULT_MUTE_RAMP_DURATION_MS}; - if (adev->mode != AUDIO_MODE_IN_CALL) + if (adev->mode != AUDIO_MODE_IN_CALL && + adev->mode != AUDIO_MODE_IN_COMMUNICATION) return 0; + if (adev->enable_hfp) + mixer_ctl_name = "HFP Tx Mute"; + set_values[0] = state; ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); if (!ctl) { |