summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcKe <herderkewitz@googlemail.com>2015-01-29 20:50:09 +0100
committertilaksidduram <tilaksidduram@gmail.com>2015-02-11 01:45:42 +0530
commitbcdf1703920397f7af1a8b1bc164ea4450cf2c2f (patch)
treebf410ec25a59433248b92cc695fad730943f4d0a
parent1c3ccd1cbf98430dc091240fe1aa494a51908980 (diff)
downloaddevice_samsung_n7100-bcdf1703920397f7af1a8b1bc164ea4450cf2c2f.zip
device_samsung_n7100-bcdf1703920397f7af1a8b1bc164ea4450cf2c2f.tar.gz
device_samsung_n7100-bcdf1703920397f7af1a8b1bc164ea4450cf2c2f.tar.bz2
audio: fix mute when switching devices
-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 5335d7d..16013ef 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -693,6 +693,9 @@ static void select_output_device(struct m0_audio_device *adev)
ALOGD("%s: set voicecall route: bt_disable", __func__);
set_bigroute_by_array(adev->mixer, bt_disable, 1);
}
+ // this is needed to mute the current device when output devices are switched, but mute is set
+ adev->hw_device.set_mic_mute(&adev->hw_device, adev->mic_mute);
+
set_incall_device(adev);
}
}