mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04: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
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue