diff options
author | Eric Laurent <elaurent@google.com> | 2013-01-18 18:05:45 -0800 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2013-01-22 17:11:23 -0800 |
commit | 55fb017e0a31f45a08c970a3d4a4de8311302839 (patch) | |
tree | 1f9ea9c3856ef72c51e0ae535b26db8a2f339c45 /audio | |
parent | d4945b190d6e0415e05c6c4bcaeb34c8a37e2b03 (diff) | |
download | device_samsung_tuna-55fb017e0a31f45a08c970a3d4a4de8311302839.zip device_samsung_tuna-55fb017e0a31f45a08c970a3d4a4de8311302839.tar.gz device_samsung_tuna-55fb017e0a31f45a08c970a3d4a4de8311302839.tar.bz2 |
audio: added support for dual mic capture.
Added support for simultaneous capture from front and back
mics.
Change-Id: Ica1b75fe432f419272ae92e8ab04b1d34524c189
Diffstat (limited to 'audio')
-rw-r--r-- | audio/audio_hw.c | 3 | ||||
-rw-r--r-- | audio/audio_policy.conf | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c index 66a6da7..c5f1867 100644 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -1341,7 +1341,8 @@ static void select_input_device(struct tuna_audio_device *adev) /* Select front end */ - if ((adev->active_input != 0) && (adev->active_input->aux_channels)) { + if ((adev->active_input != 0) && (adev->active_input->aux_channels || + adev->active_input->main_channels == AUDIO_CHANNEL_IN_FRONT_BACK)) { ALOGV("select input device(): multi-mic configuration main mic %s sub mic %s", main_mic_on ? "ON" : "OFF", sub_mic_on ? "ON" : "OFF"); if (main_mic_on) { diff --git a/audio/audio_policy.conf b/audio/audio_policy.conf index 1012c26..bf387a2 100644 --- a/audio/audio_policy.conf +++ b/audio/audio_policy.conf @@ -47,7 +47,7 @@ audio_hw_modules { inputs { primary { sampling_rates 8000|11025|16000|22050|24000|32000|44100|48000 - channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO + channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO|AUDIO_CHANNEL_IN_FRONT_BACK formats AUDIO_FORMAT_PCM_16_BIT devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_BACK_MIC } |