Commit 6e541475 authored by Troy Kisky's avatar Troy Kisky Committed by Mark Brown

ASoC: DaVinci: pcm, don't play 1st sound period twice

Update the dma link with correct data as soon as
the master channel has copied it. Otherwise, the
1st period will play twice.
Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 3f405b46
...@@ -206,6 +206,7 @@ static int davinci_pcm_prepare(struct snd_pcm_substream *substream) ...@@ -206,6 +206,7 @@ static int davinci_pcm_prepare(struct snd_pcm_substream *substream)
/* Copy self-linked parameter RAM entry into master channel */ /* Copy self-linked parameter RAM entry into master channel */
edma_read_slot(prtd->slave_lch, &temp); edma_read_slot(prtd->slave_lch, &temp);
edma_write_slot(prtd->master_lch, &temp); edma_write_slot(prtd->master_lch, &temp);
davinci_pcm_enqueue_dma(substream);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment