Last update: 2020/04/23 16:56
accessory:sound:hifi_shield https://wiki.odroid.com/accessory/sound/hifi_shield?rev=1587628619
https://wiki.odroid.com/
Printed on 2023/09/02 10:14
Add the following at the bottom of the page above exit 0. ^x exit and save the file. Reboot your
ODROID-C2.
Create /etc/asound.conf with the following content:
pcm.!default {
type hw card 1
}
ctl.!default {
type hw card 1
}
Reboot again.
Check, if the sound card is enabled with “aplay -l”:
odroid@odroid64:~$
aplay
-l
****
List of PLAYBACK Hardware Devices
****
card
0
: ODROIDHDMI
[
ODROID-HDMI
]
, device
0
: I2S dit-hifi-
0
[]
Subdevices:
1
/
1
Subdevice
#0: subdevice #0
card
1
: ODROIDDAC2
[
ODROID-DAC2
]
, device
0
: I2S pcm512x-hifi-
0
[]
Subdevices:
1
/
1
Subdevice
#0: subdevice #0
odroid@odroid64:~$
ODROID-C4
Assemble the C4 with the Hifi-Shield2, 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 pcm5242 codec driver.
root@odroid:~$
fdtget
/
media
/
boot
/
meson64_odroidc4.dtb
/
soc
/
cbus
@
ffd00000
/
i2c
@
1d000 status