I changed the ordering of the soundcards, so the USB dongle would be "first" (and therefore the dafault). I edited /etc/modprobe.d/alsa-base.conf, with a command like:
Code: Select all
sudo nano /etc/modprobe.d/alsa-base.conf
Code: Select all
#options snd-usb-audio index=-2
Code: Select all
options snd-bcm2835 index=-2
How can one test this out? By playing an MP3 (with abraca, a nice GUI-based MP3 jukebox, much like Rhythmbox, but more lightweight).
I installed abraca and xmms2 (which abraca depends upon), with the command:
Code: Select all
sudo apt-get install abraca xmms2
Code: Select all
xmms2-launcher
Now launch abraca, and open an MP3 of your choosing. Press Play, and you should hear it out of your speakers. Close abraca, and the MP3 continues playing! This is because it's actually the xmms2 daemon which is playing the MP3. To Stop the MP3, you can launch abraca again and press Stop.
In conclusion, I look forward to the day when the Raspberry Pi's onboard sound "just works", and all GUI programs can utilize it with all the same ease as is experienced on, say, an Ubuntu PC.