]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
ASoC: DaVinci: pcm, don't play 1st sound period twice
authorTroy Kisky <troy.kisky@boundarydevices.com>
Wed, 8 Jul 2009 00:36:06 +0000 (17:36 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 8 Jul 2009 15:00:20 +0000 (16:00 +0100)
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: Troy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/davinci/davinci-pcm.c

index a059965884896d78b7a0a1c15889c777675db867..8fd0c3cdc710c8d70199686cfbd8bfb13f3e86ab 100644 (file)
@@ -206,6 +206,7 @@ static int davinci_pcm_prepare(struct snd_pcm_substream *substream)
        /* Copy self-linked parameter RAM entry into master channel */
        edma_read_slot(prtd->slave_lch, &temp);
        edma_write_slot(prtd->master_lch, &temp);
+       davinci_pcm_enqueue_dma(substream);
 
        return 0;
 }