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

Commit 86719540 authored by Atneya Nair's avatar Atneya Nair Committed by Android (Google) Code Review
Browse files

Merge "Correct attribution source for MMAP thread" into tm-dev

parents 9c55334f 0230540d
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -9509,6 +9509,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;
@@ -9523,7 +9526,7 @@ status_t AudioFlinger::MmapThread::start(const AudioClient& client,
        ret = AudioSystem::getOutputForAttr(&mAttr, &io,
                                            mSessionId,
                                            &stream,
                                            client.attributionSource,
                                            adjAttributionSource,
                                            &config,
                                            flags,
                                            &deviceId,
@@ -9541,7 +9544,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,