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

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

Merge "audio: Avoid mute during AFE PROXY Usecase"

parents 1244f1fb 6c183fdb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2202,7 +2202,8 @@ static ssize_t in_read(struct audio_stream_in *stream, void *buffer,
     * Instead of writing zeroes here, we could trust the hardware
     * to always provide zeroes when muted.
     */
    if (ret == 0 && voice_get_mic_mute(adev) && !voice_is_in_call_rec_stream(in))
    if (ret == 0 && voice_get_mic_mute(adev) && !voice_is_in_call_rec_stream(in) &&
            in->usecase != USECASE_AUDIO_RECORD_AFE_PROXY)
        memset(buffer, 0, bytes);

exit: