[#5984] Build kernel failed with ad1938 in latest trunk
Submitted By: Vivi Li
Open Date
2010-03-22 06:46:11 Close Date
2010-04-12 03:51:15
Priority:
Medium Assignee:
Barry Song
Status:
Closed Fixed In Release:
N/A
Found In Release:
2010R1 Release:
Category:
Make Errors Board:
N/A
Processor:
ALL Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
gcc4.3-2010_Jan_22
App binary format:
N/A
Summary: Build kernel failed with ad1938 in latest trunk
Details:
Build kernel failed with ad1938 in latest trunk.
--
LD .tmp_vmlinux1
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[1]: *** [.tmp_vmlinux1] Error 1
--
Last passed version:
--
kernel: Linux release 2.6.33.1-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 2.6.33.1-ADI-2010R1-pre-svn8523, build #36 Sat Mar 20 10:26:43 CST 2010
toolchain: bfin-linux-uclibc-gcc release gcc version 4.3.4 (ADI-trunk/svn-3815)
user-dist: release svn-9521, build #721 Sat Mar 20 10:26:10 CST 2010
--
Follow-ups
--- 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
together.
sound/soc/codecs/Kconfig:
config SND_SOC_I2C_AND_SPI
tristate
default m if I2C=m
default y if I2C=y
default y if SPI_MASTER=y
is not strong to handle this.
-barry
--- 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
from common.
So looks like we can't configure kernel by this way.
We can either built-in all, or compile codec driver as module.
-barry
--- Vivi Li 2010-04-12 03:49:39
Modify build script to select I2C.
So close this bug.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.audio_ad1938 application/octet-stream 36736 Vivi Li