ALSA ASoC splits an embedded audio system into three components:
Codec driver: The codec driver is platform independent and contains audio 
controls, audio DAPM interface capabilities, codec DAPM definition and codec IO 
functions.
Platform driver: The platform driver contains the audio dma engine and audio 
interface drivers (e.g. I2S, AC97, PCM) for that platform.
Machine driver: The machine driver handles any machine specific controls and 
audio events i.e. turning on an DAPM at start of playback.

you need to add this to platform driver and not to the codec driver

Yassin jaffer

> On 20 Jun 2014, at 12:28 am, Puneet B <[email protected]> wrote:
> 
>  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.

-- 
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