mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: read hw synced ring buffer position when caller is not the same pcm
When the caller is a different pcm it is not shure that the IRQs are synchronised. So read the real ring buffer position.
This commit is contained in:
parent
056d826c59
commit
9c31cf1271
1 changed files with 1 additions and 1 deletions
|
|
@ -2583,7 +2583,7 @@ recover:
|
||||||
static inline snd_pcm_sframes_t alsa_avail(struct state *state)
|
static inline snd_pcm_sframes_t alsa_avail(struct state *state)
|
||||||
{
|
{
|
||||||
snd_pcm_sframes_t avail;
|
snd_pcm_sframes_t avail;
|
||||||
if (state->disable_tsched && !state->resample)
|
if (!state->matching && state->disable_tsched && !state->resample)
|
||||||
avail = snd_pcm_avail_update(state->hndl);
|
avail = snd_pcm_avail_update(state->hndl);
|
||||||
else
|
else
|
||||||
avail = snd_pcm_avail(state->hndl);
|
avail = snd_pcm_avail(state->hndl);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue