/frameworks/av/media/libmedia/ |
D | AudioTrackShared.cpp | 37 Proxy::Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, in Proxy() argument 39 : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize), in Proxy() 47 ClientProxy::ClientProxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, in ClientProxy() argument 49 : Proxy(cblk, buffers, frameCount, frameSize, isOut, clientInServer), mEpoch(0) in ClientProxy() 94 audio_track_cblk_t* cblk = mCblk; in obtainBuffer() local 102 int32_t flags = android_atomic_and(~CBLK_INTERRUPT, &cblk->mFlags); in obtainBuffer() 127 front = android_atomic_acquire_load(&cblk->u.mStreaming.mFront); in obtainBuffer() 128 rear = cblk->u.mStreaming.mRear; in obtainBuffer() 131 rear = android_atomic_acquire_load(&cblk->u.mStreaming.mRear); in obtainBuffer() 132 front = cblk->u.mStreaming.mFront; in obtainBuffer() [all …]
|
D | IEffect.cpp | 115 sp<IMemory> cblk; in getCblk() local 119 cblk = interface_cast<IMemory>(reply.readStrongBinder()); in getCblk() 120 if (cblk != 0 && cblk->pointer() == NULL) { in getCblk() 121 cblk.clear(); in getCblk() 124 return cblk; in getCblk()
|
D | IAudioTrack.cpp | 58 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()
|
D | AudioEffect.cpp | 98 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()
|
D | AudioTrack.cpp | 1131 audio_track_cblk_t* cblk = static_cast<audio_track_cblk_t*>(iMemPointer); in createTrack_l() local 1132 mCblk = cblk; in createTrack_l() 1197 buffers = (char*)cblk + sizeof(audio_track_cblk_t); in createTrack_l() 1216 mProxy = new AudioTrackClientProxy(cblk, buffers, frameCount, mFrameSizeAF); in createTrack_l() 1218 mStaticProxy = new StaticAudioTrackClientProxy(cblk, buffers, frameCount, mFrameSizeAF); in createTrack_l() 1364 audio_track_cblk_t* cblk = mCblk; in releaseBuffer() local 1365 if (android_atomic_and(~CBLK_DISABLED, &cblk->mFlags) & CBLK_DISABLED) { in releaseBuffer() 1453 audio_track_cblk_t* cblk = mCblk; in allocateTimedBuffer() local 1454 if (!(cblk->mFlags & CBLK_INVALID)) { in allocateTimedBuffer() 1457 android_atomic_or(CBLK_INVALID, &cblk->mFlags); in allocateTimedBuffer() [all …]
|
D | IAudioFlinger.cpp | 180 sp<IMemory>& cblk, in openRecord() argument 202 cblk.clear(); in openRecord() 226 cblk = interface_cast<IMemory>(reply.readStrongBinder()); in openRecord() 227 if (cblk != 0 && cblk->pointer() == NULL) { in openRecord() 228 cblk.clear(); in openRecord() 238 } else if (cblk == 0) { in openRecord() 244 if (record != 0 || cblk != 0 || buffers != 0) { in openRecord() 251 cblk.clear(); in openRecord() 956 sp<IMemory> cblk; in onTransact() local 962 cblk, buffers, &status); in onTransact() [all …]
|
D | AudioRecord.cpp | 501 audio_track_cblk_t* cblk = static_cast<audio_track_cblk_t*>(iMemPointer); in openRecord_l() local 508 buffers = cblk + 1; in openRecord_l() 527 mCblk = cblk; in openRecord_l() 564 mProxy = new AudioRecordClientProxy(cblk, buffers, mFrameCount, mFrameSize); in openRecord_l()
|
/frameworks/av/include/private/media/ |
D | AudioTrackShared.h | 148 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/ |
D | FastCapture.cpp | 198 audio_track_cblk_t* cblk = current->mCblk; in onWork() local 199 if (cblk != NULL && framesWritten > 0) { in onWork() 200 int32_t rear = cblk->u.mStreaming.mRear; in onWork() 201 android_atomic_release_store(framesWritten + rear, &cblk->u.mStreaming.mRear); in onWork() 202 cblk->mServer += framesWritten; in onWork() 203 int32_t old = android_atomic_or(CBLK_FUTEX_WAKE, &cblk->mFutex); in onWork() 206 (void) syscall(__NR_futex, &cblk->mFutex, FUTEX_WAKE, 1); in onWork()
|
D | Tracks.cpp | 210 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() 2096 audio_track_cblk_t* cblk = mCblk; in invalidate() local 2097 android_atomic_or(CBLK_INVALID, &cblk->mFlags); in invalidate() 2098 android_atomic_release_store(0x40000000, &cblk->mFutex); in invalidate() 2100 (void) syscall(__NR_futex, &cblk->mFutex, FUTEX_WAKE, INT_MAX); in invalidate()
|
D | TrackBase.h | 78 audio_track_cblk_t* cblk() const { return mCblk; } in cblk() function
|
D | Threads.cpp | 3351 audio_track_cblk_t* cblk = track->cblk(); in prepareTracks_l() local 3375 ALOG_ASSERT(desiredFrames <= cblk->frameCount_); in prepareTracks_l() 3388 ALOGVV("track %d s=%08x [OK] on thread %p", name, cblk->mServer, this); in prepareTracks_l() 3422 } else if (cblk->mServer != 0) { in prepareTracks_l() 3584 ALOGVV("track %d s=%08x [NOT READY] on thread %p", name, cblk->mServer, this); in prepareTracks_l() 3607 android_atomic_or(CBLK_DISABLED, &cblk->mFlags); in prepareTracks_l() 3932 audio_track_cblk_t* cblk = track->cblk(); in processVolume_l() local 3995 audio_track_cblk_t* cblk = track->cblk(); in prepareTracks_l() local 4015 ALOGVV("track %d s=%08x [OK]", track->name(), cblk->mServer); in prepareTracks_l() 4077 android_atomic_or(CBLK_DISABLED, &cblk->mFlags); in prepareTracks_l() [all …]
|
D | AudioFlinger.h | 125 sp<IMemory>& cblk,
|
D | AudioFlinger.cpp | 1361 sp<IMemory>& cblk, in openRecord() argument 1371 cblk.clear(); in openRecord() 1464 cblk = recordTrack->getCblk(); in openRecord()
|
/frameworks/av/include/media/ |
D | IAudioFlinger.h | 93 sp<IMemory>& cblk,
|