ASoC: rockchip: pdm: change dma burst to 8
authorSugar Zhang <sugar.zhang@rock-chips.com>
Thu, 4 Apr 2019 03:48:11 +0000 (11:48 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 4 Apr 2019 07:59:54 +0000 (14:59 +0700)
This patch decreases the transfer bursts to avoid the fifo overrun.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_pdm.c

index 8a2e3bbce3a165515f8def7c83e25e4b905b1e2d..d0b403a0e27b830bc480935fa75df123c3375302 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "rockchip_pdm.h"
 
-#define PDM_DMA_BURST_SIZE     (16) /* size * width: 16*4 = 64 bytes */
+#define PDM_DMA_BURST_SIZE     (8) /* size * width: 8*4 = 32 bytes */
 
 struct rk_pdm_dev {
        struct device *dev;