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

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

Merge "Allow AudioFlinger createRecord for compressed" into main am:...

Merge "Allow AudioFlinger createRecord for compressed" into main am: 05f511be am: 4641099b am: 9af37d3b

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/2821393



Change-Id: I4a7686a55bedea63de89072c93b9dbb3d72f2305
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents fefffe91 9af37d3b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2274,8 +2274,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;