Home
last modified time | relevance | path

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

/frameworks/av/include/private/media/
DAudioTrackShared.h226 audio_track_cblk_t* const mCblk; // the control block
303 return mEpoch + mCblk->mServer; in getPosition()
315 mCblk->mMinimum = (uint32_t) minimum; in setMinimum()
377 mCblk->mSendLevel = uint16_t(sendLevel * 0x1000); in setSendLevel()
382 mCblk->mVolumeLR = volumeLR; in setVolumeLR()
386 mCblk->mSampleRate = sampleRate; in setSampleRate()
402 return mCblk->u.mStreaming.mUnderrunFrames; in getUnderrunFrames()
405 return mCblk->u.mStreaming.mUnderrunCount; in getUnderrunCount()
486 int32_t rear = android_atomic_acquire_load(&mCblk->u.mStreaming.mRear); in flush()
487 int32_t front = mCblk->u.mStreaming.mFront; in flush()
[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.cpp174 mCblk = static_cast<effect_param_cblk_t*>(cblk->unsecurePointer()); in set()
176 mCblk->buffer = (uint8_t *)mCblk + bufOffset; in set()
388 Mutex::Autolock _l(mCblk->lock); in setParameterDeferred()
393 if (mCblk->clientIndex + size > EFFECT_PARAM_BUFFER_SIZE) { in setParameterDeferred()
396 int *p = (int *)(mCblk->buffer + mCblk->clientIndex); in setParameterDeferred()
399 mCblk->clientIndex += size; in setParameterDeferred()
413 Mutex::Autolock _l(mCblk->lock); in setParameterCommit()
414 if (mCblk->clientIndex == 0) { in setParameterCommit()
DAudioTrack.cpp796 &mCblk->mFlags); in start()
800 int32_t flags = android_atomic_and(~(CBLK_STREAM_END_DONE | CBLK_DISABLED), &mCblk->mFlags); in start()
1495 if (mCblk->mFlags & CBLK_INVALID) { in getPosition()
1561 android_atomic_or(CBLK_INVALID, &mCblk->mFlags); in setOutputDevice()
1791 mCblk = cblk; in createTrack_l()
2090 int32_t flags = android_atomic_and(~CBLK_DISABLED, &mCblk->mFlags); in restartIfDisabled()
2112 &mCblk->mFlags); in write()
2176 LOG_ALWAYS_FATAL_IF(mCblk == NULL); in processAudioBuffer()
2203 ~(CBLK_UNDERRUN | CBLK_LOOP_CYCLE | CBLK_LOOP_FINAL | CBLK_BUFFER_END), &mCblk->mFlags); in processAudioBuffer()
2746 if (mCblk != nullptr) { in restoreTrack_l()
[all …]
DAudioRecord.cpp450 int32_t flags = android_atomic_acquire_load(&mCblk->mFlags); in start()
679 android_atomic_or(CBLK_INVALID, &mCblk->mFlags); in setInputDevice()
906 mCblk = cblk; in createRecord_l()
1195 int32_t flags = android_atomic_and(~CBLK_OVERRUN, &mCblk->mFlags); in processAudioBuffer()
1468 if (mCblk != nullptr) { in restoreRecord_l()
1469 android_atomic_or(CBLK_INVALID, &mCblk->mFlags); in restoreRecord_l()
/frameworks/av/services/audioflinger/
DTrackBase.h81 audio_track_cblk_t* cblk() const { return mCblk; } in cblk()
273 if (mCblk != nullptr) { in releaseCblk()
274 mCblk->~audio_track_cblk_t(); // destroy our shared-structure. in releaseCblk()
276 free(mCblk); in releaseCblk()
278 mCblk = nullptr; in releaseCblk()
352 audio_track_cblk_t* mCblk; variable
DTracks.cpp100 mCblk(NULL), in TrackBase()
167 … (mCblk = static_cast<audio_track_cblk_t *>(mCblkMemory->unsecurePointer())) == NULL) { in TrackBase()
174 mCblk = (audio_track_cblk_t *) malloc(size); in TrackBase()
175 if (mCblk == NULL) { in TrackBase()
182 if (mCblk != NULL) { in TrackBase()
183 new(mCblk) audio_track_cblk_t(); in TrackBase()
214 mBuffer = (char*)mCblk + sizeof(audio_track_cblk_t); in TrackBase()
219 mCblk->mFlags = CBLK_FORCEREADY; // FIXME hack, need to fix the track ready logic in TrackBase()
674 if (mCblk == NULL) { in Track()
686 mAudioTrackServerProxy = new AudioTrackServerProxy(mCblk, mBuffer, frameCount, in Track()
[all …]
DFastCaptureState.h39 audio_track_cblk_t* mCblk; // control block for the single fast client, or NULL member
DEffects.cpp1713 mEffect(effect), mEffectClient(effectClient), mClient(client), mCblk(NULL), in EffectHandle()
1724 (mCblk = static_cast<effect_param_cblk_t *>(mCblkMemory->unsecurePointer())) == NULL) { in EffectHandle()
1730 new(mCblk) effect_param_cblk_t(); in EffectHandle()
1731 mBuffer = (uint8_t *)mCblk + bufOffset; in EffectHandle()
1844 if (mCblk != NULL) { in disconnect()
1846 mCblk->~effect_param_cblk_t(); // destroy our shared-structure. in disconnect()
1928 Mutex::Autolock _l(mCblk->lock); in command()
1930 const uint32_t clientIndex = mCblk->clientIndex; in command()
1931 const uint32_t serverIndex = mCblk->serverIndex; in command()
1934 mCblk->serverIndex = 0; in command()
[all …]
DFastCapture.cpp215 audio_track_cblk_t* cblk = current->mCblk; in onWork()
DEffects.h384 effect_param_cblk_t* mCblk; // control block for deferred parameter setting via variable
DThreads.cpp7095 state->mCblk = NULL; in RecordThread()
7386 audio_track_cblk_t *cblkOld = state->mCblk; in threadLoop()
7389 state->mCblk = cblkNew; in threadLoop()
/frameworks/av/media/libaudioclient/include/media/
DAudioEffect.h608 effect_param_cblk_t* mCblk = nullptr; // control block for deferred parameter setting variable
DAudioRecord.h741 audio_track_cblk_t* mCblk; // re-load after mLock.unlock() variable
DAudioTrack.h1138 audio_track_cblk_t* mCblk; // re-load after mLock.unlock() variable