声卡的驱动已经执行力,sgtl5000_i2c_probe函数被调用了,但是sgtl5000_probe函数未调用,并且注册函数snd_soc_register_codec 已经执行成功了
驱动的加载代码
static struct i2c_board_info am335x_i2c1_boardinfo1[] = {
{
I2C_BOARD_INFO("pcf8563", 0x51),
},
{
I2C_BOARD_INFO("sgtl5000", 0x0A),
},
};
static void mcasp0_init(int evm_id, int profile)
{
setup_pin_mux(mcasp0_pin_mux);
am335x_register_mcasp(&am335x_evm_sk_snd_data0, 0);
return;
}
详细参考源码
log信息如下:
[ 2.634765] ##sgtl5000_modinit
[ 2.638092] ##sgtl5000_i2c_probe
[ 2.641540] client->dev is[ 2.644592] ret is 0
[ 2.646911] ##end sgtl5000_i2c_probe
[ 2.651702] ALSA device list:
[ 2.654907] No soundcards found.
zhiqiang wang5:
配置信息的附件
Jian Zhou:
请问用的是哪个版本的kernel?
Linux ALSA的架构还是比较复杂的,应该是添加的位置不对吧。
zhiqiang wang5:
回复 Jian Zhou:
linux 3.1
Jian Zhou:
回复 zhiqiang wang5:
建议你看下下面这篇文档,我当时就是按照这篇文档进行声卡移植的:
http://blog.csdn.net/droidphone/article/details/6271122