Plugable USB

Raspberry Pi USB Audio Connection

by Lewis Loflin

YouTube video Raspberry Pi USB Audio Connection

Note: this will not work on the newest version of Raspbian.

Here we will explore how to connect a Raspberry Pi to a USB audio device. The advantage of doing this is less load on the RPi processor and I believe better performance. The same programming modification worked for a Plugable USB adaptor with the added bonus of a mono microphone input. This also worked on my generic USB speakers as shown in the above video.

(Above) The Plugable adaptor was purchased from Amazon. My setup used the Raspberry Pi 2 operating Raspbian.

Linux aplay command in terminal.

To get started, plug your USB-AUDIO into the Pi and run the following command: "aplay -l" in a terminal. See above.

Within the output you should find: [USB Audio Device], device 0: USB Audio [USB Audio], etc. which means the Pi has recognized the USB-AUDIO adapter be it the Plugable or USB speakers. Now we can move on to configuration. If this is not here there's some problem that will have to be corrected.

geany editor with alsa-base.conf file.

raspberry@pi sudo geany /etc/modprobe.d/alsa-base.conf

Change to :

options snd-usb-audio index=0

This really doesn't seem to work:

options snd_bcm2835 index=1

Then reboot.

Alsamixer on Raspberry Pi.

Open a terminal program and type "alsamixer" and the above should open. Use your up/down, left/right keys to control audio and microphone level. If using USB speakers there will be no microphone control.

Alsa Mixer GUI on Raspberry Pi.

Above is the graphical version of Alsa-Mixer if installed will be under audio.