Main > Raspberry Pi & Dev Board
R-Pi 2 model B USB sound issue
Jefferson:
The Pi analog jack sound is crunchy, hissy, terrible. My supply has the ferrite bead. So I ordered a cheap USB sound adapter on amazon (http://smile.amazon.com/gp/product/B001MSS6CS?psc=1&redirect=true&ref_=oh_aui_detailpage_o00_s00)
...and it sounds much better right out of the gate, HOWEVER, it only works on the Attract Mode frontend menu. The games themselves (mame4all) are now silent. I've mixed and matched various techniques, the only other result I can get is where the front end has sound, but the games will not launch. I see the desktop for a split second, then I'm back in the frontend. Strange.
I am able to detect it via LSUSB
I'm unable to select it for sound output in the LXDE task bar
I am able to find it and affect levels using alsamixer
In /etc/modprobe.d/alsa-base.conf, I've commented this line
options snd-usb-audio index=-2
...but no dice (frontend sound only)
I've left it uncommented
...but no dice (frontend sound only)
I've also changed the "-2" to "0"
...but no dice (no sound at all)
I've tried to blacklist the onboard sound card in /etc/modprobe.d/also-base-blacklist.conf with:
blacklist snd_bcm2835
(and "blacklist snd-bcm2835", with the hyphen, to be safe)
If I use this technique:
-with unchanged "options snd-usb-audio index=-2" , I get frontend sound only
-with change "options snd-usb-audio index=0" , I get frontend sound only
-with commented "options snd-usb-audio index=-2" , I get no sound at all
Finally I discovered /root/.asoundrc
wherein I can apparently change the default sound device. It's normally card 1. My "C-Media UCB Audio Device" is card 0. There are two occurrences like so:
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
Even as I type this, I might just be getting lost, but it seems like the card # changes on reboot depending on the techniques above. When I restarted with an unchanged alsa-base.conf (options snd-usb-audio index=-2) and an unblacklisted also-base-blacklist.conf ... my .asoundrc now shows the card as 0. Does that sound right?
I'm starting to wonder if there are sound settings for mame4all that I haven't been able to find. That would work for me as I have no other sound sources.
Has anyone stumbled into the magic combo?
Jefferson:
BTW The rom crashing results came from me combining the top techniques with changes to the .asoundrc file
nitrogen_widget:
Maybe this will help?
http://computers.tutsplus.com/articles/using-a-usb-audio-device-with-a-raspberry-pi--mac-55876
The DietPi Distro is a cut down raspbian so the above guide on setting up a USB soundcard should work.
Especially the part where you pick the default sound.
robboman:
I noticed how bad the analog audio jack was too. My solution was to use HDMI audio, in part because I also needed VGA output for my arcade monitor.
So I plugged in one of these:
Audio is nice and clean from the analog headphone jack on the converter. While I had to edit boot/config.txt to get SVGA video to work, I didn't have to do anything special for audio, it just works.
For anyone else struggling with noisy audio.. I'll also mention that I had terrible, show-stopper noise issues with my old power supply. I plugged in a new one and the noise was gone.
robboman:
Here's another potential solution. Overkill for retro gaming, but it's only about 30 bucks and you can get very high end audio out of a PI this way:
http://www.suptronics.com/Xseries/x400.html
This board also has 2x 20w power amp on board. That's more than enough power to connect typical arcade cab speakers and drive them directly.
Navigation
[0] Message Index
[#] Next page
Go to full version