From: 宋秀杰 Date: Wed, 15 Feb 2012 03:27:29 +0000 (+0800) Subject: solve audio dma transfer error, at pcm prepare set burst to 1 X-Git-Tag: firefly_0821_release~9621 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=94b3ce1487776faaa86efaee617b444d5c424d42;p=firefly-linux-kernel-4.4.55.git solve audio dma transfer error, at pcm prepare set burst to 1 --- diff --git a/sound/soc/rk29/rk29_pcm.c b/sound/soc/rk29/rk29_pcm.c index a2cb3e96a8dc..7925ca4532d4 100755 --- a/sound/soc/rk29/rk29_pcm.c +++ b/sound/soc/rk29/rk29_pcm.c @@ -278,7 +278,8 @@ static int rockchip_pcm_prepare(struct snd_pcm_substream *substream) } DBG("Enter::%s, %d, ret=%d, Channel=%d, Addr=0x%X\n", __FUNCTION__, __LINE__, ret, prtd->params->channel, prtd->params->dma_addr); ret = rk29_dma_config(prtd->params->channel, - prtd->params->dma_size, 16); + prtd->params->dma_size, 1); + prtd->params->flag = 1; DBG("Enter:%s, %d, ret = %d, Channel=%d, Size=%d\n", __FUNCTION__, __LINE__, ret, prtd->params->channel,