Fix poll of dsnoop plugin

Fixed the poll behavior of dsnoop plugin after commit.
This commit is contained in:
Takashi Iwai 2005-05-23 08:58:04 +00:00
parent a3ae02d884
commit 67420b8882

View file

@ -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;
} }