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

@ -274,6 +274,7 @@ static int snd_pcm_dsnoop_start(snd_pcm_t *pcm)
if (err < 0)
return err;
dsnoop->state = SND_PCM_STATE_RUNNING;
snd_pcm_hwsync(dsnoop->spcm);
dsnoop->slave_appl_ptr = dsnoop->slave_hw_ptr = *dsnoop->spcm->hw.ptr;
gettimeofday(&tv, 0);
dsnoop->trigger_tstamp.tv_sec = tv.tv_sec;