[alsa-devel] WL1273 FM Radio driver...
Mark Brown
broonie at opensource.wolfsonmicro.com
Mon Feb 7 17:01:21 CET 2011
On Mon, Feb 07, 2011 at 01:57:10PM -0200, Mauro Carvalho Chehab wrote:
> Em 07-02-2011 12:09, Matti J. Aaltonen escreveu:
> > Both children depend on the MFD driver for I/O and the codec also
> > depends on the presence of the radio-wl1273 driver because without the
> > v4l2 part nothing can be done...
> I think that the better would be to move the audio part (sound/soc/codecs/wl1273.c)
> as drivers/media/radio/wl1273/wl1273-alsa.c. Is there any problem on moving it, or
> the alsa driver is also tightly coupled on the rest of the sound/soc stuff?
As I said in my previous e-mail it's tightly coupled.
> I remember that, in the past, there were someone that proposed to move /sound into
> /media/sound, and move some common stuff between them into /media/common.
This is the first embedded audio driver that's had interface with media
stuff, the driver situation for embedded audio is very different to that
for PCs. Embedded audio subsystems are tightly coupled integrations of
many different devices, the sound card userspace sees is produced by
coordinating the actions of several different drivers.
> Btw, there are(where?) some problems between -alsa and -media subsystems: basically,
> the audio core needs to be initialized before the drivers. However, this sometimes
> don't happen (I can't remember the exact situation - perhaps builtin compilations?),
> but we ended by needing to explicitly delaying the init of some drivers with:
> late_initcall(saa7134_alsa_init);
> To avoid some OOPS conditions.
This isn't a problem for embedded audio, instantiation of the cards is
deferred until all the components for the card have registered with the
core so nothing will happen until dependencies are satisfied, though it
is a problem with the wl1273 driver as it currently stands due to the
lack of a functional MFD.
More information about the Alsa-devel
mailing list