scraff
Posts: 15
Joined: Tue Jun 30, 2015 10:21 am

USB Sound not working

Wed Jul 29, 2015 8:34 pm

Hi all. I've managed to get the sound working using espeak and Python and the audio out jack. I've just bought a USB sabrent sound card. But cannot get it to work. I've done

Code: Select all

sudo amixer cset numid=3 1
I tried this:
viewtopic.php?t=30057

Then tried this:
http://computers.tutsplus.com/articles/ ... -mac-55876
Near the end it says to do:

Code: Select all

$ amixer
but it still shows just the PCM info. Like the usb card isn't being detected.

Is there something I'm missing?? Thanks

User avatar
Douglas6
Posts: 4739
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: USB Sound not working

Wed Jul 29, 2015 10:38 pm

Post the contents of /etc/modprobe.d/alsa-base. Then the results of 'aplay -L'

scraff
Posts: 15
Joined: Tue Jun 30, 2015 10:21 am

Re: USB Sound not working

Thu Jul 30, 2015 12:00 am

OK will do that as soon as I can some time tomorrow. Thanks

scraff
Posts: 15
Joined: Tue Jun 30, 2015 10:21 am

Re: USB Sound not working

Fri Jul 31, 2015 6:39 pm

Ok so here is the
$ aplay -l

Code: Select all

pi@raspberrypi ~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Device [USB Audio Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
sudo nano /etc/modprobe.d/alsa-base.conf

Code: Select all

# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd$
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modp$
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modp$
# Keep snd-pcsp from beeing loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=0
options snd-usb-audio nrpacks=1
#HAVE ALSO TRIED IT WITHOUT THE ABOVE LINE

options snd-bcm2835 index=1
#options snd-bcm2835 index=-2 #HAVE ALSO TRIED THIS LINE IN PLACE OF THE ABOVE

# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
$amixer

Code: Select all

pi@raspberrypi ~ $ amixer
Simple mixer control 'PCM',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback -10239 - 400
  Mono: Playback 400 [100%] [4.00dB] [on]
Thanks!

User avatar
Douglas6
Posts: 4739
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: USB Sound not working

Fri Jul 31, 2015 6:52 pm

Looks good.

Code: Select all

aplay /usr/share/sounds/alsa/Front_Center.wav
should play a short clip to the USB device.

scraff
Posts: 15
Joined: Tue Jun 30, 2015 10:21 am

Re: USB Sound not working

Fri Jul 31, 2015 9:20 pm

Hi thanks for your fast reply. I have tried that and it just won't work. When I switch the speaker to the jack on the RPi it plays but just won't through the USB. Any ideas? It's driving me mad haha.

Thanks

scraff
Posts: 15
Joined: Tue Jun 30, 2015 10:21 am

Re: USB Sound not working

Sun Aug 02, 2015 8:36 am

Anyone got any ideas? Thanks in advance.

jehutting
Posts: 139
Joined: Sun Feb 15, 2015 8:37 am
Location: The Netherlands

Re: USB Sound not working

Tue Aug 04, 2015 2:50 pm

Maybe this will help

viewtopic.php?f=27&t=16013

or

Code: Select all

sudo addgroup <user> audio

Cole1717
Posts: 29
Joined: Mon Mar 16, 2015 10:44 pm

Re: USB Sound not working

Tue Aug 25, 2015 10:43 pm

I'm having the exact same issue but that didn't work. I was already an added user.

jehutting
Posts: 139
Joined: Sun Feb 15, 2015 8:37 am
Location: The Netherlands

Re: USB Sound not working

Wed Aug 26, 2015 5:57 am

Can you post the output of the following commands

Code: Select all

$ cat /proc/asound/cards
$ amixer -c 0 contents
$ amixer -c 1 contents
Should give some info about your setup.

Are you using the correct amixer numids for the Playback Route/Switch/Volume?

Return to “Graphics, sound and multimedia”