by BinaryJay » Wed Jan 19, 2011 2:46 am
Update. I got a fairly good deal on a second hand Sound Blaster X-Fi Surround 5.1 USB unit so I decided to buy it and use it as my output device for MPD on the Arch Linux ARM install. After some farting around with asound.conf, I'm happy to report that it is working absolutely great with the Pogoplug V2 and MPD using the Optical output to my receiver.
If anybody else ends up wanting to get one of these working, here is my asound.conf. Without these tweaks, there is a ton of stuttering and cracking/popping:
$this->bbcode_second_pass_code('', '
pcm.!default {
type plug
slave.pcm "softvol" #make use of softvol
}
# create softvol master channel
# see http://alsa.opensrc.org/index.php/How_to_use_softvol_to_control_the_master_volume
pcm.softvol {
type softvol
slave {
pcm "dmixer2" #redirect the output to dmix (instead of "hw:0,0")
}
control {
name "Master" #override the PCM slider to set the softvol volume level globally
card S51
}
}
# create stereo dmixer, because using the 6 channel one causes stutter if the channels are empty
pcm.dmixer2 {
type dmix
ipc_key 2343
slave {
pcm "hw:S51"
channels 2
period_time 0
period_size 4096
buffer_size 262144
rate 48000
}
}
pcm.dmixer6 {
type dmix
ipc_key 2342
slave {
pcm "hw:S51"
channels 6
period_time 0
period_size 4096
buffer_size 262144
rate 48000
}
}
')