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

Commit 5ab05b6c authored by Scott Mertz's avatar Scott Mertz Committed by Gerrit Code Review
Browse files

hal: Use speakerphone mics for wired headphones

Handset mics are tuned for holding next to your head.  Speakerphone
mics are much more likely to be the actual end user usecase.

Change-Id: I18b20fe753896389e050a436fbcc6583b95ddc05
parent b1b95441
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1990,8 +1990,7 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d
                goto exit;
            }
        }
        if (out_device & AUDIO_DEVICE_OUT_EARPIECE ||
            out_device & AUDIO_DEVICE_OUT_WIRED_HEADPHONE) {
        if (out_device & AUDIO_DEVICE_OUT_EARPIECE) {
            if (out_device & AUDIO_DEVICE_OUT_EARPIECE &&
                audio_extn_should_use_handset_anc(channel_count)) {
                snd_device = SND_DEVICE_IN_AANC_HANDSET_MIC;
@@ -2020,7 +2019,8 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d
                else
                    snd_device = SND_DEVICE_IN_BT_SCO_MIC;
            }
        } else if (out_device & AUDIO_DEVICE_OUT_SPEAKER) {
        } else if (out_device & AUDIO_DEVICE_OUT_SPEAKER ||
            out_device & AUDIO_DEVICE_OUT_WIRED_HEADPHONE) {
            if (my_data->fluence_type != FLUENCE_NONE &&
                my_data->fluence_in_voice_call &&
                my_data->fluence_in_spkr_mode) {