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.c76 unsigned int max_frames, dev_frames, buf_bytes; in dev_stream_create() local
115 dev_frames = (stream->direction == CRAS_STREAM_OUTPUT) in dev_stream_create()
121 out->conv_buffer_size_frames = 2 * MAX(dev_frames, in dev_stream_create()
201 unsigned int dev_frames; in dev_stream_mix() local
225 dev_frames = cras_fmt_conv_convert_frames( in dev_stream_mix()
233 dev_frames = MIN(frames, num_to_write - fr_written); in dev_stream_mix()
234 read_frames = dev_frames; in dev_stream_mix()
236 num_samples = dev_frames * fmt->num_channels; in dev_stream_mix()
239 target += dev_frames * cras_get_format_bytes(fmt); in dev_stream_mix()
240 fr_written += dev_frames; in dev_stream_mix()
Ddev_io.c505 int dev_frames; in write_streams() local
512 dev_frames = dev_stream_playback_frames(curr); in write_streams()
513 if (dev_frames < 0) { in write_streams()
520 curr->stream->stream_id, dev_frames, in write_streams()
523 drain_limit = MIN((size_t)dev_frames, drain_limit); in write_streams()
524 if (!dev_frames) in write_streams()
529 write_limit = MIN((size_t)dev_frames, write_limit); in write_streams()
Dcras_iodev.c114 int dev_frames; in dev_playback_frames() local
121 dev_frames = dev_stream_playback_frames(curr); in dev_playback_frames()
124 if (dev_frames < 0) in dev_playback_frames()
126 if (!dev_frames) { in dev_playback_frames()
133 frames = dev_frames; in dev_playback_frames()
135 frames = MIN(dev_frames, frames); in dev_playback_frames()