2023/09/02 10:14
3/8
Quick installation guide to enable the I2S audio output on Ubuntu.
ODROID Wiki - https://wiki.odroid.com/
If you want to use the Optical output on Hifi-Shield Plus model, select “ODROID-HDMI”.
ODROID-C4
Assemble the C4 with the Hifi-Shield, attach a USB keyboard, USB mouse and HDMI monitor,
then power up the system.
To enable the sound card, you need to modify the DT(Device Tree) file.
Install required packages and make a backup DTB file.
root@odroid:~$
sudo apt-get install device-tree-compiler
root@odroid:~$
cp
/
media
/
boot
/
meson64_odroidc4.dtb
/
media
/
boot
/
meson64_odroidc4.dtb.org
Change the DTB file to enable the I2C-bus and pcm5102a codec driver.
root@odroid:~$
fdtget
/
media
/
boot
/
meson64_odroidc4.dtb
/
pcm5102a status
disabled
root@odroid:~$
fdtput
-t
s
/
media
/
boot
/
meson64_odroidc4.dtb
/
pcm5102a
status
"okay"
root@odroid:~$
fdtget
/
media
/
boot
/
meson64_odroidc4.dtb
/
pcm5102a status
okay
root@odroid:~$
Change the DTB file for sound card. Then reboot.
root@odroid:~$
fdtget
/
media
/
boot
/
meson64_odroidc4.dtb
/
odroid_hifi
status
disabled
root@odroid:~$
fdtput
-t
s
/
media
/
boot
/
meson64_odroidc4.dtb
/
odroid_hifi status
"okay"
root@odroid:~$
fdtget
/
media
/
boot
/
meson64_odroidc4.dtb
/
odroid_hifi
status
okay
root@odroid:~$
reboot
You can see that the sound card is enabled.
root@odroid:~$
aplay
-l