aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pcm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pcm.c b/src/pcm.c
index f22e721..289b426 100644
--- a/src/pcm.c
+++ b/src/pcm.c
@@ -1192,6 +1192,9 @@ int pcm_prepare(struct pcm *pcm)
if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_PREPARE) < 0)
return oops(pcm, errno, "cannot prepare channel");
+ /* get appl_ptr and avail_min from kernel */
+ pcm_sync_ptr(pcm, SNDRV_PCM_SYNC_PTR_APPL|SNDRV_PCM_SYNC_PTR_AVAIL_MIN);
+
return 0;
}