Speaker separation Example



Quick installation guide to enable the I2S audio output on Ubuntu.


ODROID-C1+/C2


  1.  Connect the stereo boom bonnet to ODROID-C1+/ C2 using an I2C cable, attach a USB keyboard, USB mouse and HDMI monitor, then power up the system.

  2.  Update the System: 

    sudo apt update && sudo apt dist-upgrade

     


  3.  To ensure that the stereo boom bonnet kernel modules are loaded on Terminal.

    odroid@odroid64:~$ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: ODROIDHDMI [ODROID-HDMI], device 0: I2S.27 dit-hifi-0 []
      Subdevices: 0/1
      Subdevice #0: subdevice #0
    odroid@odroid64:~$
    odroid@odroid64:~$ sudo modprobe snd-soc-pcm5102
    odroid@odroid64:~$ sudo modprobe snd-soc-odroid-dac
    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:~$


  4.  Applications → Sound & Video → Sound → Hardware Tab & Output Tab select “ODROID-DAC”

If you have to load the driver every time whenever your ODROID-C1+/C2 starts, simply you can by registering 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:~$ 

Reboot again.

Check it by “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:~$


ODROID-XU4



Adding a RCA connector for Lineout



Stereo Boom Bonnet support



Android supports only 44.1.Khz/16bit output.



BLOCK DIAGRAM




Power consumption


1Khz sine wave playback
Full scale with sound clipping: 6 Watt
Lowering output volume to minimize the clipping: 2 Watt


Pop-up noise


Speakers don't generate pop-up noise in power on and off process.
But Earphone output generates pop-up noise in the power-on process.
The normal power-off process doesn't make any noise.