I want to interface I2S0 of TX2 NX with an audio processor .I am setting audio processor as slave and NVIDIA as master.NVIDIA needs to communicate with audio processor by outputting bclk and fsync.I am trying to create a dummy codec for this.How can we do the same?
Above will start sending signals on I2S1 SCLK, FS, DOUT which can be connected to your audio processor and handled as appropriate or you can probe the lines with oscilloscope to confirm
Thanks for the response. I am using I2S0 of Jetson TX2 NX for interfacing with the audio processor.So do we need any DT configuration for the same?I tried for I2S1 .But system is not booting up after reboot.We are testing in the custom carrier board
I have taken 193(i2s0_dout),195,197 and 199 of TX2 NX for checking the I2S signals . I2S0 was initially configured as GPIOs .Hence it is configured as I2S signals by changing the pinmux table of TX2 NX. Generated .cfg files ,flashed the device and checked by probing the lines.But while playing a wav file i2s0 is not outputting sclk,ws,and dout. But aplay is listing dummy codec. Please help us to resolve the issue.
Use card 2 for playback (from above list) after setting mixer controls as per my earlier comment and let us know if you still don’t see data on I2S lines
Regarding “But aplay is listing dummy codec”. Did you do anything explicit to enable the Dummy card (like enabling config while building kernel). Its not necessary. You could use "tegrasndt186ref " for your usecase.
I am getting this while using amixer command.
amixer -c tegrasndt186ref cset name=“I2S1 Mux” ADMAIF1
amixer: Cannot find the given element from control hw:2
Regarding “Did you do anything explicit to enable the Dummy card (like enabling config while building kernel)” ,yes I have enabled dummy card explicitly in the config file.I removed it and flashed the device again with the pinmux changes.Following are list of aplay
amixer -c tegrasndt186ref cset name=“I2S1 Mux” ADMAIF1 is showing the following error
amixer: Cannot find the given element from control hw:1
It is not outputting sclk and ws
Could you please help me on this?
I am not getting SCLK and WS .I checked cat /sys/kernel/debug/tegra_pinctrl_reg | grep -i dap1. Output is as given below.I am using I2S0 .pins are 193,195,197 and 199 of TX2 NX
It is working fine after writing the registers.Could you please tell me the pinmux changes required for getting the above register values? I have done the following changes for I2S0.
Could you please confirm whether the changes are correct or not?