[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120530121449.GI9947@opensource.wolfsonmicro.com>
Date: Wed, 30 May 2012 13:14:49 +0100
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Tomoya MORINAGA <tomoya.rohm@...il.com>
Cc: Vinod Koul <vinod.koul@...ux.intel.com>,
alsa-devel@...a-project.org, lars@...afoo.de,
Takashi Iwai <tiwai@...e.de>, linux-kernel@...r.kernel.org,
Liam Girdwood <lrg@...com>
Subject: Re: [alsa-devel] [PATCH v5] sound/soc/lapis: add platform driver for
ML7213
On Wed, May 30, 2012 at 07:50:28PM +0900, Tomoya MORINAGA wrote:
> On Mon, May 28, 2012 at 7:19 AM, Mark Brown
> <broonie@...nsource.wolfsonmicro.com> wrote:
> > Nobody has written the code, this is the problem! If the code is not
> > there, you should try to write it. If there is some great problem
> > writing the code then you should t
> The latter of the above seems dropped...
...tell us.
> >> First you should not be writing your own dma driver, it *needs* to use
> >> dmaenegine. We already have bunch of driver supported, so there may be a
> > He's already done that, their current code is all open coded dmaengine
> > stuff.
> I don't understand why you say so ?
> I don't use any own dma driver, right ? I use only dmaengine's.
> If there is own, let me show.
Please re-read what I wrote.
> > The existing code is far from nothing, there is a fairly substantial
> > dmaengine library there already which should share a big chunk of code
> > with any cyclic support. If you were saying "this is too hard for
> > $REASON" that'd be one thing but that's not what you're saying here.
> If our ASoC supports cyclic dma mode, we must modify both pch_dma
> driver and our ASoC driver.
No, all current mainline drivers using the library use cyclic DMA.
> I don't want to do this.
> Because I can't understand the merit. In plain words, to me, this
> looks insignificant things.
The purpose of this change is to factor code out of individual drivers
into generic code rather than having lots of people writing exactly the
same code. Code duplication at this level is pointless and makes more
work for everyone who will have to maintain the code going forward.
Having looked at Russell's out of tree code I'm even more convinced that
the amount of new code needed for non-cyclic DMA should be pretty
trivial.
> > It's possible that there is actually some substantial difficult but
> > my first instinct would be that it should be relatively straightforward.
> Let me clarify your saying again.
> Which do you want ?
> 1) pch_dma must support cyclic dma mode and our ASoC driver must use
> the cyclic dma function.
> 2) Non-cyclic dma engine should be added to alsa-dmaengine by myself.
Either of these options are fine.
> 3) Other
This would be someone else doing one of the above things.
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists