
2023/09/02 10:14 5/8 Quick installation guide to enable the I2S audio output on Ubuntu.
ODROID Wiki - https://wiki.odroid.com/
card 0: ODROIDHDMI [ODROID-HDMI], device 0: I2S dit-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
odroid@odroid64:~$ su
Password: /* root password is "odroid" */
root@odroid64:/home/odroid# modprobe aml_i2c
root@odroid64:/home/odroid# modprobe snd_soc_pcm512x
root@odroid64:/home/odroid# modprobe snd_soc_pcm512x_i2c
root@odroid64:/home/odroid# echo pcm5242 0x4c > /sys/class/i2c-
adapter/i2c-1/new_device
root@odroid64:/home/odroid# modprobe snd-soc-odroid-dac2
root@odroid64:/home/odroid# 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: 0/1
Subdevice #0: subdevice #0
root@odroid64:/home/odroid#
To test, connect an amplifier to the RCA out jack on the Hifi-Shield2, and then run:
Applications → Sound & Video → Sound → Hardware Tab & Output Tab select “ODROID-DAC2”
If you want to use the Optical output select “ODROID-HDMI”.
You want to add the Hifi-Shield2 sound_card on ODROID-C2 at boot by editing /etc/rc.local.
target
odroid@odroid64:~$ sudo nano /etc/rc.local
if [ -f /aafirstboot ]; then /aafirstboot start ; fi
echo Loading HiFi-Shield2 module
modprobe aml_i2c
modprobe snd-soc-pcm512x
modprobe snd-soc-pcm512x-i2c
echo pcm5242 0x4c > /sys/class/i2c-adapter/i2c-1/new_device
modprobe snd-soc-odroid-dac2
amixer -c 1 sset Analogue 0
amixer -c 1 sset Digital 201
amixer -c 1 sset Deemphasis on
echo Done.
exit 0
^G Get Help ^O Write Out ^W Where Is ^K Cut Text ^J Justify ^C Cur
Pos
^X Exit ^R Read File ^\ Replace ^U Uncut Text^T To Linter ^_ Go
To Line