From: Barry Song <21cnbao@gmail.com>
To: Liam Girdwood <lrg@slimlogic.co.uk>, broonie@opensource.wolfsonmicro.com
Cc: uclinux-dist-devel@blackfin.uclinux.org, alsa-devel@alsa-project.org
Subject: bug in spi and i2c dual buses codecs
Date: Mon, 29 Mar 2010 14:24:28 +0800 [thread overview]
Message-ID: <3c17e3571003282324t2b0cf67aj93dc3c4d1e6c8ae5@mail.gmail.com> (raw)
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
next reply other threads:[~2010-03-29 6:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-29 6:24 Barry Song [this message]
2010-03-29 9:49 ` bug in spi and i2c dual buses codecs 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
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=3c17e3571003282324t2b0cf67aj93dc3c4d1e6c8ae5@mail.gmail.com \
--to=21cnbao@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lrg@slimlogic.co.uk \
--cc=uclinux-dist-devel@blackfin.uclinux.org \
/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 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).