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
Subdevice
#0: subdevice #0
card
1
: ODROIDDAC
[
ODROID-DAC
]
, device
0
: I2S.27 pcm5102-
0
[]
Subdevices:
1
/
1
Subdevice
#0: subdevice #0
odroid@odroid64:~$
If you have to load the driver every time whenever your ODROID-C2 starts, simply you can
register the driver into /etc/modules
odroid@odroid64:~$
su
Password:
/*
root password is
"odroid"
*/
root
@
odroid64:
/
home
/
odroid
# echo "snd-soc-pcm5102" >> /etc/modules
root
@
odroid64:
/
home
/
odroid
# echo "snd-soc-odroid-dac" >> /etc/modules
root
@
odroid64:
/
home
/
odroid
# exit
exit
odroid@odroid64:~$
This adds one line at end of the file, /etc/modules, and load the driver on boot automatically.
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.27 dit-hifi-
0
[]
Subdevices:
1
/
1
Subdevice
#0: subdevice #0
card
1
: ODROIDDAC
[
ODROID-DAC
]
, device
0
: I2S.27 pcm5102-
0
[]
Subdevices:
1
/
1
Subdevice
#0: subdevice #0
odroid@odroid64:~$
To test, connect an amplifier to the 3.5mm or RCA lineout jack on the Hifi-Shield, and then run:
Applications → Sound & Video → Sound → Hardware Tab & Output Tab select “ODROID-DAC”