Lines Matching refs:dpcm_play
604 struct loopback_pcm *dpcm_play = in loopback_jiffies_timer_pos_update() local
614 delta_play = cur_jiffies - dpcm_play->last_jiffies; in loopback_jiffies_timer_pos_update()
615 dpcm_play->last_jiffies += delta_play; in loopback_jiffies_timer_pos_update()
627 count1 = bytepos_delta(dpcm_play, delta_play - delta_capt); in loopback_jiffies_timer_pos_update()
628 bytepos_finish(dpcm_play, count1); in loopback_jiffies_timer_pos_update()
641 count1 = bytepos_delta(dpcm_play, delta_play); in loopback_jiffies_timer_pos_update()
647 dpcm_play->last_drift = count1 - count2; in loopback_jiffies_timer_pos_update()
649 copy_play_buf(dpcm_play, dpcm_capt, count1); in loopback_jiffies_timer_pos_update()
650 bytepos_finish(dpcm_play, count1); in loopback_jiffies_timer_pos_update()
714 struct loopback_pcm *dpcm_play, *dpcm_capt; in loopback_snd_timer_period_elapsed() local
728 dpcm_play = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]; in loopback_snd_timer_period_elapsed()
732 if (!dpcm_play || in loopback_snd_timer_period_elapsed()
733 dpcm_play->substream->runtime->state != in loopback_snd_timer_period_elapsed()
741 dpcm_play->substream : NULL; in loopback_snd_timer_period_elapsed()
745 dpcm_play->substream->runtime : in loopback_snd_timer_period_elapsed()
770 copy_play_buf(dpcm_play, dpcm_capt, elapsed_bytes); in loopback_snd_timer_period_elapsed()
771 bytepos_finish(dpcm_play, elapsed_bytes); in loopback_snd_timer_period_elapsed()
774 bytepos_finish(dpcm_play, elapsed_bytes); in loopback_snd_timer_period_elapsed()