diff options
author | Ricardo Biehl Pasquali <pasqualirb@gmail.com> | 2018-12-22 12:51:21 -0200 |
---|---|---|
committer | Ricardo Biehl Pasquali <pasqualirb@gmail.com> | 2019-01-08 13:06:19 -0200 |
commit | b00f90ab08db5f458aae1bc0f66690b9f0e10be4 (patch) | |
tree | 67cce0898514a47d1ef9a30ba3309b3e233cad88 /src | |
parent | c1446758c76a8319382aad3b56df09c45d51bba4 (diff) |
pcm: Get values from kernel in avail_update
Instead of sending appl_ptr and avail_min to the kernel,
get them. This is the behavior of alsa-lib.
Signed-off-by: Ricardo Biehl Pasquali <pasqualirb@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1325,7 +1325,7 @@ int pcm_mmap_commit(struct pcm *pcm, unsigned int offset, unsigned int frames) int pcm_avail_update(struct pcm *pcm) { - pcm_sync_ptr(pcm, 0); + pcm_sync_ptr(pcm, SNDRV_PCM_SYNC_PTR_APPL|SNDRV_PCM_SYNC_PTR_AVAIL_MIN); return pcm_mmap_avail(pcm); } |