summaryrefslogtreecommitdiffstats
path: root/audio/audio_hw.c
diff options
context:
space:
mode:
authorDheeraj CVR <cvr.dheeraj@gmail.com>2015-02-11 10:52:07 +0530
committerforkbomb <keepcalm444@gmail.com>2015-11-25 08:07:32 +1100
commit35c6591185b6ec102af73916cf9939f6500c8cc5 (patch)
tree4f389bde3cb7876452f1c1bae087cbe8142fb090 /audio/audio_hw.c
parent9349a7624c8416c5f3b7402b22744dd6f4ae0410 (diff)
downloaddevice_samsung_i9300-35c6591185b6ec102af73916cf9939f6500c8cc5.zip
device_samsung_i9300-35c6591185b6ec102af73916cf9939f6500c8cc5.tar.gz
device_samsung_i9300-35c6591185b6ec102af73916cf9939f6500c8cc5.tar.bz2
audio: forward call mute to RIL client interface
Change-Id: Iccb763b48a687b88692c84976a7cddf72031b5be
Diffstat (limited to 'audio/audio_hw.c')
-rw-r--r--audio/audio_hw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 354aef0..e957458 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -2605,6 +2605,9 @@ static int adev_set_mic_mute(struct audio_hw_device *dev, bool state)
{
struct m0_audio_device *adev = (struct m0_audio_device *)dev;
+ if (adev->mode == AUDIO_MODE_IN_CALL)
+ ril_set_mic_mute(&adev->ril, state);
+
adev->mic_mute = state;
return 0;