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

Commit e3d183a3 authored by Atneya Nair's avatar Atneya Nair Committed by Automerger Merge Worker
Browse files

Merge changes from topic "appops_native_foreground_mode_changes" into udc-dev...

Merge changes from topic "appops_native_foreground_mode_changes" into udc-dev am: 5ea3a6d1 am: c8a0cae9

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



Change-Id: Iab7522e29f7eb87a825ff0fc84dc984da0b8800b
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents a8199d1c c8a0cae9
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -9985,6 +9985,9 @@ status_t AudioFlinger::MmapThread::start(const AudioClient& client,
    audio_port_handle_t portId = AUDIO_PORT_HANDLE_NONE;

    audio_io_handle_t io = mId;
    AttributionSourceState adjAttributionSource = AudioFlinger::checkAttributionSourcePackage(
            client.attributionSource);

    if (isOutput()) {
        audio_config_t config = AUDIO_CONFIG_INITIALIZER;
        config.sample_rate = mSampleRate;
@@ -10000,7 +10003,7 @@ status_t AudioFlinger::MmapThread::start(const AudioClient& client,
        ret = AudioSystem::getOutputForAttr(&mAttr, &io,
                                            mSessionId,
                                            &stream,
                                            client.attributionSource,
                                            adjAttributionSource,
                                            &config,
                                            flags,
                                            &deviceId,
@@ -10019,7 +10022,7 @@ status_t AudioFlinger::MmapThread::start(const AudioClient& client,
        ret = AudioSystem::getInputForAttr(&mAttr, &io,
                                              RECORD_RIID_INVALID,
                                              mSessionId,
                                              client.attributionSource,
                                              adjAttributionSource,
                                              &config,
                                              AUDIO_INPUT_FLAG_MMAP_NOIRQ,
                                              &deviceId,