Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:vim1s:applications:gpio:spdif

VIM1S SPDIF

Introduction

This page introduces the usage of SPDIF bus on 40-Pin Header.

SPDIF Information

PIN GPIO Name GPIO Number
VIM3/3L 13 PIN.AO10 422
VIM4 13 SPDIFOUT 420
VIM1S 13 SPDIFOUT 470

Enable SPDIF

VIM3/3L

In order to use the SPDIF, you need to enable the SPDIF function via Device Tree Overlay.

For VIM3, edit /boot/dtb/amlogic/kvim3.dtb.overlay.env to add spdifout node to fdt_overlays node if it doesn't exist.

For VIM3L, edit /boot/dtb/amlogic/kvim3l.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.

fdt_overlays=spdifout

After reboot, you can connect your spdif device to corresponding pins.

VIM4

In order to use the SPDIF, you need to enable the SPDIF function via Device Tree Overlay.

Edit /boot/dtb/amlogic/kvim4.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.

fdt_overlays=spdifout

After reboot, you can connect your spdif device to corresponding pins.

VIM1S

In order to use the SPDIF, you need to enable the SPDIF function via Device Tree Overlay.

Edit /boot/dtb/amlogic/kvim1s.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.

fdt_overlays=spdifout

After reboot, you can connect your spdif device to corresponding pins.

SPDIF Usage

After connecting your device.

$ aplay -l                # find your i2s card and play audio using it
$ aplay -D hw:0,0 <audio_file>.wav # replace 0,0 with spdif interface (card,device)
2024/07/04 05:13 · sravan
Last modified: 2024/07/04 05:25 by sravan