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

/linux-4.1.27/sound/drivers/pcsp/
H A Dpcsp_lib.c91 int periods_elapsed; pcsp_pointer_update() local
104 periods_elapsed = chip->playback_ptr - chip->period_ptr; pcsp_pointer_update()
105 if (periods_elapsed < 0) { pcsp_pointer_update()
111 periods_elapsed += buffer_bytes; pcsp_pointer_update()
113 periods_elapsed /= period_bytes; pcsp_pointer_update()
118 if (periods_elapsed) { pcsp_pointer_update()
119 chip->period_ptr += periods_elapsed * period_bytes; pcsp_pointer_update()
124 if (periods_elapsed) pcsp_pointer_update()

Completed in 49 milliseconds