Home
last modified time | relevance | path

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

/frameworks/av/media/libmedia/
DAudioTrackShared.cpp43 Proxy::Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, in Proxy() argument
45 : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize), in Proxy()
53 ClientProxy::ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, in ClientProxy() argument
55 : Proxy(cblk, buffers, frameCount, frameSize, isOut, clientInServer), mEpoch(0) in ClientProxy()
100 audio_track_cblk_t* cblk = mCblk; in obtainBuffer() local
108 int32_t flags = android_atomic_and(~CBLK_INTERRUPT, &cblk->mFlags); in obtainBuffer()
133 front = android_atomic_acquire_load(&cblk->u.mStreaming.mFront); in obtainBuffer()
134 rear = cblk->u.mStreaming.mRear; in obtainBuffer()
137 rear = android_atomic_acquire_load(&cblk->u.mStreaming.mRear); in obtainBuffer()
138 front = cblk->u.mStreaming.mFront; in obtainBuffer()
[all …]
DIEffect.cpp117 sp<IMemory> cblk; in getCblk() local
121 cblk = interface_cast<IMemory>(reply.readStrongBinder()); in getCblk()
122 if (cblk != 0 && cblk->pointer() == NULL) { in getCblk()
123 cblk.clear(); in getCblk()
126 return cblk; in getCblk()
DIAudioTrack.cpp58 sp<IMemory> cblk; in getCblk() local
62 cblk = interface_cast<IMemory>(reply.readStrongBinder()); in getCblk()
63 if (cblk != 0 && cblk->pointer() == NULL) { in getCblk()
64 cblk.clear(); in getCblk()
67 return cblk; in getCblk()
DAudioEffect.cpp98 sp<IMemory> cblk; in set() local
141 cblk = iEffect->getCblk(); in set()
142 if (cblk == 0) { in set()
148 mCblkMemory = cblk; in set()
149 mCblk = static_cast<effect_param_cblk_t*>(cblk->pointer()); in set()
DAudioTrack.cpp1148 audio_track_cblk_t* cblk = static_cast<audio_track_cblk_t*>(iMemPointer); in createTrack_l() local
1149 mCblk = cblk; in createTrack_l()
1214 buffers = (char*)cblk + sizeof(audio_track_cblk_t); in createTrack_l()
1233 mProxy = new AudioTrackClientProxy(cblk, buffers, frameCount, mFrameSizeAF); in createTrack_l()
1235 mStaticProxy = new StaticAudioTrackClientProxy(cblk, buffers, frameCount, mFrameSizeAF); in createTrack_l()
1385 audio_track_cblk_t* cblk = mCblk; in releaseBuffer() local
1386 if (android_atomic_and(~CBLK_DISABLED, &cblk->mFlags) & CBLK_DISABLED) { in releaseBuffer()
1474 audio_track_cblk_t* cblk = mCblk; in allocateTimedBuffer() local
1475 if (!(cblk->mFlags & CBLK_INVALID)) { in allocateTimedBuffer()
1478 android_atomic_or(CBLK_INVALID, &cblk->mFlags); in allocateTimedBuffer()
[all …]
DIAudioFlinger.cpp182 sp<IMemory>& cblk, in openRecord() argument
204 cblk.clear(); in openRecord()
228 cblk = interface_cast<IMemory>(reply.readStrongBinder()); in openRecord()
229 if (cblk != 0 && cblk->pointer() == NULL) { in openRecord()
230 cblk.clear(); in openRecord()
240 } else if (cblk == 0) { in openRecord()
246 if (record != 0 || cblk != 0 || buffers != 0) { in openRecord()
253 cblk.clear(); in openRecord()
958 sp<IMemory> cblk; in onTransact() local
964 cblk, buffers, &status); in onTransact()
[all …]
DAudioRecord.cpp510 audio_track_cblk_t* cblk = static_cast<audio_track_cblk_t*>(iMemPointer); in openRecord_l() local
517 buffers = cblk + 1; in openRecord_l()
536 mCblk = cblk; in openRecord_l()
573 mProxy = new AudioRecordClientProxy(cblk, buffers, mFrameCount, mFrameSize); in openRecord_l()
/frameworks/av/include/private/media/
DAudioTrackShared.h148 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut,
179 ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize,
271 AudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
273 : ClientProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/, in ClientProxy() argument
309 StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
337 AudioRecordClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, in AudioRecordClientProxy() argument
339 : ClientProxy(cblk, buffers, frameCount, frameSize, in AudioRecordClientProxy()
349 ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize,
395 AudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
397 : ServerProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/, clientInServer) { in ServerProxy() argument
[all …]
/frameworks/av/services/audioflinger/
DFastCapture.cpp199 audio_track_cblk_t* cblk = current->mCblk; in onWork() local
200 if (cblk != NULL && framesWritten > 0) { in onWork()
201 int32_t rear = cblk->u.mStreaming.mRear; in onWork()
202 android_atomic_release_store(framesWritten + rear, &cblk->u.mStreaming.mRear); in onWork()
203 cblk->mServer += framesWritten; in onWork()
204 int32_t old = android_atomic_or(CBLK_FUTEX_WAKE, &cblk->mFutex); in onWork()
207 (void) syscall(__NR_futex, &cblk->mFutex, FUTEX_WAKE, 1); in onWork()
DTracks.cpp210 status = cblk() != NULL ? NO_ERROR : NO_MEMORY; in initCheck()
1084 audio_track_cblk_t* cblk = mCblk; in invalidate() local
1085 android_atomic_or(CBLK_INVALID, &cblk->mFlags); in invalidate()
1086 android_atomic_release_store(0x40000000, &cblk->mFutex); in invalidate()
1088 (void) syscall(__NR_futex, &cblk->mFutex, FUTEX_WAKE, INT_MAX); in invalidate()
2098 audio_track_cblk_t* cblk = mCblk; in invalidate() local
2099 android_atomic_or(CBLK_INVALID, &cblk->mFlags); in invalidate()
2100 android_atomic_release_store(0x40000000, &cblk->mFutex); in invalidate()
2102 (void) syscall(__NR_futex, &cblk->mFutex, FUTEX_WAKE, INT_MAX); in invalidate()
DTrackBase.h78 audio_track_cblk_t* cblk() const { return mCblk; } in cblk() function
DThreads.cpp3374 audio_track_cblk_t* cblk = track->cblk(); in prepareTracks_l() local
3398 ALOG_ASSERT(desiredFrames <= cblk->frameCount_); in prepareTracks_l()
3411 ALOGVV("track %d s=%08x [OK] on thread %p", name, cblk->mServer, this); in prepareTracks_l()
3445 } else if (cblk->mServer != 0) { in prepareTracks_l()
3607 ALOGVV("track %d s=%08x [NOT READY] on thread %p", name, cblk->mServer, this); in prepareTracks_l()
3630 android_atomic_or(CBLK_DISABLED, &cblk->mFlags); in prepareTracks_l()
3955 audio_track_cblk_t* cblk = track->cblk(); in processVolume_l() local
4021 audio_track_cblk_t* cblk = track->cblk(); in prepareTracks_l() local
4068 ALOGVV("track %d s=%08x [OK]", track->name(), cblk->mServer); in prepareTracks_l()
4131 android_atomic_or(CBLK_DISABLED, &cblk->mFlags); in prepareTracks_l()
[all …]
DAudioFlinger.h125 sp<IMemory>& cblk,
DAudioFlinger.cpp1393 sp<IMemory>& cblk, in openRecord() argument
1403 cblk.clear(); in openRecord()
1489 cblk = recordTrack->getCblk(); in openRecord()
/frameworks/av/include/media/
DIAudioFlinger.h93 sp<IMemory>& cblk,