From bcdf1703920397f7af1a8b1bc164ea4450cf2c2f Mon Sep 17 00:00:00 2001 From: MarcKe Date: Thu, 29 Jan 2015 20:50:09 +0100 Subject: audio: fix mute when switching devices --- audio/audio_hw.c | 3 +++ 1 file changed, 3 insertions(+) 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); } } -- cgit v1.1