• Home
  • Raw
  • Download

Lines Matching refs:frames

34 			       snd_pcm_uframes_t off, snd_pcm_uframes_t frames);
48 snd_pcm_uframes_t frames, ofs, transfer; in snd_pcm_playback_silence() local
69 frames = runtime->silence_threshold - noise_dist; in snd_pcm_playback_silence()
70 if (frames > runtime->silence_size) in snd_pcm_playback_silence()
71 frames = runtime->silence_size; in snd_pcm_playback_silence()
83 frames = new_hw_ptr - ofs; in snd_pcm_playback_silence()
84 if ((snd_pcm_sframes_t)frames < 0) in snd_pcm_playback_silence()
85 frames += runtime->boundary; in snd_pcm_playback_silence()
86 runtime->silence_filled -= frames; in snd_pcm_playback_silence()
94 frames = runtime->buffer_size - runtime->silence_filled; in snd_pcm_playback_silence()
96 if (snd_BUG_ON(frames > runtime->buffer_size)) in snd_pcm_playback_silence()
98 if (frames == 0) in snd_pcm_playback_silence()
101 while (frames > 0) { in snd_pcm_playback_silence()
102 transfer = ofs + frames > runtime->buffer_size ? runtime->buffer_size - ofs : frames; in snd_pcm_playback_silence()
106 frames -= transfer; in snd_pcm_playback_silence()
2032 snd_pcm_uframes_t frames, in interleaved_copy() argument
2040 frames = frames_to_bytes(runtime, frames); in interleaved_copy()
2041 return transfer(substream, 0, hwoff, data + off, frames); in interleaved_copy()
2050 snd_pcm_uframes_t frames, in noninterleaved_copy() argument
2063 frames = samples_to_bytes(runtime, frames); in noninterleaved_copy()
2067 err = fill_silence(substream, c, hwoff, NULL, frames); in noninterleaved_copy()
2070 frames); in noninterleaved_copy()
2081 snd_pcm_uframes_t off, snd_pcm_uframes_t frames) in fill_silence_frames() argument
2085 return interleaved_copy(substream, off, NULL, 0, frames, in fill_silence_frames()
2088 return noninterleaved_copy(substream, off, NULL, 0, frames, in fill_silence_frames()
2230 snd_pcm_uframes_t frames, appl_ptr, appl_ofs; in __snd_pcm_lib_xfer() local
2250 frames = size > avail ? avail : size; in __snd_pcm_lib_xfer()
2254 if (frames > cont) in __snd_pcm_lib_xfer()
2255 frames = cont; in __snd_pcm_lib_xfer()
2256 if (snd_BUG_ON(!frames)) { in __snd_pcm_lib_xfer()
2265 err = writer(substream, appl_ofs, data, offset, frames, in __snd_pcm_lib_xfer()
2274 appl_ptr += frames; in __snd_pcm_lib_xfer()
2281 offset += frames; in __snd_pcm_lib_xfer()
2282 size -= frames; in __snd_pcm_lib_xfer()
2283 xfer += frames; in __snd_pcm_lib_xfer()
2284 avail -= frames; in __snd_pcm_lib_xfer()