$5 Raspberry Pi Zero and USB Audio adapter
I got this little white USB audio adapter on Amazon from the_pi_hut.
The Raspberry Pi Zero has built in audio but no phone jack for you to plug in headsets. It still outputs audio via the HDMI to your monitor's built-in speakers.
But there are times when you need a separate sound card.
I have the C-Audio chipset based USB dongle and this one shown.
Both audio cards are recognised by the pi running raspbian. You can check this with alsamixer. Then press F6 and you'll see either USB audio or C-Audio. It'll come up second.
To change the order so that your USB card comes up first by default you need to create a single file.
Start by checking if you already have this file:
/etc/modprobe.d/alsa-base.conf
Just comment out all the entries.
Create this file:
/etc/asound.conf
Add these three lines:
defaults.ctl.card 1
defaults.pcm.card 1
defaults.timer.card 1
No need to reboot. Check again with alsamixer. Press F6 and you'll see your USB device as the first device.
Now test your sound. Run mpg123, mpg321, mplayer, aplay or omxplayer.
Recorded Dec 31 2015