From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: Re: [PATCH 19/19] ASoC: fsi: Add DMAEngine support Date: Sat, 04 Feb 2012 19:25:40 +0100 Message-ID: <4F2D7824.1020702@metafoo.de> References: <871uqcjo9i.wl%kuninori.morimoto.gx@renesas.com> <87aa50i971.wl%kuninori.morimoto.gx@renesas.com> <20120203134850.GM3151@opensource.wolfsonmicro.com> <4F2BE998.4020903@metafoo.de> <20120203141440.GR3151@opensource.wolfsonmicro.com> <1328373092.26182.27.camel@vkoul-udesk3> <4F2D6416.2050400@metafoo.de> <1328378819.26182.33.camel@vkoul-udesk3> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mailhost.informatik.uni-hamburg.de (mailhost.informatik.uni-hamburg.de [134.100.9.70]) by alsa0.perex.cz (Postfix) with ESMTP id B4C6D1038E5 for ; Sat, 4 Feb 2012 19:26:11 +0100 (CET) In-Reply-To: <1328378819.26182.33.camel@vkoul-udesk3> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Vinod Koul Cc: Linux-ALSA , Kuninori Morimoto , Sascha Hauer , Mark Brown , Wolfram Sang , Ralf Baechle , H Hartley Sweeten , Kuninori Morimoto , Liam Girdwood List-Id: alsa-devel@alsa-project.org On 02/04/2012 07:06 PM, Vinod Koul wrote: > On Sat, 2012-02-04 at 18:00 +0100, Lars-Peter Clausen wrote: >> This is sort of what I have implemented right now. Although I also prepare and >> submit the dma descriptor in trigger START instead of prepare. Mainly beacuse I >> mapped trigger STOP to dmaengine_terminate_all. Or is issue_pending supposed to >> just restart the transfer if it is circular, even though terminate_all has been >> called? > trigger START should not be used for preparing descriptors. You want to > start to actually start the descriptor (which is issue_pending and NOT > submit!!). You should do this is prepare callback. I'm doing both, prepare+submit and issue_pending, because of what I wrote above. Or can we assume that each call to the ALSA/ASoC prepare callback will only be followed by at maximum one call to trigger START?