Home
last modified time | relevance | path

Searched refs:dev_frames (Results 1 – 3 of 3) sorted by relevance

/external/adhd/cras/src/server/
Ddev_stream.c72 unsigned int max_frames, dev_frames, buf_bytes; in dev_stream_create() local
109 dev_frames = in dev_stream_create()
117 2 * MAX(dev_frames, stream->buffer_frames); in dev_stream_create()
189 unsigned int dev_frames; in dev_stream_mix() local
213 dev_frames = cras_fmt_conv_convert_frames( in dev_stream_mix()
219 dev_frames = MIN(frames, num_to_write - fr_written); in dev_stream_mix()
220 read_frames = dev_frames; in dev_stream_mix()
222 num_samples = dev_frames * fmt->num_channels; in dev_stream_mix()
225 target += dev_frames * cras_get_format_bytes(fmt); in dev_stream_mix()
226 fr_written += dev_frames; in dev_stream_mix()
Ddev_io.c663 int dev_frames; in write_streams() local
674 dev_frames = dev_stream_playback_frames(curr); in write_streams()
675 if (dev_frames < 0) { in write_streams()
680 curr->stream->stream_id, dev_frames, in write_streams()
683 drain_limit = MIN((size_t)dev_frames, drain_limit); in write_streams()
684 if (!dev_frames) in write_streams()
687 write_limit = MIN((size_t)dev_frames, write_limit); in write_streams()
Dcras_iodev.c135 int dev_frames; in dev_playback_frames() local
146 dev_frames = dev_stream_playback_frames(curr); in dev_playback_frames()
149 if (dev_frames < 0) in dev_playback_frames()
151 if (!dev_frames) { in dev_playback_frames()
158 frames = dev_frames; in dev_playback_frames()
160 frames = MIN(dev_frames, frames); in dev_playback_frames()