From 031a7f796795b6dcb3135bf23121ef46ed792535 Mon Sep 17 00:00:00 2001 From: huanyu Date: Sun, 14 Nov 2010 22:02:15 +1000 Subject: [PATCH] [ARM] msm: qsd8k: audio When muting mic input, always update saved mute state regardless of completion status returned by audio dsp. This ensures that saved mute state is coherent with mute state in phone application that has no feedback on completion status. Signed-off-by: Eric Laurent --- arch/arm/mach-msm/qdsp6_1550/q6audio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-msm/qdsp6_1550/q6audio.c b/arch/arm/mach-msm/qdsp6_1550/q6audio.c index df8a64fb..3710682e 100644 --- a/arch/arm/mach-msm/qdsp6_1550/q6audio.c +++ b/arch/arm/mach-msm/qdsp6_1550/q6audio.c @@ -1918,7 +1918,6 @@ done: int q6audio_set_tx_mute(int mute) { uint32_t adev; - int rc; AUDIO_INFO("%s\n", __func__); if (q6audio_init()) @@ -1932,7 +1931,7 @@ int q6audio_set_tx_mute(int mute) } adev = audio_tx_device_id; - rc = audio_tx_mute(ac_control, adev, mute); + audio_tx_mute(ac_control, adev, mute); tx_mute_status = mute; mutex_unlock(&audio_path_lock); return 0;