[lkml]   [2012]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [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
> <> 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

> > 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.
[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2012-05-30 14:41    [W:0.318 / U:2.060 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site