From: "Nobin Mathew" Subject: Re: WRITING AN SOC DRIVER WITHOUT DMA Date: Thu, 17 Jul 2008 16:56:52 +0530 Message-ID: <8d6898730807170426wac4719cv7cd925cfcd91aa68@mail.gmail.com> References: <20080712083929.15025.47682.stgit@trillian.secretlab.ca> <20080712083939.15025.31192.stgit@trillian.secretlab.ca> <1216199130.749.4.camel@dinesh.dua> <8d6898730807160307g4455597ck921d55da8f51455d@mail.gmail.com> <1216203206.9723.0.camel@dinesh.dua> <1216274611.18207.6.camel@dinesh.dua> <20080717105614.GC15333@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.181]) by alsa0.perex.cz (Postfix) with ESMTP id 8AE2F103814 for ; Thu, 17 Jul 2008 13:26:54 +0200 (CEST) Received: by el-out-1112.google.com with SMTP id o28so1577708ele.2 for ; Thu, 17 Jul 2008 04:26:53 -0700 (PDT) In-Reply-To: <20080717105614.GC15333@sirena.org.uk> Content-Disposition: inline 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: dinesh , Nobin Mathew , Grant Likely , linuxppc-dev@ozlabs.org, alsa-devel@alsa-project.org, liam.gird List-Id: alsa-devel@alsa-project.org Hi Dinesh, If that is your requirement then go and see the actual code sound/arm/aaci.c. They are not using DMA. It is programmed IO. Thanks Nobin Mathew On 7/17/08, Mark Brown wrote: > > On Thu, Jul 17, 2008 at 11:33:31AM +0530, dinesh wrote: > > > What i want is that i have a buffer in driver code which is also handled > > by some other application i want that this buffer data is to be used for > > capture and playback stream fills data to another buffer which i can > > passover to my other application. > > Depending on what exactly you're doing here you may find that this is > best implemented in user space with an ALSA plugin rather than doing it > as part of a driver. If you do want to do this in kernel space then the > parts of an ASoC driver which transfer audio data are just the same as > those for any other ALSA driver so things like sound/arm/aaci.c may > provide useful examples. >