summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisael Lopez Cruz2013-12-09 19:18:53 -0600
committerGerrit Code Review2014-01-13 17:21:55 -0600
commit7f2434e0451f0ce7156713e3bc91856cea5ded9b (patch)
tree28aedc4538d5de4621e71e01a0798a0064504a31
parent97d93a6c38ed54ad5765d95bacd2017301e348d1 (diff)
downloaddevice-ti-jacinto6evm-7f2434e0451f0ce7156713e3bc91856cea5ded9b.tar.gz
device-ti-jacinto6evm-7f2434e0451f0ce7156713e3bc91856cea5ded9b.tar.xz
device-ti-jacinto6evm-7f2434e0451f0ce7156713e3bc91856cea5ded9b.zip
audio: Fix inverted mic mute state
"rs_capture" array holds the controls for the non-muted state, so set_route_by_array() requires the inverted value of the "mute" state parameter. Change-Id: I9274e7000ce6905fe54e79be4dce9c05e296855a Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
-rw-r--r--audio/legacy/audio_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/legacy/audio_hw.c b/audio/legacy/audio_hw.c
index c387917..36c3d19 100644
--- a/audio/legacy/audio_hw.c
+++ b/audio/legacy/audio_hw.c
@@ -1044,7 +1044,7 @@ static int adev_set_mic_mute(struct audio_hw_device *dev, bool state)
1044 ALOGV("adev_set_mic_mute() state=%s", state ? "mute" : "unmute"); 1044 ALOGV("adev_set_mic_mute() state=%s", state ? "mute" : "unmute");
1045 1045
1046 pthread_mutex_lock(&adev->lock); 1046 pthread_mutex_lock(&adev->lock);
1047 set_route_by_array(adev->mixer, rs_capture, state); 1047 set_route_by_array(adev->mixer, rs_capture, !state);
1048 adev->mic_mute = state; 1048 adev->mic_mute = state;
1049 pthread_mutex_unlock(&adev->lock); 1049 pthread_mutex_unlock(&adev->lock);
1050 1050