diff options
author | MarcKe <herderkewitz@googlemail.com> | 2015-01-29 20:50:09 +0100 |
---|---|---|
committer | tilaksidduram <tilaksidduram@gmail.com> | 2015-02-11 01:45:42 +0530 |
commit | bcdf1703920397f7af1a8b1bc164ea4450cf2c2f (patch) | |
tree | bf410ec25a59433248b92cc695fad730943f4d0a /audio | |
parent | 1c3ccd1cbf98430dc091240fe1aa494a51908980 (diff) | |
download | device_samsung_n7100-bcdf1703920397f7af1a8b1bc164ea4450cf2c2f.zip device_samsung_n7100-bcdf1703920397f7af1a8b1bc164ea4450cf2c2f.tar.gz device_samsung_n7100-bcdf1703920397f7af1a8b1bc164ea4450cf2c2f.tar.bz2 |
audio: fix mute when switching devices
Diffstat (limited to 'audio')
-rw-r--r-- | audio/audio_hw.c | 3 |
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); } } |