Lines Matching defs:frames
165 size_t frames = 0;
185 rstream, buffer_offset + fr_read, &frames);
186 if (frames == 0)
189 read_frames = frames;
198 dev_frames = MIN(frames, num_to_write - fr_written);
287 &rstream->audio_area->frames);
288 num_frames = MIN(rstream->audio_area->frames - offset,
294 rstream->audio_area->frames,
308 dev_stream->conv_area->frames = write_frames;
353 area->frames - area_offset);
365 &rstream->audio_area->frames);
398 int frames;
400 frames = cras_rstream_playable_frames(dev_stream->stream,
402 if (frames < 0)
403 return frames;
406 return frames;
408 return cras_fmt_conv_in_frames_to_out(dev_stream->conv, frames);
536 size_t frames,
544 ts->tv_nsec += frames * 1000000000ULL / frame_rate;
552 size_t frames,
562 tmp = frames * (1000000000L / frame_rate);
646 * Needed frames from this device such that written frames in shm meets
659 * rstream_level + def_offset is the number of frames written to shm
663 /* Enough frames from this device for this stream. */
668 * Needed number of frames in shm such that written frames in shm meets
673 /* Convert the number of frames from stream format to device format. */
696 * If current frames in the device can provide needed amount for stream,