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>
This commit is contained in:
Miguel Gaio
2018-07-17 10:05:54 +02:00
parent 3e0e282ca8
commit f3a4695ef9
+1 -1
View File
@@ -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)