Searched refs:periods_elapsed (Results 1 – 1 of 1) sorted by relevance
93 int periods_elapsed; in pcsp_pointer_update() local106 periods_elapsed = chip->playback_ptr - chip->period_ptr; in pcsp_pointer_update()107 if (periods_elapsed < 0) { in pcsp_pointer_update()113 periods_elapsed += buffer_bytes; in pcsp_pointer_update()115 periods_elapsed /= period_bytes; in pcsp_pointer_update()120 if (periods_elapsed) { in pcsp_pointer_update()121 chip->period_ptr += periods_elapsed * period_bytes; in pcsp_pointer_update()