This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SGTL5000声卡驱动的移植



声卡的驱动已经执行力,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.