Jump to content

Lime2 I2S in slave mode


alexparser

Recommended Posts

That patch is already a part of Armbian kernel and reported working on Cubietruck and Banana PRO.

 

Thanks for info!

That patch not presented in Lime2?

Lime2 based on Allwinner A20 SOC like as Cubietruck and Banana PRO.

May be you can help me porting this patch to Lime2?

Link to comment
Share on other sites

All A20 boards share the same kernel so this patch is present. Check your script.bin ... I2S is only disabled in board configuration. 

[i2s_para]
i2s_used = 0
i2s_channel = 2
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>

/boot/bin/lime2.bin (file location)

 

bin2fex lime2.bin lime2.fex

 

Check / edit / enable in fex file: change i2s_used = 0 to i2s_used = 1

 

fex2bin lime2.fex lime2.bin

 

For wiring check Olimex docs.

Link to comment
Share on other sites

All A20 boards share the same kernel so this patch is present. Check your script.bin ... I2S is only disabled in board configuration. 

[i2s_para]
i2s_used = 0
i2s_channel = 2
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>

/boot/bin/lime2.bin (file location)

 

bin2fex lime2.bin lime2.fex

 

Check / edit / enable in fex file: change i2s_used = 0 to i2s_used = 1

 

fex2bin lime2.fex lime2.bin

 

For wiring check Olimex docs.

 

I make correction a fex file.

But after reboot I can't see the i2s device.

root@lime2:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: DAC [Brooklyn DAC], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Link to comment
Share on other sites

Hi alexparser, any updates to share about I2S slave mode? I'm looking for hardware options for slave mode, too, and am willing/interested to collaborate.

 

Hi,

So, I got success, I2S work in master mode only on 3.4.106-lime

I think, slave mode must work also.

But I don't have a external clock for test.

Link to comment
Share on other sites

Now you need to check and double check if you wired properly. Without looking to the board schematics is hard to tell which PINs are the right ones. Check also that those pins are not overlapping with some other function. This might cause problems so you would need to disable that. In fex settings.

Link to comment
Share on other sites

I2S Master Mode in Jessie is working. However, there is noise in 192kHz tracks.

 

I have issues (noise) playing 192/24 tracks using I2S in Master or Slave mode. Is this a known issue? Is there a fix? I'm not sure if this issue existed in the other versions or not.

Link to comment
Share on other sites

I2S Master Mode in Jessie is working. However, there is noise in 192kHz tracks.

 

I have issues (noise) playing 192/24 tracks using I2S in Master or Slave mode. Is this a known issue? Is there a fix? I'm not sure if this issue existed in the other versions or not.

Hi Kevin,

 

I am trying to get I2S Slave mode working. I have I2S Master mode working, but I do not know how to select / enable Slave mode. Can you shed any light on that ?.

 

Thanks.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines