Home
last modified time | relevance | path

Searched refs:periods_elapsed (Results 1 – 1 of 1) sorted by relevance

/linux-5.19.10/sound/drivers/pcsp/
Dpcsp_lib.c92 int periods_elapsed; in pcsp_pointer_update() local
105 periods_elapsed = chip->playback_ptr - chip->period_ptr; in pcsp_pointer_update()
106 if (periods_elapsed < 0) { in pcsp_pointer_update()
112 periods_elapsed += buffer_bytes; in pcsp_pointer_update()
114 periods_elapsed /= period_bytes; in pcsp_pointer_update()
119 if (periods_elapsed) { in pcsp_pointer_update()
120 chip->period_ptr += periods_elapsed * period_bytes; in pcsp_pointer_update()