Lines Matching refs:diff
188 unsigned int diff;
190 diff = rec->sw_data - rec->sw_io;
192 diff = (rec->sw_buffer_size -
195 if (bytes >= diff)
255 * diff: obviously ALSA wrote that much bytes into the intermediate
258 snd_pcm_sframes_t diff = appl_ptr - rec->appl_ptr;
260 if (diff) {
264 if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2))
265 diff += runtime->boundary;
270 rec->sw_ready += (int)frames_to_bytes(runtime, diff);
420 snd_pcm_sframes_t diff = appl_ptr - rec->appl_ptr;
422 if (diff) {
426 if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2))
427 diff += runtime->boundary;
428 rec->sw_ready -= frames_to_bytes(runtime, diff);