mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Fix poll of dsnoop plugin
Fixed the poll behavior of dsnoop plugin after commit.
This commit is contained in:
parent
a3ae02d884
commit
67420b8882
1 changed files with 3 additions and 0 deletions
|
|
@ -396,6 +396,9 @@ static snd_pcm_sframes_t snd_pcm_dsnoop_mmap_commit(snd_pcm_t *pcm,
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
snd_pcm_mmap_appl_forward(pcm, size);
|
snd_pcm_mmap_appl_forward(pcm, size);
|
||||||
|
/* clear timer queue to avoid a bogus return from poll */
|
||||||
|
if (snd_pcm_mmap_capture_avail(pcm) < pcm->avail_min)
|
||||||
|
snd_pcm_direct_clear_timer_queue(dsnoop);
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue