[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 <elaurent@google.com>
This commit is contained in:
huanyu 2010-11-14 22:02:15 +10:00 committed by Jon Benson
parent 7304611fc3
commit 031a7f7967

View File

@ -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;