alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* bug in spi and i2c dual buses codecs
@ 2010-03-29  6:24 Barry Song
  2010-03-29  9:49 ` Mark Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Barry Song @ 2010-03-29  6:24 UTC (permalink / raw)
  To: Liam Girdwood, broonie; +Cc: uclinux-dist-devel, alsa-devel

Hi Mark/Liam,
I think there is really a bug in spi and i2c dual buses codecs drivers, for
example, for any codec with two buses, if you config kernel like this:

SPI MASTER built-in
I2C                module
Codec           built-in

You will get a link error like this:
sound/built-in.o: In function `i2c_add_driver':
include/linux/i2c.h:423: undefined reference to `i2c_register_driver'
sound/built-in.o: In function `ad193x_modexit':
sound/soc/codecs/ad193x.c:537: undefined reference to `i2c_del_driver'
make: *** [.tmp_vmlinux1] Error 1

I remember that is also one reason why we have splitted this kind of driver
into three parts(codec core, i2c bus, spi bus).

In fact, if any bus is compiled as module and code is built-in, link error
will be reported.
Thanks
Barry

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-29 18:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-29  6:24 bug in spi and i2c dual buses codecs Barry Song
2010-03-29  9:49 ` Mark Brown
2010-03-29 10:29   ` Barry Song
2010-03-29 18:25   ` [Uclinux-dist-devel] " Mike Frysinger
     [not found]     ` <8bd0f97a1003291125t77aa762eida59cd4a112927ae-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-03-29 18:48       ` [alsa-devel] " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).