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

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

Merge "hal: avoid echo reference is disabled when closing input stream"

parents 32a3ab16 8c93ce69
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -7455,7 +7455,9 @@ static void adev_close_input_stream(struct audio_hw_device *dev,
    // between the callback and close_stream
    audio_extn_snd_mon_unregister_listener(stream);

    /* Disable echo reference while closing input stream */
    // Disable echo reference if there are no active input and hfp call
    // while closing input stream
    if (!adev->active_input && !audio_extn_hfp_is_active(adev))
        platform_set_echo_reference(adev, false, AUDIO_DEVICE_NONE);

    if (in == NULL) {