Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:c1_hifi_shield [2015/09/29 10:30] odroid |
en:c1_hifi_shield [2016/05/19 18:18] (current) ck.kim |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | **Quick installation guide to enable the HiFi Shield audio output on Ubuntu.** | ||
+ | |||
+ | - Assemble the C1+ with the HiFi shield, attach a USB keyboard, USB mouse and HDMI monitor, then power up the system.\\ | ||
+ | - Use the ODROID utility to resize the eMMC/SD disk partition. \\ | ||
+ | - Use the ODROID utility to update the kernel. I got version 3.10.80-125 when I did this. \\ | ||
+ | - To ensure that the HiFi shield kernel modules are loaded on boot, edit the file **/media/boot/boot.ini** by uncommenting this line: <code>setenv enabledac "enabledac"</code> | ||
+ | - 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: \\ <code>set-default-sink alsa_output.platform-odroid_sound_card.5.analog-stereo</code> | ||
+ | - 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** : \\ <code> suspend-sink alsa_output.platform-odroid_sound_card.5.analog-stereo 1 </code> 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. | ||
+ | - To test, connect an amplifier to the 3.5mm or RCA lineout jack on the HiFi Shield, reboot the C1+, and then run:\\ <code>aplay /usr/share/sounds/alsa/Front_Center.wav</code> | ||
+ | |||
+ | |||
+ | **Credit:**\\ | ||
+ | This instruction was made by culler (our forum member). \\ | ||
+ | [[http://forum.odroid.com/viewtopic.php?f=112&t=16218|Original Post]] \\ | ||
+ | \\ | ||
+ | |||
+ | <WRAP left round important 100%> | ||
+ | **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 [[en:c2_hifi_shield|LINK]] | ||
+ | </WRAP>\\ | ||