Add USB audio (playback and mic) support to Raspberry Pi

Plug in USB audio card and boot Pi

dmesg | grep cm109
dmesg | grep Headphone
dmesg | grep C-Media
dmesg | grep General
dmesg | grep Jabra (*)

On Raspbian Stretch:

sudo nano /usr/share/alsa/alsa.conf

  1. defaults.ctl.card 0
  2. defaults.pcm.card 0

change 0 to 1


speaker-test -c2
sudo apt-get unstall mpg123

List audio devices

aplay -l

To force a specific device/sub-device use the command below

speaker-test -c2 -D plughw:1,0
aplay –device=hw:1,0 test.wav

alsamixer – c 1


arecord –device=hw:1,0 –format S16_LE –rate 44100 -c1 test.wav
aplay –device=hw:1,0 test.wav

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.