All of lore.kernel.org
 help / color / mirror / Atom feed
From: Timur Tabi <timur@freescale.com>
To: Jon Smirl <jonsmirl@gmail.com>
Cc: ALSA-devel <alsa-devel@alsa-project.org>
Subject: Re: Thoughts on ASOC v2 driver architecture
Date: Mon, 16 Jun 2008 09:23:39 -0500	[thread overview]
Message-ID: <4856776B.7040300@freescale.com> (raw)
In-Reply-To: <9e4733910806160626h12525bb5ydfb61acd62ef3f09@mail.gmail.com>

Jon Smirl wrote:

> I'd like for the fabric driver to be dynamically loaded by the device tree.

You have a PPC problem, not an ASoC problem.  You're trying to use the 
device tree to load a device without specifying a specific node.  This 
is particularly difficult with device trees because once a driver has 
claimed a node via a probe, that node isn't probed again.  So you can't 
use any I2S, DMA, or codec nodes.

> The root of my problem is that I want to handle my four board variants
> with a single kernel. So when the kernel loads, I need to figure out
> which board specific code to load. In the current ASOC design it is
> assumed that this code is permanently linked in as a platform driver.

Not with ASoC V2.  I load my fabric driver as a regular module.  It also 
doesn't matter what order I load the drivers in.  Once the fourth driver 
is loaded, ASoC does its magic and creates a sound card (or two) for me.

So do what I did: deal with the limitations of ASoC V1 as best you can, 
and port your driver to ASoC V2.

  reply	other threads:[~2008-06-16 14:23 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-15 18:10 Thoughts on ASOC v2 driver architecture Jon Smirl
2008-06-16 10:39 ` Liam Girdwood
2008-06-16 13:26   ` Jon Smirl
2008-06-16 14:23     ` Timur Tabi [this message]
2008-06-16 14:32       ` Jon Smirl
2008-06-16 15:03         ` Mark Brown
2008-06-16 15:36           ` Timur Tabi
2008-06-16 15:45             ` Mark Brown
2008-06-16 15:49               ` Timur Tabi
2008-06-16 17:03                 ` Mark Brown
2008-06-16 17:10                   ` Timur Tabi
2008-06-16 15:53           ` Jon Smirl
2008-06-16 16:01             ` Timur Tabi
2008-06-16 16:23               ` Jon Smirl
2008-06-16 16:24                 ` Timur Tabi
2008-06-17  0:58                   ` Jon Smirl
2008-06-17 14:55                     ` Timur Tabi
2008-06-16 16:11             ` Jon Smirl
2008-06-16 16:58               ` Mark Brown
2008-06-16 17:00                 ` Timur Tabi
2008-06-16 16:24             ` Mark Brown
2008-06-16 15:34         ` Timur Tabi
2008-06-16 13:47   ` Jon Smirl

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=4856776B.7040300@freescale.com \
    --to=timur@freescale.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=jonsmirl@gmail.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.