Permalink
Browse files

alsa_sound : audio path change to BUILT_IN_MIC for camcorder Tx

bug: 7268748
Change-Id: I7fb9ed95f6be42555653e4fc000ce8ca7d19ba59
Signed-off-by: Iliyan Malchev <malchev@google.com>
  • Loading branch information...
1 parent a8b7653 commit 87459f0857fe7fab51f45337f330bce03a53c3dc ty.lee committed with Iliyan Malchev Sep 29, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 alsa_sound/alsa_default.cpp
@@ -1438,8 +1438,6 @@ char *getUCMDevice(uint32_t devices, int input, char *rxDevice)
#ifdef SEPERATED_AUDIO_INPUT
if(input_source == AUDIO_SOURCE_VOICE_RECOGNITION) {
return strdup(SND_USE_CASE_DEV_VOICE_RECOGNITION ); /* VOICE RECOGNITION TX */
- } else if(input_source == AUDIO_SOURCE_CAMCORDER) {
- return strdup(SND_USE_CASE_DEV_CAMCORDER_TX ); /* CAMCORDER TX */
}
#endif
else {
@@ -1491,6 +1489,10 @@ char *getUCMDevice(uint32_t devices, int input, char *rxDevice)
} else {
if (callMode == AudioSystem::MODE_IN_CALL) {
return strdup(SND_USE_CASE_DEV_VOC_LINE); /* Voice BUILTIN-MIC TX */
+#ifdef SEPERATED_AUDIO_INPUT
+ } else if(input_source == AUDIO_SOURCE_CAMCORDER) {
+ return strdup(SND_USE_CASE_DEV_CAMCORDER_TX ); /* CAMCORDER TX */
+#endif
} else
return strdup(SND_USE_CASE_DEV_LINE); /* BUILTIN-MIC TX */
}

0 comments on commit 87459f0

Please sign in to comment.