Skip to content

Octo sound card - 8 channel output and 6 channel input sound cards

Notifications You must be signed in to change notification settings

Audio-Injector/Octo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

If you want to discuss these products, or topics around hearing, acoustics and audio, join the audio injector email list.

Easy automatic setup

Please download the following package and watch this video :

https://github.com/Audio-Injector/Octo/raw/master/audioinjector.octo.setup_0.4_all.deb

NOTE : no need to extract the deb file any more, simply install it.

Once you have downloaded the .deb file, type the following command to install the sound card :

sudo dpkg -i Downloads/audioinjector.octo.setup_0.4_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.

One final step - it is strongly recommended to remove pulseaudio (you can always install it again later if you need it) :

sudo apt remove pulseaudio

At this point, just reboot as you normally would, I like to do it from the command line sometimes :

sudo reboot

Thats it - you should be setup.

Manual setup

You don't need to do this if you have followed the "Easy audomatic setup" section.

Before you setup the Octo

Rasbian pixel's lxpanel doesn't play nice with ALSA, it has a nasty problem where it clobbers .asoundrc files as it sees fit (and they don't seem to want to fix this problem, despite various issues). To fix this we disable the volume plugin like so (for the pi user) :

sed -i 's/\=volumealsa/\=REMOVEvolumealsa/' ~pi/.config/lxpanel/LXDE-pi/panels/panel

NOTE: newer distributions have removed volumealsa from the panel file and have also moved the panel file to the location : /etc/xdg/lxpanel/LXDE/panels/panel

Further, pulseaudio seems to cause strange problems when interfacing ALSA directly, so we remove it - note you can install it again later if for whatever reason you think you need it (pulseaudio has also been removed from more recent versions of rasbian - but the following command doesn't hurt if you don't have it !) :

sudo apt remove pulseaudio

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 :

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 AudioInjector.net sound card
dtoverlay=audioinjector-addons' >> /boot/config.txt"
fi

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 :

#dtparam=audio=on
dtoverlay=audioinjector-addons

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

sudo rpi-update

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

#dtparam=audio=on
dtoverlay=audioinjector-addons

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"

/etc/asound.conf

This is the content of that file :

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;
}

Finally, also ensure that your .asoundrc is using the anyChannelCount plugin, paste the following to the file ~/.asoundrc :

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

ctl.!default {
        type hw
        card 0
}

If you are having troubles setting up, then please post to a relevant issue to get help.

About

Octo sound card - 8 channel output and 6 channel input sound cards

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages