Merge "hal: Fix input device selection for camcorder stereo recording"
This commit is contained in:
commit
c6b2c751dc
|
@ -1408,7 +1408,11 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d
|
|||
} else if (source == AUDIO_SOURCE_CAMCORDER) {
|
||||
if (in_device & AUDIO_DEVICE_IN_BUILTIN_MIC ||
|
||||
in_device & AUDIO_DEVICE_IN_BACK_MIC) {
|
||||
snd_device = SND_DEVICE_IN_CAMCORDER_MIC;
|
||||
if (my_data->fluence_type & FLUENCE_DUAL_MIC &&
|
||||
channel_count == 2)
|
||||
snd_device = SND_DEVICE_IN_SPEAKER_DMIC;
|
||||
else
|
||||
snd_device = SND_DEVICE_IN_CAMCORDER_MIC;
|
||||
}
|
||||
} else if (source == AUDIO_SOURCE_VOICE_RECOGNITION) {
|
||||
if (in_device & AUDIO_DEVICE_IN_BUILTIN_MIC) {
|
||||
|
|
Loading…
Reference in New Issue