Home
last modified time | relevance | path

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

/frameworks/av/media/libmedia/
DAudioTrackShared.cpp59 Proxy::Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, in Proxy() argument
61 : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize), in Proxy()
69 ClientProxy::ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, in ClientProxy() argument
71 : Proxy(cblk, buffers, frameCount, frameSize, isOut, clientInServer) in ClientProxy()
73 , mTimestampObserver(&cblk->mExtendedTimestampQueue) in ClientProxy()
141 audio_track_cblk_t* cblk = mCblk; in obtainBuffer() local
149 int32_t flags = android_atomic_and(~CBLK_INTERRUPT, &cblk->mFlags); in obtainBuffer()
179 front = android_atomic_acquire_load(&cblk->u.mStreaming.mFront); in obtainBuffer()
180 rear = cblk->u.mStreaming.mRear; in obtainBuffer()
183 rear = android_atomic_acquire_load(&cblk->u.mStreaming.mRear); 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.cpp55 sp<IMemory> cblk; in getCblk() local
59 cblk = interface_cast<IMemory>(reply.readStrongBinder()); in getCblk()
60 if (cblk != 0 && cblk->pointer() == NULL) { in getCblk()
61 cblk.clear(); in getCblk()
64 return cblk; in getCblk()
DAudioEffect.cpp100 sp<IMemory> cblk; in set() local
145 cblk = iEffect->getCblk(); in set()
146 if (cblk == 0) { in set()
153 mCblkMemory = cblk; in set()
154 mCblk = static_cast<effect_param_cblk_t*>(cblk->pointer()); in set()
DIAudioFlinger.cpp189 sp<IMemory>& cblk, in openRecord() argument
214 cblk.clear(); in openRecord()
238 cblk = interface_cast<IMemory>(reply.readStrongBinder()); in openRecord()
239 if (cblk != 0 && cblk->pointer() == NULL) { in openRecord()
240 cblk.clear(); in openRecord()
250 } else if (cblk == 0) { in openRecord()
256 if (record != 0 || cblk != 0 || buffers != 0) { in openRecord()
263 cblk.clear(); in openRecord()
995 sp<IMemory> cblk; in onTransact() local
1000 pid, tid, clientUid, &sessionId, &notificationFrames, cblk, buffers, in onTransact()
[all …]
DAudioRecord.cpp661 audio_track_cblk_t* cblk = static_cast<audio_track_cblk_t*>(iMemPointer); in openRecord_l() local
668 buffers = cblk + 1; in openRecord_l()
687 mCblk = cblk; in openRecord_l()
714 mProxy = new AudioRecordClientProxy(cblk, buffers, mFrameCount, mFrameSize); in openRecord_l()
DAudioTrack.cpp1441 audio_track_cblk_t* cblk = static_cast<audio_track_cblk_t*>(iMemPointer); in createTrack_l() local
1442 mCblk = cblk; in createTrack_l()
1501 buffers = cblk + 1; in createTrack_l()
1528 mProxy = new AudioTrackClientProxy(cblk, buffers, frameCount, mFrameSize); in createTrack_l()
1530 mStaticProxy = new StaticAudioTrackClientProxy(cblk, buffers, frameCount, mFrameSize); in createTrack_l()
/frameworks/av/include/private/media/
DAudioTrackShared.h205 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut,
238 ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize,
356 AudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
358 : ClientProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/, in ClientProxy() argument
360 mPlaybackRateMutator(&cblk->mPlaybackRateQueue) { in ClientProxy()
407 StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
457 AudioRecordClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, in AudioRecordClientProxy() argument
459 : ClientProxy(cblk, buffers, frameCount, frameSize, in AudioRecordClientProxy()
479 ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize,
544 AudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
[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()
1045 audio_track_cblk_t* cblk = mCblk; in signalClientFlag() local
1046 android_atomic_or(flag, &cblk->mFlags); in signalClientFlag()
1047 android_atomic_release_store(0x40000000, &cblk->mFutex); in signalClientFlag()
1049 (void) syscall(__NR_futex, &cblk->mFutex, FUTEX_WAKE, INT_MAX); in signalClientFlag()
1591 audio_track_cblk_t* cblk = mCblk; in invalidate() local
1592 android_atomic_or(CBLK_INVALID, &cblk->mFlags); in invalidate()
1593 android_atomic_release_store(0x40000000, &cblk->mFutex); in invalidate()
1595 (void) syscall(__NR_futex, &cblk->mFutex, FUTEX_WAKE, INT_MAX); in invalidate()
DTrackBase.h77 audio_track_cblk_t* cblk() const { return mCblk; } in cblk() function
DThreads.cpp4029 audio_track_cblk_t* cblk = track->cblk(); in prepareTracks_l() local
4077 ALOGVV("track %d s=%08x [OK] on thread %p", name, cblk->mServer, this); in prepareTracks_l()
4111 } else if (cblk->mServer != 0) { in prepareTracks_l()
4286 ALOGVV("track %d s=%08x [NOT READY] on thread %p", name, cblk->mServer, this); in prepareTracks_l()
4703 audio_track_cblk_t* cblk = track->cblk(); in prepareTracks_l() local
4750 ALOGVV("track %d s=%08x [OK]", track->name(), cblk->mServer); in prepareTracks_l()
5227 audio_track_cblk_t* cblk = track->cblk(); in prepareTracks_l() local
5298 ALOGVV("OffloadThread: track %d s=%08x [OK]", track->name(), cblk->mServer); in prepareTracks_l()
5340 ALOGVV("OffloadThread: track %d s=%08x [NOT READY]", track->name(), cblk->mServer); in prepareTracks_l()
5572 if (outputTrack->cblk() != NULL) { in addOutputTrack()
[all …]
DAudioFlinger.h129 sp<IMemory>& cblk,
DAudioFlinger.cpp1472 sp<IMemory>& cblk, in openRecord() argument
1482 cblk.clear(); in openRecord()
1585 cblk = recordTrack->getCblk(); in openRecord()
/frameworks/av/include/media/
DIAudioFlinger.h98 sp<IMemory>& cblk,