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

Commit 05997e21 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Whitespace and comments

Change-Id: I99752cca74a459c4746ea4718acb0115439e50bd
parent 0e0e846f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -567,7 +567,6 @@ sp<IAudioTrack> AudioFlinger::createTrack(
        }

        pid_t pid = IPCThreadState::self()->getCallingPid();

        client = registerPid_l(pid);

        ALOGV("createTrack() sessionId: %d", (sessionId == NULL) ? -2 : *sessionId);
@@ -1357,8 +1356,7 @@ sp<IAudioRecord> AudioFlinger::openRecord(
        goto Exit;
    }

    // add client to list
    { // scope for mLock
    {
        Mutex::Autolock _l(mLock);
        thread = checkRecordThread_l(input);
        if (thread == NULL) {
+2 −1
Original line number Diff line number Diff line
@@ -1416,7 +1416,6 @@ sp<AudioFlinger::PlaybackThread::Track> AudioFlinger::PlaybackThread::createTrac
            // track must be cleared from the caller as the caller has the AF lock
            goto Exit;
        }

        mTracks.add(track);

        sp<EffectChain> chain = getEffectChain_l(sessionId);
@@ -5053,6 +5052,7 @@ void AudioFlinger::RecordThread::inputStandBy()
    mInput->stream->common.standby(&mInput->stream->common);
}

// RecordThread::createRecordTrack_l() must be called with AudioFlinger::mLock held
sp<AudioFlinger::RecordThread::RecordTrack> AudioFlinger::RecordThread::createRecordTrack_l(
        const sp<AudioFlinger::Client>& client,
        uint32_t sampleRate,
@@ -5156,6 +5156,7 @@ sp<AudioFlinger::RecordThread::RecordTrack> AudioFlinger::RecordThread::createRe
            sendPrioConfigEvent_l(callingPid, tid, kPriorityAudioApp);
        }
    }

    lStatus = NO_ERROR;

Exit:
+1 −1
Original line number Diff line number Diff line
@@ -1773,7 +1773,7 @@ status_t AudioFlinger::RecordHandle::onTransact(

// ----------------------------------------------------------------------------

// RecordTrack constructor must be called with AudioFlinger::mLock held
// RecordTrack constructor must be called with AudioFlinger::mLock and ThreadBase::mLock held
AudioFlinger::RecordThread::RecordTrack::RecordTrack(
            RecordThread *thread,
            const sp<Client>& client,