old_product:accessory:sound:hifi_shield

Quick installation guide to enable the Hifi-Shield audio output on Ubuntu.

  1. Assemble the C1+ with the Hifi-Shield, attach a USB keyboard, USB mouse and HDMI monitor, then power up the system.
  2. Use the ODROID utility to resize the eMMC/SD disk partition.
  3. Use the ODROID utility to update the kernel. I got version 3.10.80-125 when I did this.
  4. To ensure that the Hifi-Shield kernel modules are loaded on boot, edit the file /media/boot/boot.ini by uncommenting this line:
setenv enabledac "enabledac"
  1. To ensure that the Hifi-Shield becomes the default “sink” for the pulseaudio daemon, edit the file /etc/pulse/default.pa by by adding this line at the end:
 set-default-sink alsa_output.platform-odroid_sound_card.5.analog-stereo
  1. To enable applications such as mpg321 to use the Hifi-Shield even when no pulseaudio daemon is running (e.g. from a cron job),
    add one more line to the end of the file /etc/pulse/default.pa :
 suspend-sink alsa_output.platform-odroid_sound_card.5.analog-stereo 1 

Note: Applications like mpg321 will start a pulseaudio daemon if there isn't one running already. However, the Hifi-Shield cannot be opened until the pulseaudio suspend-on-idle timeout expires. This causes the application to exit with an error message reporting that the Hifi-Shield is busy.

  1. To test, connect an amplifier to the 3.5mm or RCA lineout jack on the Hifi-Shield, reboot the C1+, and then run:
target
aplay /usr/share/sounds/alsa/Front_Center.wav

Credit:
This instruction was made by culler (our forum member).
Original Post

Update If your kernel version is 3.10.96-143 or higher, the I2S/DAC drivers have been changed to modules.
So you need to load the modules before enable the Hifi-Shield.
Refer this LINK


  • old_product/accessory/sound/hifi_shield.txt
  • Last modified: 2017/07/31 13:56
  • by luke.go