[alsa-devel] snd-soc-cs4270: Convert to a new-style i2c driver (work in progress)
broonie at sirena.org.uk
Thu Sep 4 12:42:24 CEST 2008
On Wed, Sep 03, 2008 at 03:30:33PM -0500, Timur Tabi wrote:
> On Wed, Sep 3, 2008 at 2:47 PM, Timur Tabi <timur at freescale.com> wrote:
> > I'm working on a fix for this, but there's something you need to know.
> > I don't think ASoC V1 modules can be unloaded.
> Correction: ASoC drivers can't be compiled as modules, not even the
> codec drivers. I had to hack up the Kconfigs to get this to work, but
They can be - I do this on a regular basis during development. If it
weren't possible I'd probably get annoyed enough to make it so :)
> there is no way to compile the drivers as modules. If you try, you
> get this:
> CC [M] sound/soc/codecs/cs4270.o
> LD [M] sound/soc/codecs/snd-soc-cs4270.o
> sound/built-in.o: In function `mpc8610_hpcd_probe':
> /temp/alsa.1994/sound/soc/fsl/mpc8610_hpcd.c:455: undefined reference
> to `cs4270_dai'
If you build the codec driver as a module then you also need to build
the machine driver as a module. Your Kconfig ought to be enforcing
that which I guess is the hack you had to put in?
More information about the Alsa-devel