aboutsummaryrefslogtreecommitdiff
path: root/src/pcm.c
diff options
context:
space:
mode:
authorMiguel Gaio <mgaio35@gmail.com>2018-07-17 10:05:54 +0200
committerMiguel Gaio <mgaio35@gmail.com>2018-07-17 13:37:41 +0200
commitc9f97daf129f4466351c82c85d377d96a1ab9a6f (patch)
treef70dfaef8ed06461bc870a39acac33455548abc7 /src/pcm.c
parent67b9210d344c34e8d1aa0cfe638abce71c5221ca (diff)
Corrected pcm_sync_ptr() on dma mmap coherent architecture
It is valid to get null sync_ptr on dma mmap coherent architecture. In this case pcm_sync_ptr() is a nop. Signed-off-by: Miguel Gaio <mgaio35@gmail.com>
Diffstat (limited to 'src/pcm.c')
-rw-r--r--src/pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm.c b/src/pcm.c
index f665cb4..7ea58bd 100644
--- a/src/pcm.c
+++ b/src/pcm.c
@@ -511,7 +511,7 @@ static int pcm_sync_ptr(struct pcm *pcm, int flags)
}
return 0;
}
- return -1;
+ return 0;
}
static int pcm_hw_mmap_status(struct pcm *pcm)