We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:c2_hifi_shield [2016/10/05 15:34]
ck.kim [HiFi-shield2]
en:c2_hifi_shield [2016/12/11 10:07] (current)
odroid [HiFi-shield2]
Line 2: Line 2:
 ==== HiFi-shield & HiFi-Shield+ ==== ==== HiFi-shield & HiFi-Shield+ ====
 {{http://​www.hardkernel.com/​main/​_Files/​prdt/​2016/​201605/​201605181634077377.jpg?​400|}} {{http://​www.hardkernel.com/​main/​_Files/​prdt/​2016/​201605/​201605181634077377.jpg?​400|}}
 +
 +The HiFi Shield Plus provides both stereo RCA connectors and a 3.5mm stereo jack (all gold-plated) to connect to external amplifiers and other audio equipment. An S/PDIF Optical output is also available. ​ Via TI's high-end **PCM5102** DAC chip(known as Burr-Brown),​ it supports 16, 24, 32 bit audio formats with minimal distortion (-93dB) and ideal dynamics (110dB+), plus amazing sampling rates of 384kHz
 +
   - Assemble the C2 with the HiFi shield, attach a USB keyboard, USB mouse and HDMI monitor, then power up the system.\\   - Assemble the C2 with the HiFi shield, attach a USB keyboard, USB mouse and HDMI monitor, then power up the system.\\
   - Update the System: **sudo apt-get update && sudo apt-get dist-upgrade** \\   - Update the System: **sudo apt-get update && sudo apt-get dist-upgrade** \\
Line 63: Line 66:
  
 ==== HiFi-shield2 ==== ==== HiFi-shield2 ====
-{{http://​www.hardkernel.com/​main/​_Files/​prdt/​2016/​201605/201605181634077377.jpg?400|}}+{{http://​www.hardkernel.com/​main/​_Files/​prdt/​2016/​201610/201610081156405325.jpg?800|}} 
 + 
 +The HiFi Shield 2 provides stereo RCA connectors to connect to external amplifiers and other audio equipment. An S/PDIF Optical output is also available. 
 +Via TI's high-end **PCM5242** DAC chip(known as Burr-Brown),​ it supports 16, 24, 32 bit audio formats with minimal THD+N ratio (0.002%) and ideal dynamics (116dB+), plus amazing sampling rates of 384kHz. Volume control via I2C interface is great feature to keep the great audio quality with various audio output volume. 
   - Assemble the C2 with the HiFi shield2, attach a USB keyboard, USB mouse and HDMI monitor, then power up the system.\\   - Assemble the C2 with the HiFi shield2, attach a USB keyboard, USB mouse and HDMI monitor, then power up the system.\\
   - Update the System: **sudo apt-get update && sudo apt-get dist-upgrade** \\   - Update the System: **sudo apt-get update && sudo apt-get dist-upgrade** \\
-  - To ensure that the HiFi shield ​kernel modules are loaded on Terminal.\\ <​code>​+  - To ensure that the HiFi shield2 ​kernel modules are loaded on Terminal.\\ <​code>​
 odroid@odroid64:​~$ aplay -l odroid@odroid64:​~$ aplay -l
 **** List of PLAYBACK Hardware Devices **** **** List of PLAYBACK Hardware Devices ****
-card 0: ODROIDHDMI [ODROID-HDMI],​ device 0: I2S.27 dit-hifi-0 [] +card 0: ODROIDHDMI [ODROID-HDMI],​ device 0: I2S dit-hifi-0 [] 
-  Subdevices: ​0/1+  Subdevices: ​1/1
   Subdevice #0: subdevice #0   Subdevice #0: subdevice #0
 odroid@odroid64:​~$ su odroid@odroid64:​~$ su
 Password: ​ /* root password is "​odroid"​ */ Password: ​ /* root password is "​odroid"​ */
 root@odroid64:/​home/​odroid#​ modprobe aml_i2c root@odroid64:/​home/​odroid#​ modprobe aml_i2c
-root@odroid64:/​home/​odroid# ​sudo modprobe snd_soc_pcm512x +root@odroid64:/​home/​odroid#​ modprobe snd_soc_pcm512x 
-root@odroid64:/​home/​odroid# ​sudo modprobe snd_soc_pcm512x_i2c+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#​ echo pcm5242 0x4c > /​sys/​class/​i2c-adapter/​i2c-1/​new_device
 root@odroid64:/​home/​odroid#​ modprobe snd-soc-odroid-dac2 root@odroid64:/​home/​odroid#​ modprobe snd-soc-odroid-dac2
Line 88: Line 95:
   Subdevice #0: subdevice #0   Subdevice #0: subdevice #0
 root@odroid64:/​home/​odroid#​ root@odroid64:/​home/​odroid#​
-odroid@odroid64:​~$ 
 </​code>​ </​code>​
-  - To test, connect an amplifier to the 3.5mm or RCA lineout ​jack on the HiFi Shield, and then run:\\ +  - 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-DAC"\\ +  - Applications -> Sound & Video -> Sound -> Hardware Tab & Output Tab select "​ODROID-DAC2"\\ 
-  - If you want to use the **Optical output** ​on HiFi-Shile-Plus model, ​select "​ODROID-HDMI"​.\\+  - If you want to use the **Optical output** select "​ODROID-HDMI"​.\\
  
-**If you have to load the driver every time whenever your ODROID-C2 ​starts, simply you can register the driver into /etc/modules ​**\\+**You want to add the HiFi-Shield2 sound_card on ODROID-C2 ​at boot by editing ​/etc/rc.local. ​**\\
 <​code>​ <​code>​
-odroid@odroid64:​~$ ​su +odroid@odroid64:​~$ ​sudo nano /etc/rc.local 
-Password:  ​/* root password is "​odroid"​ *+if [ -f /aafirstboot ]; then /aafirstboot start ; fi 
-root@odroid64:​/home/odroid# ​echo "snd-soc-pcm5102"​ >> /​etc/​modules + 
-root@odroid64:/​home/​odroid#​ echo "snd-soc-odroid-dac" >> /etc/modules +echo Loading HiFi-Shield2 module 
-root@odroid64:​/home/odroid# exit +modprobe aml_i2c 
-exit +modprobe ​snd-soc-pcm512x 
-odroid@odroid64:​~$ ​</​code>​ +modprobe ​snd-soc-pcm512x-i2c 
-This adds one line at end of the file, /​etc/​modules, ​and load the driver on boot automatically.\\+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 
 + 
 +^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  
 +</​code>​ 
 +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:** **Create /​etc/​asound.conf with the following content:**
Line 120: Line 139:
 odroid@odroid64:​~$ aplay -l odroid@odroid64:​~$ aplay -l
 **** List of PLAYBACK Hardware Devices **** **** List of PLAYBACK Hardware Devices ****
-card 0: ODROIDHDMI [ODROID-HDMI],​ device 0: I2S.27 dit-hifi-0 []+card 0: ODROIDHDMI [ODROID-HDMI],​ device 0: I2S dit-hifi-0 []
   Subdevices: 1/1   Subdevices: 1/1
   Subdevice #0: subdevice #0   Subdevice #0: subdevice #0
-card 1: ODROIDDAC ​[ODROID-DAC], device 0: I2S.27 pcm5102-0 []+card 1: ODROIDDAC2 ​[ODROID-DAC2], device 0: I2S pcm512x-hifi-0 []
   Subdevices: 1/1   Subdevices: 1/1
   Subdevice #0: subdevice #0   Subdevice #0: subdevice #0
-odroid@odroid64:​~$ +odroid@odroid64:​~$ </​code>​
-</​code>​ +
  
 +<WRAP center round important 60%>
 +If above guide is not comfortable for you, try this alternative easy solution made by Fourdee (DietPi OS image author).\\
 +http://​forum.odroid.com/​viewtopic.php?​f=118&​t=24415
 +</​WRAP>​
en/c2_hifi_shield.1475651079.txt.gz · Last modified: 2016/10/05 15:34 by ck.kim
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0