How to setup

Moderator: flatmax

Posts: 303
Joined: Sat Jul 23, 2016 11:39 pm

How to setup

Post by flatmax » Fri Apr 21, 2017 5:18 pm

This is a preliminary post for setting up the Audio Injector Octo sound card for the Raspberry Pi. I intend to implement a deb package which also installs an .asoundrc to allow arbitrary channel count playback and recording.

Easy automatic setup
Please download the following package and watch this video :
Audio Injector Octo sound card setup and installer v0.2
(3.39 KiB) Downloaded 105 times
Once you have downloaded and extracted this .deb file (default extraction location is Downloads), type the following command to install the sound card :

Code: Select all

sudo dpkg -i Downloads/audioinjector.octo.setup_0.2_all.deb
You will have to run this command from the terminal to make it work, because it requires user input to download the official latest Pi firmware.

Manual setup

Low level setup
Cut and paste the following code to a terminal. The code will get the latest Pi Linux Kernel (which support the Octo) and will setup your /boot/config.txt file :

Code: Select all

echo updating the kernel
sudo rpi-update

echo check the device tree overlay is setup correctly in the file /boot/config.txt ...
sudo bash -c "sed -i \"s/^\s*dtparam=audio/#dtparam=audio/\" /boot/config.txt"
cnt=`grep -c audioinjector-wm8731-audio /boot/config.txt`
if [ "$cnt" -eq "0" ]; then
        sudo bash -c "echo '# enable the sound card
dtoverlay=audioinjector-addons' >> /boot/config.txt"
After executing that script, you should be able to reboot and the Audio Injector Octo card should be working.

Your /boot/config.txt file should have these lines in it :

Code: Select all

If you wan to do this manually, then first update your kernel :

Code: Select all

sudo rpi-update
Next comment out the PWM audio and add the audioinjector overlay in the file /boot/config.txt :

Code: Select all

High level setup
Now that your card is running, you will want to allow the sound card to play between 1 and 8 channels and also record between 1 and 6 channels. Why ? you may ask .. because say you have a stereo audio file, you may want to play this out without converting it to 8 channels. To do this we need to create a file called the .asoundrc.

Save the following text to the file called '.asoundrc' in your home directory. If you don't know how to do that, the following is the file name to "save as"

Code: Select all

This is the content of that file :

Code: Select all

pcm.!default {
#       type hw
#       card 0
        type plug
        slave.pcm "anyChannelCount"

ctl.!default {
        type hw
        card 0

pcm.anyChannelCount {
    type route
    slave.pcm "hw:0"
    slave.channels 8;
    ttable {
           0.0 1
           1.1 1
           2.2 1
           3.3 1
           4.4 1
           5.5 1
           6.6 1
           7.7 1

ctl.anyChannelCount {
    type hw;
    card 0;
If you are having troubles setting up, then please post a new topic to this forum for help.
If you have had a positive experience with our products, could you please review them on Amazon - that would be a great help :


Who is online

Users browsing this forum: No registered users and 1 guest