Home
last modified time | relevance | path

Searched refs:availToWrite (Results 1 – 2 of 2) sorted by relevance

/system/media/audio_utils/
Dfifo_writer_T.cpp61 uint32_t availToWrite = mFrameCountP2; in write() local
62 if (availToWrite > count) { in write()
63 availToWrite = count; in write()
67 if (part1 > availToWrite) { in write()
68 part1 = availToWrite; in write()
72 uint32_t part2 = availToWrite - part1; in write()
74 mLocalRear += availToWrite; in write()
Dfifo.cpp185 ssize_t availToWrite = obtain(iovec, count, timeout); in write() local
186 if (availToWrite > 0) { in write()
194 release(availToWrite); in write()
196 return availToWrite; in write()
205 size_t availToWrite; in obtain() local
217 availToWrite = 0; in obtain()
220 availToWrite = mEffectiveFrames > (uint32_t) filled ? in obtain()
223 if (count == 0 || availToWrite > 0 || timeout == NULL || in obtain()
284 availToWrite = 0; in obtain()
286 availToWrite = mEffectiveFrames; in obtain()
[all …]