pcm direct plugins: change timestamping in dsnoop

Do not use own timestamps, try to sync hw.ptr with real timestamp.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2010-10-29 17:36:41 +02:00
parent 5cfa03d2f3
commit 13b5d972d2
4 changed files with 28 additions and 8 deletions

View file

@ -852,7 +852,7 @@ static int snd_pcm_dmix_htimestamp(snd_pcm_t *pcm,
if (ok && *avail == avail1)
break;
*avail = avail1;
*tstamp = snd_pcm_hw_fast_tstamp(pcm);
*tstamp = snd_pcm_hw_fast_tstamp(dmix->spcm);
}
return 0;
}