Easy automatic setup
Please download the following package and watch this video :
audioinjector.octo.setup_0.4_all.deb
Once you have downloaded 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.4_all.deb
One final step - it is strongly recommended to remove pulseaudio (you can always install it again later if you need it - not newer rasbian versions may not have the package installed - which apt will report to you) :
Code: Select all
sudo apt remove pulseaudio
Code: Select all
sudo reboot
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) :
Code: Select all
sed -i 's/\=volumealsa/\=REMOVEvolumealsa/' ~pi/.config/lxpanel/LXDE-pi/panels/panel
Code: Select all
sudo apt remove pulseaudio
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 AudioInjector.net sound card
dtoverlay=audioinjector-addons' >> /boot/config.txt"
fi
Your /boot/config.txt file should have these lines in it :
Code: Select all
#dtparam=audio=on
dtoverlay=audioinjector-addons
Code: Select all
sudo rpi-update
Code: Select all
#dtparam=audio=on
dtoverlay=audioinjector-addons
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
/etc/asound.conf
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;
}
Code: Select all
pcm.!default {
# type hw
# card 0
type plug
slave.pcm "anyChannelCount"
}
ctl.!default {
type hw
card 0
}