Lines Matching defs:new_hw_ptr
42 void snd_pcm_playback_silence(struct snd_pcm_substream *substream, snd_pcm_uframes_t new_hw_ptr)
68 if (new_hw_ptr == ULONG_MAX) { /* initialization */
78 frames = new_hw_ptr - ofs;
84 runtime->silence_start = new_hw_ptr;
305 snd_pcm_uframes_t old_hw_ptr, new_hw_ptr, hw_base;
331 new_hw_ptr = hw_base + pos;
336 if (delta > new_hw_ptr) {
340 new_hw_ptr = hw_base + pos;
344 /* new_hw_ptr might be lower than old_hw_ptr in case when */
346 if (new_hw_ptr < old_hw_ptr) {
350 new_hw_ptr = hw_base + pos;
353 delta = new_hw_ptr - old_hw_ptr;
369 (unsigned long)new_hw_ptr,
376 "(stream=%i, pos=%ld, new_hw_ptr=%ld, "
380 (long)new_hw_ptr, (long)old_hw_ptr);
403 /* move new_hw_ptr according jiffies not pos variable */
404 new_hw_ptr = old_hw_ptr;
409 new_hw_ptr += runtime->period_size;
410 if (new_hw_ptr >= runtime->boundary)
411 new_hw_ptr -= runtime->boundary;
424 (unsigned long)new_hw_ptr);
427 hw_base = new_hw_ptr - (new_hw_ptr % runtime->buffer_size);
433 "(stream=%i, delta=%ld, new_hw_ptr=%ld, "
437 (long)new_hw_ptr,
441 if (runtime->status->hw_ptr == new_hw_ptr)
446 snd_pcm_playback_silence(substream, new_hw_ptr);
449 delta = new_hw_ptr - runtime->hw_ptr_interrupt;
458 runtime->status->hw_ptr = new_hw_ptr;