From c9f97daf129f4466351c82c85d377d96a1ab9a6f Mon Sep 17 00:00:00 2001 From: Miguel Gaio Date: Tue, 17 Jul 2018 10:05:54 +0200 Subject: 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 --- src/pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pcm.c') 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) -- cgit v1.2.3