From: Troy Kisky Date: Wed, 8 Jul 2009 00:36:06 +0000 (-0700) Subject: ASoC: DaVinci: pcm, don't play 1st sound period twice X-Git-Tag: v2.6.33-rc3~4^2~202^2~80 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=6e5414750af8a521c3ba7805d6ad460ba21df1a1;p=~emulex%2Finfiniband.git 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: Troy Kisky Signed-off-by: Mark Brown --- diff --git a/sound/soc/davinci/davinci-pcm.c b/sound/soc/davinci/davinci-pcm.c index a0599658848..8fd0c3cdc71 100644 --- a/sound/soc/davinci/davinci-pcm.c +++ b/sound/soc/davinci/davinci-pcm.c @@ -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; }