All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Manuel Lauss <manuel.lauss@googlemail.com>
Cc: Manuel Lauss <manuel.lauss@gmail.com>, alsa-devel@alsa-project.org
Subject: Re: [PATCH 4/7] Alchemy: DB1200 AC97+I2S audio	support.
Date: Mon, 8 Jun 2009 16:24:20 +0100	[thread overview]
Message-ID: <20090608152420.GC6413@rakim.wolfsonmicro.main> (raw)
In-Reply-To: <f861ec6f0906080748x4b9fd196m27c1ef3a8af9542d@mail.gmail.com>

On Mon, Jun 08, 2009 at 04:48:23PM +0200, Manuel Lauss wrote:

> What annoys me most is the need to actually have the machine code file
> in the first place.  Or more precisely, the location of it.  It should
> be located
> where the rest of the board code lives.

Like I say, review and API changes are the main factors here at the
minute.  You will also always get some machines that are substantial
enough to warrant "real" drivers too due to having controls plus complex
and configurable clocking and routing (few of these make it mainline
ATM).

> The other thing is the "soc_audio" platform device itself.  Instead of reg-
> istering a platform device for soc audio, how about a function call to
> setup an asoc device.   Multiple calls create multiple alsa devices,
> the argument describes the audio fabric.

This is waiting for the multiple card support - if you take a look at
how the soc-audio device is implemented at the minute you'll see it
calls a function snd_soc_register_card() that's currently not exported.
Once multi-card support is there the interface to it will be changed a
bit and it will be exposed directly to machine drivers and the soc-audio
device will go away, though I'll leave it there for a while in order to
provide a transition period for machine drivers.

At the minute you can probably create multiple soc-audio devices and
it's likely to work in some configurations but not supported.

> > Please submit anyway but at some point someone is going to have to
> > convert the driver - I'm intending to leave as long a transition period
> > as I can but at some point it's going to block other enhancements.

> I attached an untested patch (an addon to the patch which started this thread)
> which does this.  Please have a look and tell me if this is what
> suggested initially?

Pretty much, though I suspect there's some confusion between the probe
functions going on there (there's far too many of them in ASoC at the
minute - I intend to streamline things a bit in the future but first I
want to get the new models implemented).

I'd expect it's possible to have standard platform devices declared in
the CPU definitions for each PSC that the individual boards can just
reference (rather than having to copy out the resources, which
presumably are fixed for each CPU) but I'm not sure if that's idiomatic
for MIPS code or not.  Most of ARM works that way.

I'd be tempted to not bother creating the separate device for the DMA
driver in au1xpsc_pcm_add() but that's just my personal preference.

Also, you've missed a name for your audio_dev.

  reply	other threads:[~2009-06-08 15:24 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-07 18:38 [PATCH 0/7] Alchemy: core and platform updates v2 Manuel Lauss
2009-06-07 18:38 ` [PATCH 1/7] Alchemy: prioritize timer and usb irqs Manuel Lauss
2009-06-07 18:38   ` [PATCH 2/7] Alchemy: get rid of allow_au1k_wait Manuel Lauss
2009-06-07 18:39     ` [PATCH 3/7] Alchemy: extended DB1200 board support Manuel Lauss
2009-06-07 18:39       ` [PATCH 4/7] Alchemy: DB1200 AC97+I2S audio support Manuel Lauss
2009-06-07 18:39         ` [PATCH 5/7] Alchemy: new PCMCIA socket driver for devboards Manuel Lauss
2009-06-07 18:39           ` [PATCH 6/7] Alchemy: convert to physmap flash Manuel Lauss
2009-06-07 18:39             ` [PATCH 7/7] Alchemy: db1200 defconfig update Manuel Lauss
2009-06-08  9:25         ` [PATCH 4/7] Alchemy: DB1200 AC97+I2S audio support Mark Brown
2009-06-08  9:25           ` [alsa-devel] " Mark Brown
2009-06-08  9:43           ` Manuel Lauss
2009-06-08 10:20             ` Mark Brown
2009-06-08 10:20               ` [alsa-devel] " Mark Brown
2009-06-08 11:25               ` Manuel Lauss
2009-06-08 11:53                 ` Mark Brown
2009-06-08 11:53                   ` [alsa-devel] " Mark Brown
2009-06-08 12:21                   ` Manuel Lauss
2009-06-08 12:44                     ` Mark Brown
2009-06-08 12:44                       ` [alsa-devel] " Mark Brown
2009-06-08 13:11                       ` Manuel Lauss
2009-06-08 13:45                         ` Mark Brown
2009-06-08 13:45                           ` [alsa-devel] " Mark Brown
2009-06-08 14:48                           ` Manuel Lauss
2009-06-08 15:24                             ` Mark Brown [this message]
2009-06-08 15:42                               ` Manuel Lauss

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=20090608152420.GC6413@rakim.wolfsonmicro.main \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=manuel.lauss@gmail.com \
    --cc=manuel.lauss@googlemail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.