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

Commit b446b897 authored by Andy Hung's avatar Andy Hung Committed by Automerger Merge Worker
Browse files

Merge "Allow AudioFlinger createRecord for compressed" into main am: 05f511be

parents d2ba9637 05f511be
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;