Skip to content
Commit f240406b authored by Jaroslav Kysela's avatar Jaroslav Kysela
Browse files

ALSA: pcm_lib - cleanup & merge hw_ptr update functions



Do general cleanup in snd_pcm_update_hw_ptr*() routines and merge them.
The main change is hw_ptr_interrupt variable removal to simplify code
logic. This variable can be computed directly from hw_ptr.

Ensure that updated hw_ptr is not lower than previous one (it was possible
with old code in some obscure situations when interrupt was delayed or
the lowlevel driver returns wrong ring buffer position value).

Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 4d96eb25
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment