[#5984] Build kernel failed with ad1938 in latest trunk
Submitted By: Vivi Li
2010-03-22 06:46:11 Close Date
Closed Fixed In Release:
Found In Release:
Make Errors Board:
ALL Silicon Revision:
Is this bug repeatable?:
Uboot version or rev.:
Toolchain version or rev.:
App binary format:
Summary: Build kernel failed with ad1938 in latest trunk
Build kernel failed with ad1938 in latest trunk.
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:553: undefined reference to `i2c_del_driver'
make: *** [.tmp_vmlinux1] Error 1
Last passed version:
kernel: Linux release 220.127.116.11-ADI-2010R1-pre-svn8506, build #32 Fri Mar 19 09:30:44 CST 2010
toolchain: bfin-linux-uclibc-gcc release gcc version 4.3.4 (ADI-trunk/svn-3815)
user-dist: release svn-9515, build #634 Fri Mar 19 09:30:11 CST 2010
First failed version:
kernel: Linux release 18.104.22.168-ADI-2010R1-pre-svn8523, build #36 Sat Mar 20 10:26:43 CST 2010
user-dist: release svn-9521, build #721 Sat Mar 20 10:26:10 CST 2010
--- Barry Song 2010-03-29 02:12:09
This error comes from the upstream framework bug. In your config, ad193x is
built-in, SPI is built-in but i2c is compiled as a module, then you get the link
error. I will send a mail to Mark Brown to discuss this. I remember we split spi
and i2c drivers to solve this problem, but ASoC require us to place them
default m if I2C=m
default y if I2C=y
default y if SPI_MASTER=y
is not strong to handle this.
--- Barry Song 2010-03-29 06:27:35
Check email loop: "bug in spi and i2c dual buses codecs"
Mark Brown think it is expected behavior. It's not been a practical problem -
the combination of audio built in and one of the buses modular is far
So looks like we can't configure kernel by this way.
We can either built-in all, or compile codec driver as module.
--- Vivi Li 2010-04-12 03:49:39
Modify build script to select I2C.
So close this bug.
File Name File Type File Size Posted By
config.audio_ad1938 application/octet-stream 36736 Vivi Li