Lines Matching refs:write_frames
245 unsigned int write_frames; in capture_with_fmt_conv() local
259 &write_frames); in capture_with_fmt_conv()
260 write_frames /= dst_frame_bytes; in capture_with_fmt_conv()
261 if (write_frames == 0) in capture_with_fmt_conv()
265 write_frames = cras_fmt_conv_convert_frames( in capture_with_fmt_conv()
267 write_frames); in capture_with_fmt_conv()
271 (size_t)write_frames * in capture_with_fmt_conv()
290 unsigned int write_frames; in capture_copy_converted_to_stream() local
313 dev_stream->conv_buffer, &write_frames); in capture_copy_converted_to_stream()
314 write_frames /= frame_bytes; in capture_copy_converted_to_stream()
315 write_frames = MIN(write_frames, num_frames - total_written); in capture_copy_converted_to_stream()
320 dev_stream->conv_area->frames = write_frames; in capture_copy_converted_to_stream()
330 (size_t)write_frames * (size_t)frame_bytes); in capture_copy_converted_to_stream()
331 total_written += write_frames; in capture_copy_converted_to_stream()
332 cras_rstream_dev_offset_update(rstream, write_frames, in capture_copy_converted_to_stream()