howto install usb audio outpug on tonido2plug

Support for your TonidoPlug
pmcallihan
Super Tonidoid
Super Tonidoid
Posts: 36
Joined: Sat Oct 22, 2011 2:52 pm

howto install usb audio outpug on tonido2plug

Postby pmcallihan » Wed Dec 14, 2011 11:14 pm

Getting the tp2 audio enable is relatively easy if you can compile a kernel. Getting the usb-audio to play cleanly is more difficult. I'm currently play Christmas music on the tp2 using mpg123. It sounds good so maybe I've got right. I can understand using mpd with the tp2 audio, but I don't understand using squeezeserver and sqeezeplay to use tp2 audio. I don't see how sqeezeplay can work. I've installed the latest squeezeserver but I perfer minidlna or twonky as a media server. I haven't looked up using squeezeslave, maybe it works with tp2 audio. How about so help out there with explanations and good ideas.

If you try this procedure it is your responsibility.

Howto enable tonidoplug2 audio.

1) Use the tonidoplug2 kernel build howto down to step 14.

2) Modify the mv88f6281_gw_config.
make menuconfig
a) In the program cursor down to 'Device Drivers' and press 'return'
b) Within 'Device Drivers' cursor down to 'Sound card support' and press 'return'
c) Within 'Sound card support' cursor down to 'Advanced Linux Sound Architecture' and press 'return'
d) Within 'Advanced Linux Sound Architecture' cursor down to 'USB sound devices' and press 'return'
e) Within 'USB sound devices' cursor down to 'USB Audio/MIDI driver and press the 'space bar' until the selection indicates '<M>'
f) Within 'USB sound devices' press the 'tab' to select '<Exit>' and press return.
g) Repeat this process until the program asks 'Do you wish to save your new kernel configurations?' select '<Yes>' and press return.

3) Pickup the tonidoplug2 kernel build howto from step 15 and finish the procedure.

4) Reboot the tp2 with your disk containing the new kernel and connect you usb device. I would recommend using a power usb extender for the usb audio device.

5) Start a tp2 ssh shell and see if the driver is there by executing lsmod.
root@TonidoPlug2:~# lsmod
Module Size Used by
fuse 58320 1
snd_usb_audio 82576 3
snd_usb_lib 16440 1 snd_usb_audio
snd_rawmidi 22580 1 snd_usb_lib
snd_hwdep 7692 1 snd_usb_audio

6) Now let's add some resources
apt-get install libasound2-dev alsa-tools alsa-utils alsa-oss

7) Now edit alsa-base.conf
nano /etc/modprobe.d/alsa-base.conf
change the last line change the -2 to 0 as follows:
options snd-usb-audio index=0
save and exit

8) Create a new file asound.conf
nano /etc/asound.conf
--cut and paste this into it---
pcm.!default {
type plug
slave.pcm "softvol"
}
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0"
period_time 0
period_size 4096
buffer_size 131072
rate 50000
}
bindings {
0 0
1 1
}
}
pcm.dsnooper {
type dsnoop
ipc_key 1024
slave {
pcm "hw:0"
channels 2
period_time 0
period_size 4096
buffer_size 131072
rate 50000
}
bindings {
0 0
1 1
}
}
pcm.softvol {
type softvol
slave { pcm "dmixer" }
control {
name "Master"
card 0
}
}
ctl.!default {
type hw
card 0
}
ctl.softvol {
type hw
card 0
}
ctl.dmixer {
type hw
card 0
}
----end of insert ----

9) Load a music player
apt-get install mpg123 madplay

10) I know it sounds like windows, but reboot the tp2.

I hope this works for you. I on a sata drive and using a Creative Labs USB Sound Blaster.

Return to “TonidoPlug Support”

Who is online

Users browsing this forum: No registered users and 1 guest