* 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
* Re: bug in spi and i2c dual buses codecs
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
0 siblings, 2 replies; 5+ messages in thread
From: Mark Brown @ 2010-03-29 9:49 UTC (permalink / raw)
To: Barry Song; +Cc: uclinux-dist-devel, alsa-devel, Liam Girdwood
On Mon, Mar 29, 2010 at 02:24:28PM +0800, Barry Song wrote:
> In fact, if any bus is compiled as module and code is built-in, link error
> will be reported.
Yes, this is expected behaviour. It's not been a practical problem -
the combination of audio built in and one of the buses modular is far
from common.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: bug in spi and i2c dual buses codecs
2010-03-29 9:49 ` Mark Brown
@ 2010-03-29 10:29 ` Barry Song
2010-03-29 18:25 ` [Uclinux-dist-devel] " Mike Frysinger
1 sibling, 0 replies; 5+ messages in thread
From: Barry Song @ 2010-03-29 10:29 UTC (permalink / raw)
To: Mark Brown; +Cc: uclinux-dist-devel, alsa-devel, Liam Girdwood
On Mon, Mar 29, 2010 at 5:49 PM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:
>
> On Mon, Mar 29, 2010 at 02:24:28PM +0800, Barry Song wrote:
>
> > In fact, if any bus is compiled as module and code is built-in, link error
> > will be reported.
>
> Yes, this is expected behaviour. It's not been a practical problem -
> the combination of audio built in and one of the buses modular is far
> from common.
Ok. if so, practically, people should either built-in all, or keep
codec driver as module if anyone of i2c and spi is module.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Uclinux-dist-devel] bug in spi and i2c dual buses codecs
2010-03-29 9:49 ` Mark Brown
2010-03-29 10:29 ` Barry Song
@ 2010-03-29 18:25 ` Mike Frysinger
[not found] ` <8bd0f97a1003291125t77aa762eida59cd4a112927ae-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
1 sibling, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2010-03-29 18:25 UTC (permalink / raw)
To: Mark Brown; +Cc: uclinux-dist-devel, alsa-devel, Barry Song, Liam Girdwood
On Mon, Mar 29, 2010 at 05:49, Mark Brown wrote:
> On Mon, Mar 29, 2010 at 02:24:28PM +0800, Barry Song wrote:
>> In fact, if any bus is compiled as module and code is built-in, link error
>> will be reported.
>
> Yes, this is expected behaviour. It's not been a practical problem -
> the combination of audio built in and one of the buses modular is far
> from common.
knowingly breaking randconfig is viewed as a bad thing by people on lkml
-mike
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [alsa-devel] bug in spi and i2c dual buses codecs
[not found] ` <8bd0f97a1003291125t77aa762eida59cd4a112927ae-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-03-29 18:48 ` Mark Brown
0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2010-03-29 18:48 UTC (permalink / raw)
To: Mike Frysinger
Cc: uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b,
alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Liam Girdwood
On Mon, Mar 29, 2010 at 02:25:02PM -0400, Mike Frysinger wrote:
> On Mon, Mar 29, 2010 at 05:49, Mark Brown wrote:
> > Yes, this is expected behaviour. ??It's not been a practical problem -
> > the combination of audio built in and one of the buses modular is far
> > from common.
> knowingly breaking randconfig is viewed as a bad thing by people on lkml
Right, the machine drivers need to take care of this when they select
the CODEC drivers like SND_SOC_ALL_CODECS does (at least with drivers
for the platforms where people care about that, anyway - I'm not going
to insist on it for random machines that hardly ever get built).
This isn't exactly something that's been introduced just recently, we've
been doing this for some considerable time - well over a year.
^ 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).