Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a137d20 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: add support for fluence in voice recognition" into av-userspace.lnx.1.0-dev.1.0

parents fed833a0 78b70c0a
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -2686,11 +2686,16 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d
        if (in_device & AUDIO_DEVICE_IN_BUILTIN_MIC) {
            if (channel_count == 2) {
                snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_STEREO;
            } else if (adev->active_input->enable_ns)
                snd_device = SND_DEVICE_IN_VOICE_REC_MIC_NS;
            else if (my_data->fluence_type != FLUENCE_NONE &&
            } else if (my_data->fluence_type != FLUENCE_NONE &&
                     my_data->fluence_in_voice_rec) {
                if (my_data->fluence_type & FLUENCE_QUAD_MIC) {
                    snd_device = SND_DEVICE_IN_HANDSET_QMIC;
                } else {
                    snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_FLUENCE;
                }
                platform_set_echo_reference(adev->platform, true, out_device);
            } else if (adev->active_input->enable_ns) {
                snd_device = SND_DEVICE_IN_VOICE_REC_MIC_NS;
            } else {
                snd_device = SND_DEVICE_IN_VOICE_REC_MIC;
            }