summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergii Iegorov2013-04-10 09:24:27 -0500
committerGerrit Code Review2013-04-10 15:18:31 -0500
commit1892d5bbd0f61243186d7c1b623f815e5fecdf10 (patch)
treef285b201dd996beef15d4d5f603c0dc2ad259929
parent035887e31a33c20b6fce127760807913d830264d (diff)
downloaddevice-ti-common-open-1892d5bbd0f61243186d7c1b623f815e5fecdf10.tar.gz
device-ti-common-open-1892d5bbd0f61243186d7c1b623f815e5fecdf10.tar.xz
device-ti-common-open-1892d5bbd0f61243186d7c1b623f815e5fecdf10.zip
Audio HAL: Using wired headset for camcoder recording on Tablet.
Use sub mic as a sound source for camcoder recording for Blaze only, not for Tablet. Change-Id: I5dd1ec642d85c8be79bf4607b2ff17bb6c6a3c5e Signed-off-by: Sergii Iegorov <x0155539@ti.com>
-rw-r--r--audio/audio_hw.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 56c07e4..47bb5b0 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -1751,10 +1751,12 @@ static void select_input_device(struct omap_audio_device *adev)
1751 1751
1752 if (!bt_on) { 1752 if (!bt_on) {
1753 if ((adev->mode != AUDIO_MODE_IN_CALL) && (adev->active_input != 0)) { 1753 if ((adev->mode != AUDIO_MODE_IN_CALL) && (adev->active_input != 0)) {
1754 /* sub mic is used for camcorder or VoIP on speaker phone */ 1754 if (adev->board_type == OMAP4_BLAZE) {
1755 sub_mic_on = (adev->active_input->source == AUDIO_SOURCE_CAMCORDER) || 1755 /* sub mic is used for camcorder or VoIP on speaker phone */
1756 ((adev->devices.out_devices & AUDIO_DEVICE_OUT_SPEAKER) && 1756 sub_mic_on = (adev->active_input->source == AUDIO_SOURCE_CAMCORDER) ||
1757 (adev->active_input->source == AUDIO_SOURCE_VOICE_COMMUNICATION)); 1757 ((adev->devices.out_devices & AUDIO_DEVICE_OUT_SPEAKER) &&
1758 (adev->active_input->source == AUDIO_SOURCE_VOICE_COMMUNICATION));
1759 }
1758 } 1760 }
1759 if (!sub_mic_on) { 1761 if (!sub_mic_on) {
1760 headset_on = adev->devices.in_devices & AUDIO_DEVICE_IN_WIRED_HEADSET; 1762 headset_on = adev->devices.in_devices & AUDIO_DEVICE_IN_WIRED_HEADSET;