2023/09/02 10:14
7/8
Quick installation guide to enable the I2S audio output on Ubuntu.
ODROID Wiki - https://wiki.odroid.com/
disabled
root@odroid:~$
fdtput
-t
s
/
media
/
boot
/
meson64_odroidc4.dtb
/
soc
/
cbus
@
ffd00000
/
i2c
@
1d000 status
"okay"
root@odroid:~$
fdtput
-t
s
/
media
/
boot
/
meson64_odroidc4.dtb
/
soc
/
cbus
@
ffd00000
/
i2c
@
1d000
/
pcm5242 status
"okay"
root@odroid:~$
fdtget
/
media
/
boot
/
meson64_odroidc4.dtb
/
soc
/
cbus
@
ffd00000
/
i2c
@
1d000 status
okay
root@odroid:~$
fdtget
/
media
/
boot
/
meson64_odroidc4.dtb
/
soc
/
cbus
@
ffd00000
/
i2c
@
1d000
/
pcm5242 status
okay
root@odroid:~$
Change the DTB file to enable [ODROID-HIFI2] sound card. Then reboot.
root@odroid:~$
fdtget
/
media
/
boot
/
meson64_odroidc4.dtb
/
odroid_hifi2
status
disabled
root@odroid:~$
fdtput
-t
s
/
media
/
boot
/
meson64_odroidc4.dtb
/
odroid_hifi2 status
"okay"
root@odroid:~$
fdtget
/
media
/
boot
/
meson64_odroidc4.dtb
/
odroid_hifi2
status
okay
root@odroid:~$
reboot
You can see that the sound card is enabled.
root@odroid:~$
aplay
-l
****
List of PLAYBACK Hardware Devices
****
****
List of PLAYBACK Hardware Devices
****
card
0
: ODROIDHDMI
[
ODROID-HDMI
]
, device
0
: SPDIF-dit-hifi dit-hifi-
0
[]
Subdevices:
1
/
1
Subdevice
#0: subdevice #0
card
1
: ODROIDHiFi2
[
ODROID-HiFi2
]
, device
0
: TDM-B-pcm512x-hifi
pcm512x-hifi-
0
[]
Subdevices:
1
/
1
Subdevice
#0: subdevice #0
root@odroid:~#
To test, connect an amplifier to the RCA lineout jack on the Hifi-Shield, and then run:
Applications → Sound & Video → Sound → Hardware Tab & Output Tab select “ODROID-HIFI2”
If you want to use the Optical output on Hifi-Shield Plus model, select “ODROID-HDMI”.