alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Cc: Vinod Koul <vinod.koul@linux.intel.com>,
	alsa-devel@alsa-project.org, lars@metafoo.de,
	Takashi Iwai <tiwai@suse.de>,
	linux-kernel@vger.kernel.org, Liam Girdwood <lrg@ti.com>
Subject: Re: [alsa-devel] [PATCH v5] sound/soc/lapis: add platform driver for ML7213
Date: Wed, 30 May 2012 13:14:49 +0100	[thread overview]
Message-ID: <20120530121449.GI9947@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <CANKRQnhwkhGUHi6WQhw-sRJuKari3SLcipCJXVp27OZ29=Vxkw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2379 bytes --]

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@opensource.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.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2012-05-30 12:14 UTC|newest]

Thread overview: 70+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-23  5:46 [PATCH v6] sound/soc/codecs: add LAPIS Semiconductor ML26124 Tomoya MORINAGA
2012-02-23  5:46 ` [PATCH v3] sound/soc/lapis: add platform driver for ML7213 Tomoya MORINAGA
2012-03-02 16:39   ` Mark Brown
2012-03-06  5:48     ` Tomoya MORINAGA
2012-03-06 11:52       ` Mark Brown
2012-03-07  1:30         ` Tomoya MORINAGA
2012-03-07 11:46           ` Mark Brown
2012-03-08  2:06             ` Tomoya MORINAGA
2012-03-08 11:05               ` Mark Brown
2012-03-09  6:26                 ` Tomoya MORINAGA
2012-03-09  6:39                   ` [PATCH v4] " Tomoya MORINAGA
2012-03-19 12:00                     ` [PATCH v5] " Tomoya MORINAGA
2012-03-21 16:09                       ` Mark Brown
2012-03-22  0:12                         ` Tomoya MORINAGA
2012-03-26 15:40                           ` Mark Brown
2012-05-23  4:17                             ` Tomoya MORINAGA
2012-05-23  9:41                               ` Mark Brown
2012-05-23 23:46                                 ` Tomoya MORINAGA
2012-05-24 10:07                                   ` Mark Brown
2012-05-25  9:30                                     ` Tomoya MORINAGA
2012-05-25 10:20                                       ` Vinod Koul
2012-05-27 22:19                                         ` Mark Brown
2012-05-30 10:50                                           ` Tomoya MORINAGA
2012-05-30 12:14                                             ` Mark Brown [this message]
2012-05-31  5:38                                               ` Tomoya MORINAGA
2012-05-31 10:45                                                 ` Mark Brown
2012-06-01  8:13                                                   ` Tomoya MORINAGA
2012-06-01  8:30                                                     ` Mark Brown
2012-06-11  7:05                                                       ` Tomoya MORINAGA
2012-06-11  8:54                                                         ` Mark Brown
2012-06-13 10:41                                                           ` Tomoya MORINAGA
2012-06-13 12:11                                                             ` Mark Brown
2012-05-28  5:35                                         ` Tomoya MORINAGA
2012-02-23  5:46 ` [PATCH v5] sound/soc/lapis: add machine driver for ML7213 Carrier Board Tomoya MORINAGA
2012-03-02 13:05   ` Mark Brown
2012-03-06  5:49     ` Tomoya MORINAGA
2012-03-06 11:54       ` Mark Brown
2012-03-07  1:57         ` Tomoya MORINAGA
2012-03-09  6:38           ` [PATCH v6] " Tomoya MORINAGA
2012-03-14 14:45             ` Mark Brown
2012-03-15  4:50               ` Tomoya MORINAGA
2012-03-15 10:50                 ` Mark Brown
2012-03-16  4:07                   ` Tomoya MORINAGA
2012-03-16 19:06                     ` Mark Brown
2012-03-18 23:45                       ` Tomoya MORINAGA
2012-03-19 12:02                         ` [PATCH v7] " Tomoya MORINAGA
2012-03-19 19:21                           ` Mark Brown
2012-03-21  0:51                             ` Tomoya MORINAGA
2012-02-29 23:51 ` [PATCH v6] sound/soc/codecs: add LAPIS Semiconductor ML26124 Mark Brown
2012-03-02  8:16   ` Tomoya MORINAGA
2012-03-02 12:58     ` Mark Brown
2012-03-06  3:03       ` Tomoya MORINAGA
2012-03-06 10:00         ` Mark Brown
2012-03-06 10:49           ` Tomoya MORINAGA
2012-03-06 12:12             ` Mark Brown
2012-03-07  2:16               ` Tomoya MORINAGA
2012-03-07 11:48                 ` Mark Brown
2012-03-08  2:24                   ` Tomoya MORINAGA
2012-03-08 11:47                     ` Mark Brown
2012-03-09  6:37                       ` [PATCH v7] " Tomoya MORINAGA
2012-03-14 14:39                         ` Mark Brown
2012-03-15  4:51                           ` Tomoya MORINAGA
2012-03-14 17:40                     ` [alsa-devel] [PATCH v6] " Lars-Peter Clausen
2012-03-14 17:45                       ` Mark Brown
2012-03-15  6:29                       ` Tomoya MORINAGA
2012-03-16  9:55                         ` Tomoya MORINAGA
2012-03-17 21:52                           ` [alsa-devel] " Mark Brown
2012-03-19 11:59                             ` [PATCH v8] " Tomoya MORINAGA
2012-03-19 19:07                               ` Mark Brown
2012-03-21  0:57                                 ` Tomoya MORINAGA

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120530121449.GI9947@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=lars@metafoo.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lrg@ti.com \
    --cc=tiwai@suse.de \
    --cc=tomoya.rohm@gmail.com \
    --cc=vinod.koul@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).