From patchwork Wed Jul 8 00:36:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 34530 Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n680anH9018116 for ; Wed, 8 Jul 2009 00:36:50 GMT Received: from dlep34.itg.ti.com ([157.170.170.115]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id n680aioU012065 for ; Tue, 7 Jul 2009 19:36:49 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id n680ah8S003655 for ; Tue, 7 Jul 2009 19:36:43 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id DEBC980645 for ; Tue, 7 Jul 2009 19:36:33 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp52.itg.ti.com (dflp52.itg.ti.com [128.247.22.96]) by linux.omap.com (Postfix) with ESMTP id 3A9B380626 for ; Tue, 7 Jul 2009 19:36:15 -0500 (CDT) Received: from white.ext.ti.com (localhost [127.0.0.1]) by dflp52.itg.ti.com (8.13.7/8.13.7) with ESMTP id n680aEHY003772 for ; Tue, 7 Jul 2009 19:36:14 -0500 (CDT) Received: from mail141-wa4-R.bigfish.com (mail-wa4.bigfish.com [216.32.181.113]) by white.ext.ti.com (8.13.7/8.13.7) with ESMTP id n680a9dG000925 for ; Tue, 7 Jul 2009 19:36:14 -0500 Received: from mail141-wa4 (localhost.localdomain [127.0.0.1]) by mail141-wa4-R.bigfish.com (Postfix) with ESMTP id 5EA134F0061 for ; Wed, 8 Jul 2009 00:36:09 +0000 (UTC) X-SpamScore: 0 X-BigFish: vps0(zzzz1202hzzz2dh62h) X-Spam-TCS-SCL: 1:0 X-MS-Exchange-Organization-Antispam-Report: OrigIP: 63.231.195.114; Service: EHS Received: by mail141-wa4 (MessageSwitch) id 1247013367929896_19535; Wed, 8 Jul 2009 00:36:07 +0000 (UCT) Received: from mpls-qmqp-03.inet.qwest.net (mpls-qmqp-03.inet.qwest.net [63.231.195.114]) by mail141-wa4.bigfish.com (Postfix) with ESMTP id D3034E40051 for ; Wed, 8 Jul 2009 00:36:07 +0000 (UTC) Received: from localhost (unknown [67.42.45.38]) by mpls-qmqp-03.inet.qwest.net (Postfix) with ESMTP id 3F572621EF1; Wed, 8 Jul 2009 00:36:04 +0000 (UTC) Received: by localhost (Postfix, from userid 1002) id 73362588236; Tue, 7 Jul 2009 17:36:06 -0700 (MST) From: Troy Kisky To: alsa-devel@alsa-project.org Date: Tue, 7 Jul 2009 17:36:06 -0700 Message-Id: <1247013366-32737-1-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 1.5.6.3 Cc: davinci-linux-open-source@linux.davincidsp.com, broonie@sirena.org.uk Subject: [PATCH] ASoC: DaVinci: pcm, don't play 1st sound period twice X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.4 Precedence: list List-Id: davinci-linux-open-source.linux.davincidsp.com List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces+patchwork-davinci=patchwork.kernel.org@linux.davincidsp.com 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 --- sound/soc/davinci/davinci-pcm.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/sound/soc/davinci/davinci-pcm.c b/sound/soc/davinci/davinci-pcm.c index a059965..8fd0c3c 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; }