Hi
I'm using OMAPl138 custom board and i'm using LM49352 audio IC i need Linux i2c driver for this audio chip.
I refer this link for Linux driver http://mailman.alsa-project.org/pipermail/alsa-devel/2011-March/037806.html
/* I2C driver structure for LM49352. */
static struct i2c_driver lm49352_i2c_driver = {
.driver = {
.name = "LM49352 I2C Codec",
.owner = THIS_MODULE,
},
.attach_adapter = lm49352_i2c_attach,
.detach_client = lm49352_i2c_detach,
.command = NULL,
};
/* I2C client structure for LM49352. */
static struct i2c_client client_template = {
.name = "LM49352",
.driver = &lm49352_i2c_driver,
};
#endif
This part is very confusing because its don't have .id_table for register the driver from board file and .name contains space so i'm confused regarding how to register this driver from my board file
I'm registering like this
static struct i2c_board_info __initdata omapl138_hawk_i2c_devices[] = {
{
I2C_BOARD_INFO("LM49352 I2C Codec", 0x34),
},
};
And also the driver not building its showing countless error because of version mismatching and i removed the #include <sound/driver.h>
Please help me to find the proper Linux driver for LM49352 audio device and check this i2c slave address is correct or not.
Thanks
Sangily