]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: Wrap hw_ptr to boundary in pcm_ioplug
authorMONTANARO Luciano (MM) <luciano.montanaro@magnetimarelli.com>
Tue, 4 Mar 2014 11:51:36 +0000 (12:51 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 4 Mar 2014 12:02:29 +0000 (13:02 +0100)
commit688004a6acf7d1d568a660546816a092b6cc32ed
treef3dc4b03f34ed27d867a5d956c55c647d9bae75d
parent48f1b308cc66152eb6db66742dd0d08d888cda8d
pcm: Wrap hw_ptr to boundary in pcm_ioplug

The function snd_pcm_ioplug_hw_ptr_update() always increased the hw_ptr
by delta, without wrapping it to the boundary. This would lead to
problems when after many hours, the hw_ptr would overflow.

Signed-off-by: Luciano Montanaro <luciano.montanaro@magnetimarelli.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_ioplug.c