Hi thanks for your replay. when i load your machine code. it looks like this: root@marsboard:/lib/modules/3.4.103+/kernel/sound/soc/sunxi/i2s# modprobe snd-soc-rx51 <4>soc-audio soc-audio.3: ASoC machine RX-51 should use snd_soc_register_card() [ 1625.151383] soc-audio soc-audio.3: ASoC machine RX-51 should use snd_soc_register_card()
i think i2s works: root@marsboard:/lib/modules/3.4.103+/kernel/sound/soc/sunxi/i2s# ls /dev/snd/ by-path controlC0 controlC1 pcmC0D0c pcmC0D0p pcmC1D0p timer root@marsboard:/lib/modules/3.4.103+/kernel/sound/soc/sunxi/i2s# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: sunxicodec [sunxi-CODEC], device 0: M1 PCM [sunxi PCM] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: sunxisndi2s [sunxi-sndi2s], device 0: SUNXI-I2S sndi2s-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 i connet logic anaalyser. there is not any song i played. but some i2s signals is showing up on the line. i didnt understand. but for now my problem is machine driver has fault. did you get any error like this. [image: Satır içi resim 1] 2015-03-23 7:16 GMT+02:00 Puneet B <[email protected]>: > If you look at some of example code of machine driver you will get it. > like ompa, davinic > > Actually you need to make your machine driver should compile by making > changes in Kconfig and makefile. > then your machine driver will create the snd node file by linking platform > and codec driver . > > Regards > Punith > > On Sat, Mar 21, 2015 at 1:49 AM, <[email protected]> wrote: > >> hi, >> >> where will we put the file (rx51.c) that you gave? >> A20 sees as module tlv320 but alsa dont include it. >> when i write aplay -l , only sunxi device is showing. >> >> i looked with logic anaylzer to i2c pins. scl and sda works. >> >> Thanks for your help. >> >> >> >> On Tuesday, January 6, 2015 at 7:46:40 AM UTC+2, Puneet B wrote: >> > i used i2c second bus, >> > >> > [twi2_para] >> > twi2_used = 1 >> > twi2_scl = port:PB20<2><default><default><default> >> > twi2_sda = port:PB21<2><default><default><default> >> > >> > Regards >> > Punith >> > >> > >> > >> > On Mon, Jan 5, 2015 at 11:28 PM, <[email protected]> wrote: >> > Hi Punith B, >> > >> > >> > >> > which i2c pin did you use? >> > >> > >> > >> > >> > >> > On Saturday, September 27, 2014 8:19:22 AM UTC+3, Puneet B wrote: >> > >> > > Hi Rafel, >> > >> > > >> > >> > > The fex file i have attached in my previous post i did not done any >> changes. >> > >> > > and here my machine driver . >> > >> > > >> > >> > > in device.c file just add fallowing line. >> > >> > > +static struct i2c_board_info __initdata aic3x_i2c_board_info[] = { >> > >> > > + { >> > >> > > + .type = "tlv320aic31xx", >> > >> > > + .addr = 0x18, >> > >> > > + } >> > >> > > +}; >> > >> > > void __init sw_pdev_init(void) >> > >> > > { >> > >> > > platform_add_devices(sw_pdevs, ARRAY_SIZE(sw_pdevs)); >> > >> > > + i2c_register_board_info(2, aic3x_i2c_board_info, >> > >> > > + ARRAY_SIZE(aic3x_i2c_board_info)); >> > >> > > } >> > >> > > >> > >> > > which kernel you are using?. >> > >> > > >> > >> > > Regards >> > >> > > Punith >> > >> > >> > >> > -- >> > >> > You received this message because you are subscribed to a topic in the >> Google Groups "linux-sunxi" group. >> > >> > To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/linux-sunxi/t44VY2-cOMo/unsubscribe. >> > >> > To unsubscribe from this group and all its topics, 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 a topic in the >> Google Groups "linux-sunxi" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/linux-sunxi/t44VY2-cOMo/unsubscribe. >> To unsubscribe from this group and all its topics, 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 a topic in the > Google Groups "linux-sunxi" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/linux-sunxi/t44VY2-cOMo/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- ... ** *Sayg. / Best Regards* *ÖMER AYGÖR* Elektronik Ar-Ge Mühendisi *www.eyzateknoloji.com <http://www.eyzateknoloji.com/>* Tel:05066725407 Özankara San. Sit. 1122 Cd. 1418.Sk. No:14 Yenimahalle/ANKARA -- 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.
