On Mon, Jun 16, 2014 at 7:28 AM, Puneet B <[email protected]> wrote: > Hi all, > > In our A20 custom board we are using i2s sound card , for that we are using > TI external codec TLV320AIC3100.
You are caught in a problem of Allwinner's making. Allwinner is using FEX, the in-tree codec drivers use Device Tree. The two systems are not compatible with each other. There is no solution to this that I know of other than hack on the kernel codec driver and add FEX support to it. Latter kernels are getting rid of FEX so that the pre-existing Device Tree drivers can be used. But they aren't ready yet. > > In Kernel tree we have alsa driver for TLV320AIC3100. > > vim linux-sunx/sound/soc/codecs/tlv320aic3x.c > > So i tried by writing Asoc machine driver linking alsa external codec to > sunxi-i2s soundcard and compiled successfully and by insmod also working > fine.but once i play any audio which is not yet worked. > > Here i am attaching my machine driver code ,scripts and schematics and log > once i play audio though i2s. > > [i2s_para] > i2s_used = 1 > i2s_channel = 2 > i2s_master = 4 > i2s_select = 1 > audio_format = 1 > signal_inversion = 1 > over_sample_rate = 256 > sample_resolution = 16 > word_select_size = 32 > pcm_sync_period = 256 > msb_lsb_first = 0 > sign_extend = 0 > slot_index = 0 > slot_width = 16 > frame_width = 1 > tx_data_mode = 0 > rx_data_mode = 0 > i2s_mclk = port:PB05<2><1><default><default> > i2s_bclk = port:PB06<2><1><default><default> > i2s_lrclk = port:PB07<2><1><default><default> > i2s_dout0 = port:PB08<2><1><default><default> > i2s_dout1 = > i2s_dout2 = > i2s_dout3 = > i2s_din = port:PB12<2><1><default><default> > > > Can anyone say what i am missing in machine driver code, so the external > codec will link with sunxi-i2s. > > 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. -- Jon Smirl [email protected] -- 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.
