The PI reconginzed the card right away, but I was getting static playing songs or using Pianobar (Pandora shell app). So I did a few steps to fix it
1) Demoted the onboard card to the second device by
Code: Select all
sudo nano/etc/modprobe.d/alsa-base.conf
Made the following entries in the file
#options snd-usb-audio index=-2
options snd_bcm2835=-2
exit
reboot
Code: Select all
dwc_otg.speed=1
Code: Select all
driver=alsa
dev=default
Code: Select all
pcm.!default {
type asym
playback.pcm "defaultplayback"
capture.pcm "defaultrec"
hint{ show on
description "default play and rec koko"
}
}
pcm.defaultrec {
type plug
slave {
pcm "hw:0,0"
rate 48000
channels 2
format S16_LE
}
hint{ show on
description "default rec koko"
}
}
pcm.defaultplayback{
type rate
slave.pcm mix1
slave.rate 48000
#Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz:
#converter "samplerate_best" # perfect: 16%cpu, maybe overkill
#converter "samplerate_medium" # almost perfect: 6%cpu
#converter "samplerate" # good: 4%cpu, definitely usable
#converter "samplerate_linear" # bad: 2%cpu, way better than default wine resampler
#converter "samplerate_order" # very bad: 2%cpu, like the default wine resampler
converter "samplerate"
hint{ show on
description "default play koko"
}
}
pcm.mix1 {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
rate 48000
periods 128
period_time 0
period_size 1024 # must be power of 2
buffer_size 65536
}
}
Slowly my PI is becoming a mini-media center I was looking for.