From: Timur Tabi <timur@freescale.com>
To: Jon Smirl <jonsmirl@gmail.com>
Cc: ALSA-devel <alsa-devel@alsa-project.org>,
Mark Brown <broonie@opensource.wolfsonmicro.com>
Subject: Re: Thoughts on ASOC v2 driver architecture
Date: Mon, 16 Jun 2008 11:01:36 -0500 [thread overview]
Message-ID: <48568E60.10206@freescale.com> (raw)
In-Reply-To: <9e4733910806160853o2970f281m239712d8a2619e91@mail.gmail.com>
Jon Smirl wrote:
> The drivers are creating their own platform devices. Constructing them
> in the driver builds in the assumption that if the driver is loaded,
> then the devices are present. But that's not right in my case, I have
> four fabric drivers built in and I only want one of them active.
You have two choices:
1) Load all drivers. In each driver's __init section, let it determine whether
it should load or not. If not, it can fail silently. Off the top of my head, I
don't remember how to do that.
2) Use the Kernel Module Loader to dynamically load the module you want. I
don't know how this works either.
> The devices are being created in the wrong place. So instead of my
> proposal of reading the platform name out of the device tree and
> loading the driver from fsl_ssi, in Timur's case the fabric device
> should be created in arch/powerpc/platforms/86xx/mpc8610_hpcd.c.
> PowerPC is already capable of making the codec device from the device
> tree.
True, but I chose to keep it in sound/soc/fsl so that I wouldn't have to push 3
drivers to alsa-devel and one driver to linuxppc-dev.
--
Timur Tabi
Linux kernel developer at Freescale
next prev parent reply other threads:[~2008-06-16 16:01 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
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 [this message]
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=48568E60.10206@freescale.com \
--to=timur@freescale.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--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.