summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;