From patchwork Thu Sep 13 13:37:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 1452391 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (unknown [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 0780E3FE79 for ; Thu, 13 Sep 2012 13:49:41 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TC9cD-0002ap-5F; Thu, 13 Sep 2012 13:37:57 +0000 Received: from na3sys009aog104.obsmtp.com ([74.125.149.73]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1TC9bx-0002Yd-Jk for linux-arm-kernel@lists.infradead.org; Thu, 13 Sep 2012 13:37:42 +0000 Received: from mail-ob0-f177.google.com ([209.85.214.177]) (using TLSv1) by na3sys009aob104.postini.com ([74.125.148.12]) with SMTP ID DSNKUFHhpKlgRIehp+bB6s3Fd8wHAeZ1g2fB@postini.com; Thu, 13 Sep 2012 06:37:41 PDT Received: by obbta17 with SMTP id ta17so4671519obb.36 for ; Thu, 13 Sep 2012 06:37:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=ClQASDA/G46mlWGwliM8TrpT9WDK8pDOxTcYQ55IgwQ=; b=dsmcIYD9Y8sX+/vMAdruhPFRN6pCd9Prf05wShrwX9sYSoYx1A2hvp6OLr+1XiWWgW MWpzVqkIxwdEJRivIvYzoo18Jn6ZPtIdy29iOz7EcmpN4E1vmL8BuNx1UpK5t/wit1o0 W6Y6v54ZYVBCztp6eDhh4k/eTJzKVZgHcuDS33IaqGMo+5GpOAOm0KClqY+O5IfI54QI PYTkOOyN/wwQITQOeecPhXGJh5PTM7GEc32JZBATH7weWR6pILH5TsRhfEaMxNpGR8qU PFWF+POi8T8YJVuxxcHYhDyC6rDfxxMVpCKspsN3PqMuwabIneTb0EDdpbHkyQqUFV0r HeTg== Received: by 10.60.0.169 with SMTP id 9mr2255656oef.94.1347543459720; Thu, 13 Sep 2012 06:37:39 -0700 (PDT) Received: from barack.emea.dhcp.ti.com (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id n8sm19403567oec.5.2012.09.13.06.37.36 (version=SSLv3 cipher=OTHER); Thu, 13 Sep 2012 06:37:39 -0700 (PDT) From: Peter Ujfalusi To: Mark Brown , Liam Girdwood , Tony Lindgren , Russell King , Vinod Koul , Dan Williams , Jarkko Nikula Subject: [PATCH v2 01/15] dmaengine: omap: Support for element mode in cyclic DMA Date: Thu, 13 Sep 2012 16:37:51 +0300 Message-Id: <1347543485-339-2-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.7.12 In-Reply-To: <1347543485-339-1-git-send-email-peter.ujfalusi@ti.com> References: <1347543485-339-1-git-send-email-peter.ujfalusi@ti.com> X-Gm-Message-State: ALoCoQk1TfXNhvSFrXUTbzqpXdvFW+di4Ixp4smsxn/gqGIx6XLay/uiouvwe5D1ehJwHMlJFRdh X-Spam-Note: CRM114 invocation failed X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [74.125.149.73 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: alsa-devel@alsa-project.org, Lars-Peter Clausen , Janusz Krzysztofik , Ricardo Neri , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org When src_maxburst/dst_maxburst is set to 0 by the users of cyclic DMA (mostly audio) indicates that we should configure the omap DMA to element sync mode instead of packet mode. Signed-off-by: Peter Ujfalusi CC: Russell King --- drivers/dma/omap-dma.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c index ae05618..b77a40d 100644 --- a/drivers/dma/omap-dma.c +++ b/drivers/dma/omap-dma.c @@ -413,7 +413,10 @@ static struct dma_async_tx_descriptor *omap_dma_prep_dma_cyclic( d->dev_addr = dev_addr; d->fi = burst; d->es = es; - d->sync_mode = OMAP_DMA_SYNC_PACKET; + if (burst) + d->sync_mode = OMAP_DMA_SYNC_PACKET; + else + d->sync_mode = OMAP_DMA_SYNC_ELEMENT; d->sync_type = sync_type; d->periph_port = OMAP_DMA_PORT_MPUI; d->sg[0].addr = buf_addr;