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

Commit 1cb8ded3 authored by Kunlei Zhang's avatar Kunlei Zhang
Browse files

hal: add echo reference for headset

Set headphone echo reference for headset.

Change-Id: Ia94b6a28a61e44c4391f41fb4f8c565c9a7128e0
parent 431207df
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1905,7 +1905,8 @@ void platform_set_echo_reference(struct audio_device *adev, bool enable,
        else if (compare_device_type(out_devices, AUDIO_DEVICE_OUT_EARPIECE))
            strlcat(ec_ref_mixer_path, " handset",
                    MIXER_PATH_MAX_LENGTH);
        else if (compare_device_type(out_devices, AUDIO_DEVICE_OUT_WIRED_HEADPHONE))
        else if (compare_device_type(out_devices, AUDIO_DEVICE_OUT_WIRED_HEADPHONE) ||
                 compare_device_type(out_devices, AUDIO_DEVICE_OUT_WIRED_HEADSET))
            strlcat(ec_ref_mixer_path, " headphones",
                    MIXER_PATH_MAX_LENGTH);
        else if (compare_device_type(out_devices, AUDIO_DEVICE_OUT_USB_HEADSET))