Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:applications:gpio:i2s

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
products:sbc:common:applications:gpio:i2s [2024/07/04 05:13]
sravan created
products:sbc:common:applications:gpio:i2s [2026/09/15 03:27] (current)
nick
Line 21: Line 21:
 | :::        31 (DATA)  |  PIN.Z2  |  500  | | :::        31 (DATA)  |  PIN.Z2  |  500  |
 | :::        32 (LRCK)  |  PIN.Z0  |  498  | | :::        32 (LRCK)  |  PIN.Z0  |  498  |
 +| :::        28 (GND)  |  GND     | |
 +| :::        1  (VCC)  |  5V      | |
 +^  VIM-5    |  29 (BCK)  |  PIN.A1  |  577  |
 +| :::        31 (DATA)  |  PIN.A3  |  579  |
 +| :::        32 (LRCK)  |  PIN.A2  |  578  |
 | :::        28 (GND)  |  GND     | | | :::        28 (GND)  |  GND     | |
 | :::        1  (VCC)  |  5V      | | | :::        1  (VCC)  |  5V      | |
Line 69: Line 74:
  
 After reboot, you can connect your i2s device to corresponding pins. After reboot, you can connect your i2s device to corresponding pins.
 +
 +<tabbox VIM-5>
 +
 +Edit ''/boot/dtb/amlogic/kvim-5.dtb.overlay.env'' to add i2s node to ''fdt_overlays'' node if it doesn't exist.
 +
 +e.g. To enable ''I2S'', you need to add ''i2s'' to node ''fdt_overlays'' if it doesn't exist.
 +
 +```shell
 +fdt_overlays=i2s
 +
 +```
 +
 +After reboot, you can connect your i2s device to corresponding pins.
 +
 +```shell
 +$ aplay -Dhw:0,1 test002.wav
 +```
  
 </tabbox> </tabbox>
Line 76: Line 98:
 ``` shell ``` shell
 $ aplay -l                # find your i2s card and play audio using it $ aplay -l                # find your i2s card and play audio using it
-$ aplay -D hw:0,x xxx.wav # replace with i2s card and your audio+$ aplay -D hw:0,0 <audio_file>.wav # replace 0,0 with i2s interface (card,device)
 ``` ```
-`+
Last modified: 2024/07/04 05:13 by sravan