Hi Yassin,

Here i did same thing but directly in codec driver , 

vim sound/soc/codec/tlv320aic3x.c

/* added by punith */
static struct i2c_board_info __initdata aic3x_i2c_board_info[] = {
        {
                .type = "tlv320aic3x",
                .addr = 0x18,
                //.platform_data = &axp_pdata,
                //.irq = pmu_irq_id,
        },
};

static int __init aic3x_modinit(void)
{
        int ret = 0;
        ret = i2c_add_driver(&aic3x_i2c_driver);
        printk("%s puneet\n",__func__);

        /* addedd by punith*/
        i2c_register_board_info(2, aic3x_i2c_board_info,
                        ARRAY_SIZE(aic3x_i2c_board_info));

        if (ret != 0) {
                printk(KERN_ERR "Failed to register TLV320AIC3x I2C driver: 
%d\n",
                       ret);
        }
        return ret;
}

But not yet able to probe the codec.

Regards
Punith

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to