Home
last modified time | relevance | path

Searched refs:mCblk (Results 1 – 15 of 15) sorted by relevance

/frameworks/av/include/private/media/
DAudioTrackShared.h309 audio_track_cblk_t* const mCblk; // the control block
386 return mEpoch + mCblk->mServer;
398 mCblk->mMinimum = (uint32_t) minimum;
409 int32_t getState() const { return mCblk->mState; }
461 mCblk->mSendLevel = uint16_t(sendLevel * 0x1000);
466 mCblk->mVolumeLR = volumeLR;
470 mCblk->mSampleRate = sampleRate;
486 return mCblk->u.mStreaming.mUnderrunFrames;
489 return mCblk->u.mStreaming.mUnderrunCount;
570 int32_t rear = android_atomic_acquire_load(&mCblk->u.mStreaming.mRear);
[all …]
/frameworks/av/media/libaudioclient/
DAudioTrackShared.cpp80 : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize), in Proxy()
89 android_atomic_load(&mCblk->mStartThresholdInFrames); in getStartThresholdInFrames()
102 android_atomic_store(&mCblk->mStartThresholdInFrames, actual); in setStartThresholdInFrames()
143 android_atomic_release_store(clippedSize, (int32_t *)&mCblk->mBufferSizeInFrames); in setBufferSizeInFrames()
181 audio_track_cblk_t* cblk = mCblk; in obtainBuffer()
394 audio_track_cblk_t* cblk = mCblk; in releaseBuffer()
407 audio_track_cblk_t* cblk = mCblk; in binderDied()
418 audio_track_cblk_t* cblk = mCblk; in interrupt()
429 audio_track_cblk_t* cblk = mCblk; in getMisalignment()
467 const int32_t rearMasked = mCblk->u.mStreaming.mRear & mask; in sendStreamingFlushStop()
[all …]
DAudioEffect.cpp173 mCblk = static_cast<effect_param_cblk_t*>(cblk->unsecurePointer()); in set()
175 mCblk->buffer = (uint8_t *)mCblk + bufOffset; in set()
455 Mutex::Autolock _l(mCblk->lock); in setParameterDeferred()
460 if (mCblk->clientIndex + size > EFFECT_PARAM_BUFFER_SIZE) { in setParameterDeferred()
463 int *p = (int *)(mCblk->buffer + mCblk->clientIndex); in setParameterDeferred()
466 mCblk->clientIndex += size; in setParameterDeferred()
480 Mutex::Autolock _l(mCblk->lock); in setParameterCommit()
481 if (mCblk->clientIndex == 0) { in setParameterCommit()
DAudioTrack.cpp840 &mCblk->mFlags); in start()
844 int32_t flags = android_atomic_and(~(CBLK_STREAM_END_DONE | CBLK_DISABLED), &mCblk->mFlags); in start()
1622 if (mCblk->mFlags & CBLK_INVALID) { in getPosition()
1704 android_atomic_or(CBLK_INVALID, &mCblk->mFlags); in setOutputDevice()
1711 android_atomic_or(CBLK_INVALID, &mCblk->mFlags); in setOutputDevice()
1949 mCblk = cblk; in createTrack_l()
2291 int32_t flags = android_atomic_and(~CBLK_DISABLED, &mCblk->mFlags); in restartIfDisabled()
2313 &mCblk->mFlags); in write()
2377 LOG_ALWAYS_FATAL_IF(mCblk == NULL); in processAudioBuffer()
2409 ~(CBLK_UNDERRUN | CBLK_LOOP_CYCLE | CBLK_LOOP_FINAL | CBLK_BUFFER_END), &mCblk->mFlags); in processAudioBuffer()
[all …]
DAudioRecord.cpp440 int32_t flags = android_atomic_acquire_load(&mCblk->mFlags); in start()
694 android_atomic_or(CBLK_INVALID, &mCblk->mFlags); in setInputDevice()
701 android_atomic_or(CBLK_INVALID, &mCblk->mFlags); in setInputDevice()
940 mCblk = cblk; in createRecord_l()
1278 int32_t flags = android_atomic_and(~CBLK_OVERRUN, &mCblk->mFlags); in processAudioBuffer()
1561 if (mCblk != nullptr) { in restoreRecord_l()
1562 android_atomic_or(CBLK_INVALID, &mCblk->mFlags); in restoreRecord_l()
/frameworks/av/services/audioflinger/
DTrackBase.h57 audio_track_cblk_t* cblk() const final { return mCblk; } in cblk()
259 if (mCblk != nullptr) { in releaseCblk()
261 mCblk->~audio_track_cblk_t(); // destroy our shared-structure. in releaseCblk()
263 free(mCblk); in releaseCblk()
265 mCblk = nullptr; in releaseCblk()
340 audio_track_cblk_t* mCblk; variable
DTracks.cpp106 mCblk(NULL), in TrackBase()
173 … (mCblk = static_cast<audio_track_cblk_t *>(mCblkMemory->unsecurePointer())) == NULL) { in TrackBase()
180 mCblk = (audio_track_cblk_t *) malloc(size); in TrackBase()
181 if (mCblk == NULL) { in TrackBase()
188 if (mCblk != NULL) { in TrackBase()
189 new(mCblk) audio_track_cblk_t(); in TrackBase()
220 mBuffer = (char*)mCblk + sizeof(audio_track_cblk_t); in TrackBase()
225 mCblk->mFlags = CBLK_FORCEREADY; // FIXME hack, need to fix the track ready logic in TrackBase()
244 mState.setMirror(&mCblk->mState); in TrackBase()
797 if (mCblk == NULL) { in Track()
[all …]
DEffects.cpp1750 mClient(client), mCblk(nullptr), in EffectHandle()
1771 (mCblk = static_cast<effect_param_cblk_t *>(mCblkMemory->unsecurePointer())) == NULL) { in EffectHandle()
1777 new(mCblk) effect_param_cblk_t(); in EffectHandle()
1778 mBuffer = (uint8_t *)mCblk + bufOffset; in EffectHandle()
1940 if (mCblk != NULL) { in disconnect()
1942 mCblk->~effect_param_cblk_t(); // destroy our shared-structure. in disconnect()
2050 Mutex::Autolock _l2(mCblk->lock); in command()
2052 const uint32_t clientIndex = mCblk->clientIndex; in command()
2053 const uint32_t serverIndex = mCblk->serverIndex; in command()
2056 mCblk->serverIndex = 0; in command()
[all …]
DEffects.h403 effect_param_cblk_t* mCblk; // control block for deferred parameter setting via variable
DThreads.cpp8181 state->mCblk = NULL; in RecordThread()
8488 audio_track_cblk_t *cblkOld = state->mCblk; in threadLoop()
8491 state->mCblk = cblkNew; in threadLoop()
/frameworks/av/services/audioflinger/fastpath/
DFastCaptureState.h37 audio_track_cblk_t* mCblk; // control block for the single fast client, or NULL member
DFastCapture.cpp207 audio_track_cblk_t* cblk = current->mCblk; in onWork()
/frameworks/av/media/libaudioclient/include/media/
DAudioEffect.h703 effect_param_cblk_t* mCblk = nullptr; // control block for deferred parameter setting variable
DAudioRecord.h755 audio_track_cblk_t* mCblk; // re-load after mLock.unlock() variable
DAudioTrack.h1268 audio_track_cblk_t* mCblk; // re-load after mLock.unlock() variable