Fixed poll() behaviour for direct plugins, also added snd_pcm_hwsync() call to start callback

This commit is contained in:
Jaroslav Kysela 2004-01-21 19:21:11 +00:00
parent bf978c3ff2
commit c508b496b4
4 changed files with 15 additions and 5 deletions

View file

@ -292,6 +292,7 @@ static int snd_pcm_dshare_start(snd_pcm_t *pcm)
if (err < 0)
return err;
dshare->state = SND_PCM_STATE_RUNNING;
snd_pcm_hwsync(dshare->spcm);
dshare->slave_appl_ptr = dshare->slave_hw_ptr = *dshare->spcm->hw.ptr;
avail = snd_pcm_mmap_playback_hw_avail(pcm);
if (avail < 0)