summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDheeraj CVR <cvr.dheeraj@gmail.com>2014-03-24 08:59:45 +0530
committerDheeraj CVR <cvr.dheeraj@gmail.com>2014-03-24 09:00:28 +0530
commit0b9ef7aee815199079350c8767b8c31482a05c20 (patch)
tree5bd3ac8407eb7a70d7ead29536a03b46e48c9268
parent263c60edd0d25a0a935c682ae91d75b9cf524957 (diff)
downloaddevice_samsung_i9300-0b9ef7aee815199079350c8767b8c31482a05c20.zip
device_samsung_i9300-0b9ef7aee815199079350c8767b8c31482a05c20.tar.gz
device_samsung_i9300-0b9ef7aee815199079350c8767b8c31482a05c20.tar.bz2
i9300: audio: fix input device selection
http://review.cyanogenmod.org/61104 broke input device selection resulting in single channel audio for recordings. Change-Id: I58d5a0997b22cfe5489030e698e83d1768161132
-rw-r--r--audio/audio_hw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index a51c95a..3376b55 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -722,7 +722,9 @@ static void select_output_device(struct m0_audio_device *adev)
static void select_input_device(struct m0_audio_device *adev)
{
- switch(adev->in_device) {
+ int input_device = AUDIO_DEVICE_BIT_IN | adev->in_device;
+
+ switch(input_device) {
case AUDIO_DEVICE_IN_BUILTIN_MIC:
ALOGD("%s: AUDIO_DEVICE_IN_BUILTIN_MIC", __func__);
break;