16 Mar
2018
16 Mar
'18
3:41 p.m.
On Fri, 16 Mar 2018 15:23:32 +0100, twischer@de.adit-jv.com wrote:
From: Timo Wischer twischer@de.adit-jv.com
Only increasing the hw_ptr is not sufficient because it will not be evaluated by the ALSA library to detect an Xrun.
In addition there is a raise where an Xrun detected by the JACK thread could not be detected in the ALSA thread.
- In playback use case
- The hw_ptr will be increased by the JACK thread (hw_ptr > appl_ptr => Xrun)
- But the ALSA thread increases the appl_ptr before evaluating the
hw_ptr
- Therefore the hw_ptr < appl_ptr again
- ALSA will not detect the Xrun which was already detected by the
JACK thread
Therefore an additional variable is required to report an Xrun from the JACK thread to ALSA.
Signed-off-by: Timo Wischer twischer@de.adit-jv.com
Thanks, I applied it now.
But, at the next time you send a patchset, please don't continue from the old thread. It's pretty confusing.
Takashi