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

Commit 05f511be authored by Andy Hung's avatar Andy Hung Committed by Gerrit Code Review
Browse files

Merge "Allow AudioFlinger createRecord for compressed" into main

parents 6965d391 a404ff4f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2264,8 +2264,8 @@ status_t AudioFlinger::createRecord(const media::CreateRecordRequest& _input,
    }
    adjAttributionSource = afutils::checkAttributionSourcePackage(
            adjAttributionSource);
    // we don't yet support anything other than linear PCM
    if (!audio_is_valid_format(input.config.format) || !audio_is_linear_pcm(input.config.format)) {
    // further format checks are performed by createRecordTrack_l()
    if (!audio_is_valid_format(input.config.format)) {
        ALOGE("createRecord() invalid format %#x", input.config.format);
        lStatus = BAD_VALUE;
        goto Exit;