mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Fixed poll() behaviour for direct plugins, also added snd_pcm_hwsync() call to start callback
This commit is contained in:
parent
bf978c3ff2
commit
c508b496b4
4 changed files with 15 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue