I2S_SDO1 doesn't work in my VIM4

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu

Which version of system do you use? Khadas official images, self built images, or others?

Khadas official images

Please describe your issue below:

I want to use the I2S interface in the 40pin connector, I have actived the i2s and I can see the i2s clock , masterclock and LRclock but when I use speaker-test -Dhw:0,2 -f440 -tsine (I try also -Dhw:0,1…6) but the pin unchange.
How can I do to use this pin?


`### Post a console log of your issue below:


**Delete this line and post your log here.**

Hello @marcellom66

Have you enable the i2s function with overlay?

Please check:

https://docs.khadas.com/products/sbc/vim4/configurations/device-tree-overlay

Here is my configuration:

$ cat /boot/dtb/amlogic/kvim4.dtb.overlay.env 
fdt_overlays=i2s

After enable i2s, the sound card should be like this:

khadas@Khadas:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: AMLAUGESOUND [AML-AUGESOUND], device 1: SPDIF-dummy-alsaPORT-spdif soc:dummy-1 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: AMLAUGESOUND [AML-AUGESOUND], device 2: TDM-A-dummy-alsaPORT-pcm soc:dummy-2 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: AMLAUGESOUND [AML-AUGESOUND], device 3: TDM-B-dummy-alsaPORT-i2s-i2s4hdmirx soc:dummy-3 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: AMLAUGESOUND [AML-AUGESOUND], device 4: TDM-C-dummy-alsaPORT-i2s4parser soc:dummy-4 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: AMLAUGESOUND [AML-AUGESOUND], device 6: SPDIF-B-dummy-alsaPORT-spdifb soc:dummy-6 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: AMLAUGESOUND [AML-AUGESOUND], device 7: EXTN-dummy-alsaPORT-tv soc:dummy-7 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

0:3 is i2s device.

$ aplay -Dhw:0,3 test002.wav 

yes, it works. Thank you.
But why I hear the sound also in my hdmi monitor?

Yes, the sound will also send to hdmi same with i2s.

is there a way to exclude it ? Or it’s the same .

if I want to use more channels TDM is it possible? like 8 ch RX and 6 ch TX.
Thank you again

Is there any android app for I2S_SDI1??
image