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

Commit dd73a71d 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 NULL check for PCM streams in pass though module"

parents 768d9276 ccd9f38f
Loading
Loading
Loading
Loading
+14 −12
Original line number Diff line number Diff line
@@ -443,6 +443,7 @@ void audio_extn_passthru_update_stream_configuration(
        struct audio_device *adev, struct stream_out *out,
        const void *buffer __unused, size_t bytes __unused)
{
    if(out->compr_config.codec != NULL) {
        if (audio_extn_passthru_is_passt_supported(adev, out)) {
            ALOGV("%s:PASSTHROUGH", __func__);
            out->compr_config.codec->compr_passthr = PASSTHROUGH;
@@ -457,6 +458,7 @@ void audio_extn_passthru_update_stream_configuration(
            out->compr_config.codec->compr_passthr = LEGACY_PCM;
       }
    }
}

bool audio_extn_passthru_is_passthrough_stream(struct stream_out *out)
{