Home
last modified time | relevance | path

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

/frameworks/av/media/libaudioclient/
DAudioTrackShared.cpp61 Proxy::Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, in Proxy() argument
63 : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize), in Proxy()
71 ClientProxy::ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, in ClientProxy() argument
73 : Proxy(cblk, buffers, frameCount, frameSize, isOut, clientInServer) in ClientProxy()
75 , mTimestampObserver(&cblk->mExtendedTimestampQueue) in ClientProxy()
144 audio_track_cblk_t* cblk = mCblk; in obtainBuffer() local
152 int32_t flags = android_atomic_and(~CBLK_INTERRUPT, &cblk->mFlags); in obtainBuffer()
182 front = android_atomic_acquire_load(&cblk->u.mStreaming.mFront); in obtainBuffer()
183 rear = cblk->u.mStreaming.mRear; in obtainBuffer()
186 rear = android_atomic_acquire_load(&cblk->u.mStreaming.mRear); in obtainBuffer()
[all …]
DIEffect.cpp120 sp<IMemory> cblk; in getCblk() local
124 cblk = interface_cast<IMemory>(reply.readStrongBinder()); in getCblk()
125 if (cblk != 0 && cblk->pointer() == NULL) { in getCblk()
126 cblk.clear(); in getCblk()
129 return cblk; in getCblk()
DIAudioTrack.cpp60 sp<IMemory> cblk; in getCblk() local
64 cblk = interface_cast<IMemory>(reply.readStrongBinder()); in getCblk()
65 if (cblk != 0 && cblk->pointer() == NULL) { in getCblk()
66 cblk.clear(); in getCblk()
69 return cblk; in getCblk()
DAudioEffect.cpp105 sp<IMemory> cblk; in set() local
162 cblk = iEffect->getCblk(); in set()
163 if (cblk == 0) { in set()
170 mCblkMemory = cblk; in set()
171 mCblk = static_cast<effect_param_cblk_t*>(cblk->pointer()); in set()
DAudioRecord.cpp704 audio_track_cblk_t* cblk; in createRecord_l() local
793 if (output.cblk == 0) { in createRecord_l()
798 iMemPointer = output.cblk ->pointer(); in createRecord_l()
804 cblk = static_cast<audio_track_cblk_t*>(iMemPointer); in createRecord_l()
811 buffers = cblk + 1; in createRecord_l()
827 mCblkMemory = output.cblk; in createRecord_l()
831 mCblk = cblk; in createRecord_l()
869 mProxy = new AudioRecordClientProxy(cblk, buffers, mFrameCount, mFrameSize); in createRecord_l()
DAudioTrack.cpp1526 audio_track_cblk_t* cblk = static_cast<audio_track_cblk_t*>(iMemPointer); in createTrack_l() local
1527 mCblk = cblk; in createTrack_l()
1564 buffers = cblk + 1; in createTrack_l()
1588 mProxy = new AudioTrackClientProxy(cblk, buffers, mFrameCount, mFrameSize); in createTrack_l()
1590 mStaticProxy = new StaticAudioTrackClientProxy(cblk, buffers, mFrameCount, mFrameSize); in createTrack_l()
/frameworks/av/include/private/media/
DAudioTrackShared.h207 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut,
240 ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize,
360 AudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
362 : ClientProxy(cblk, buffers, frameCount, frameSize, true /*isOut*/, in ClientProxy() argument
364 mPlaybackRateMutator(&cblk->mPlaybackRateQueue) { in ClientProxy()
417 StaticAudioTrackClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
473 AudioRecordClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, in AudioRecordClientProxy() argument
475 : ClientProxy(cblk, buffers, frameCount, frameSize, in AudioRecordClientProxy()
495 ServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize,
577 AudioTrackServerProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount,
[all …]
/frameworks/av/services/audioflinger/
DFastCapture.cpp212 audio_track_cblk_t* cblk = current->mCblk; in onWork() local
220 } else if (cblk != NULL && framesWritten > 0) { in onWork()
224 int32_t rear = cblk->u.mStreaming.mRear; in onWork()
225 android_atomic_release_store(framesWritten + rear, &cblk->u.mStreaming.mRear); in onWork()
226 cblk->mServer += framesWritten; in onWork()
227 int32_t old = android_atomic_or(CBLK_FUTEX_WAKE, &cblk->mFutex); in onWork()
230 (void) syscall(__NR_futex, &cblk->mFutex, FUTEX_WAKE, 1); in onWork()
DTracks.cpp231 status = cblk() != NULL ? NO_ERROR : NO_MEMORY; in initCheck()
1404 audio_track_cblk_t* cblk = mCblk; in signalClientFlag() local
1405 android_atomic_or(flag, &cblk->mFlags); in signalClientFlag()
1406 android_atomic_release_store(0x40000000, &cblk->mFutex); in signalClientFlag()
1408 (void) syscall(__NR_futex, &cblk->mFutex, FUTEX_WAKE, INT_MAX); in signalClientFlag()
2228 audio_track_cblk_t* cblk = mCblk; in invalidate() local
2229 android_atomic_or(CBLK_INVALID, &cblk->mFlags); in invalidate()
2230 android_atomic_release_store(0x40000000, &cblk->mFutex); in invalidate()
2232 (void) syscall(__NR_futex, &cblk->mFutex, FUTEX_WAKE, INT_MAX); in invalidate()
DTrackBase.h80 audio_track_cblk_t* cblk() const { return mCblk; } in cblk() function
DThreads.cpp4914 audio_track_cblk_t* cblk = track->cblk(); in prepareTracks_l() local
4971 ALOGVV("track(%d) s=%08x [OK] on thread %p", trackId, cblk->mServer, this); in prepareTracks_l()
5002 if (cblk->mServer != 0) { in prepareTracks_l()
5009 } else if (cblk->mServer != 0) { in prepareTracks_l()
5201 ALOGVV("track(%d) s=%08x [NOT READY] on thread %p", trackId, cblk->mServer, this); in prepareTracks_l()
5653 audio_track_cblk_t* cblk = track->cblk(); in prepareTracks_l() local
5709 ALOGVV("track(%d) s=%08x [OK]", trackId, cblk->mServer); in prepareTracks_l()
6188 audio_track_cblk_t* cblk = track->cblk(); in prepareTracks_l() local
6261 ALOGVV("OffloadThread: track(%d) s=%08x [OK]", track->id(), cblk->mServer); in prepareTracks_l()
6305 ALOGVV("OffloadThread: track(%d) s=%08x [NOT READY]", track->id(), cblk->mServer); in prepareTracks_l()
[all …]
DAudioFlinger.cpp1943 output.cblk.clear(); in createRecord()
2069 output.cblk = recordTrack->getCblk(); in createRecord()
/frameworks/av/media/libaudioclient/include/media/
DIAudioFlinger.h272 cblk = interface_cast<IMemory>(parcel->readStrongBinder()); in readFromParcel()
273 if (cblk == 0 || cblk->pointer() == NULL) { in readFromParcel()
298 if (cblk != 0) { in writeToParcel()
300 (void)parcel->writeStrongBinder(IInterface::asBinder(cblk)); in writeToParcel()
325 sp<IMemory> cblk; variable