Getting Started

Disclaimer

Although we have taken great care during creation of the following guides we cannot give you any guarantee on their completeness and correctness. We are not responsible for any direct, indirect, incidental or consequential damages resulting from following this guides. Furthermore there is always the risk that something on the side of your single-board-computer (SBC) was changed recently which is not taken into account here.

 

Hardware connections

  • disconnect your SBC from the power supply
  • connect PlainDAC/DAC+/DSP to your SBC using jumper cables -> see attached picture for some pin-outs
  • if you are using PlainDAC without a suitable MCLK (e.g. Raspberry Pi) make sure to connect this pin to ground
  • for BeagleBone Black see our Github page LINK
  • find a suitable place for mounting the PlainDAC/DSP
  • be creative for choosing the right mounting method (double sided tape, hotglue, …)
  • watch out not to shorten any electrical pins
I2S GPIO pins different boards.
I2S GPIO pins.
Pin-out Plain Series.

 

 

 

 

 

 

 

 

 

 

Software configuration

Raspberry Pi

  • make sure you are at least on kernel 3.18
  • edit /boot/config.txt and append in a new line:
    • dtoverlay=hifiberry-dac (if you are using PlainDAC) or
    • dtoverlay=hifiberry-dacplus (if you are using PlainDAC+ or PlainDSP)
  • save that file and reboot
  • type in aplay -l
  • you should now see a new soundcard show up
  • use alsamixer to change the volume if using PlainDAC+ or DSP
  • optionally make PlainDAC/DSP your default output device by either:
    • commenting out snd_bcm2835 in /etc/modules or
    • inserting this in your /etc/asound.conf
      pcm.!default {
      type hw card 1
      }
      ctl.!default {
      type hw card 1
      }

 

Remember that we are not affiliate with hifiberry and neither we have written this software modules nor can we support or modify it. The reason we are using it at the moment for this guide is that:

  • it works with our devices
  • the raspberry pi foundation won’t merge pull requests into their official kernel that are already implemented under a different name

 

 

BeagleBone Black with custom kernel

  • there are two special versions of our DAC’s: PlainDAC+BBB and PlainDSP-BBB
  • they are compatible with a special kernel we have build for you
  • see our Github page for instructions how to install and use it LINK
  • this kernel uses mcasp1 as I2S interface. Please follow the instructions on the github page for how to connect the DAC instead of the diagram you will find at the beginning of this page.

 

BeagleBone Black with standard kernel

  • if you are on an unmodified Debian image I2S output is already enabled
  • no further configuration needed if using PlainDAC
  • for PlainDAC+ and PlainDSP please download and use our control program
  • available from the SOFTWARE page

 

 

Banana Pi Pro

  • tested with Igor Pecovnik’s Banana Pi Image (Wheezy – 3.4.108 kernel)
  • enable the correct script.bin and I2S
  • cp /boot/script.bin /boot/script.bin.backup
  • cp /boot/bin/bananapipro.bin /boot/script.bin
  • bin2fex /boot/script.bin /boot/script.fex
  • open script.fex in editor and search for “i2s_used = 0”
  • replace the “0” with a “1”
  • save and exit from editor
  • fex2bin /boot/script.fex /boot/script.bin
  • reboot
  • you should see card1: sunxisndi2s at aplay -l
  • now I2S is working – that’s all for PlainDAC
  • download and use our control software for PlainDAC+ and DSP
  • available from the SOFTWARE page

 

 

Other

  • enable I2S
  • if you are using PlainDAC no further work here
  • use our control program if using PlainDAC+ and PlainDSP
  • available from the SOFTWARE page