Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:applications:gpio:spdif

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:common:applications:gpio:spdif [2024/07/10 01:58]
sravan [SPDIF Usage]
products:sbc:common:applications:gpio:spdif [2026/09/15 03:27] (current)
nick
Line 11: Line 11:
 ^  VIM4     |  13  |  SPDIFOUT  |  420  | ^  VIM4     |  13  |  SPDIFOUT  |  420  |
 ^  VIM1S    |  13  |  SPDIFOUT  |  470  | ^  VIM1S    |  13  |  SPDIFOUT  |  470  |
 +^  VIM-5    |  13  |  SPDIFOUT  |  641  |
 +
  
 ===== Enable SPDIF ===== ===== Enable SPDIF =====
Line 60: Line 62:
  
 After reboot, you can connect your spdif device to corresponding pins. After reboot, you can connect your spdif device to corresponding pins.
 +
 +<tabbox VIM-5>
 +
 +In order to use the SPDIF, you need to enable the SPDIF function via [[products:sbc:common:configurations:device-tree-overlay|Device Tree Overlay]].
 +
 +Edit ''/boot/dtb/amlogic/kvim-5.dtb.overlay.env'' to add spdifout node to ''fdt_overlays'' node if it doesn't exist.
 +
 +e.g. To enable ''SPDIF'', you need to add ''spdifout'' to node ''fdt_overlays'' if it doesn't exist.
 +
 +```shell
 +fdt_overlays=spdifout
 +```
 +
 +After reboot, you can connect your spdif device to corresponding pins.
 +
 +``` shell
 +$ aplay -D hw:0,4 <audio_file>.wav
 +```
  
 </tabbox> </tabbox>
Line 68: Line 88:
  
 ``` shell ``` shell
-$ aplay -l                # find your i2s card and play audio using it +$ aplay -l                # find your spdif card and play audio using it 
-$ aplay -D hw:0,0 <audio_file>.wav # replace 0,0 with spdif interface (card,device)+$ aplay -D hw:0,1 <audio_file>.wav # replace 0,0 with spdif interface (card,device)
 ``` ```
  
Last modified: 2024/07/10 01:58 by sravan