harold95
Posts: 20
Joined: Thu Feb 06, 2014 11:28 pm
Location: Pawtucket Rhode Island USA

[solved] trying to get usb audio to work

Mon Oct 06, 2014 12:52 pm

i have a usb sound dongle, cmedia.

while i can see it gets recognized on boot up, i can't seem to get and sound out of it.

i made a couple changes to 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-i$
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modpro$
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && { /sbin/modpro$
# 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    <<< changed this from 2 to 0
# 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
options snd-usb-audio nrpacks=-0  <<<added this line
when i run alsa mixer, i can only see the bcm2835 sound device, which i think is the built in card for the pi.
my cmedia device is not present.

what am i missing?
i must have forgot to do something, but in all my searches, modifying the alsa-base.conf is the only thing i can see that needs to be done

thanks!
Harold
Last edited by harold95 on Mon Oct 06, 2014 4:47 pm, edited 1 time in total.
1. B pi, usb ext pwrd hdd 500gb, pwrd usb hub 2a (pwrs pi), wifi, vga adptr, wired kb/mouse, usb audio.
2. B pi, hdlss. adaptd for use as an IRLP node. IRLP rev 3 board wired to gpio, usb audio, Alinco DR135 2 meter ham radio(www.irlp.net)

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

Re: trying to get usb audio to work

Mon Oct 06, 2014 1:20 pm

That wants to be

Code: Select all

options snd-usb-audio index=0
not '-0'. Also, remove 'options snd-usb-audio nrpacks=-0' It's wrong and not needed. Reboot.

harold95
Posts: 20
Joined: Thu Feb 06, 2014 11:28 pm
Location: Pawtucket Rhode Island USA

Re: trying to get usb audio to work

Mon Oct 06, 2014 3:39 pm

thank you for the reply.

i did as you suggested, and then, rebooted.

the sound still comes out via the pie speaker output, not the cmedia usb dongle.

alsamixer still only shows the broadcom bcm2835 device, no other devices are present.

any ideas?

thank you.
Harold
1. B pi, usb ext pwrd hdd 500gb, pwrd usb hub 2a (pwrs pi), wifi, vga adptr, wired kb/mouse, usb audio.
2. B pi, hdlss. adaptd for use as an IRLP node. IRLP rev 3 board wired to gpio, usb audio, Alinco DR135 2 meter ham radio(www.irlp.net)

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

Re: trying to get usb audio to work

Mon Oct 06, 2014 4:06 pm

Ok, let's see the output from

Code: Select all

lsusb

Code: Select all

aplayer -l
and

Code: Select all

aplayer -L
I'd also check the

Code: Select all

dmesg
command, as it sounds like your device is not getting recognized by the OS.

harold95
Posts: 20
Joined: Thu Feb 06, 2014 11:28 pm
Location: Pawtucket Rhode Island USA

Re: trying to get usb audio to work

Mon Oct 06, 2014 4:46 pm

while you were posting that i found something on the web, a tutorial as it were.

http://computers.tutsplus.com/articles/ ... -mac-55876

basically, you comment out the line in alsa-base.conf that reads

Code: Select all

#options snd-usb-audio index=-0
however i left the line you suggested in:

Code: Select all

options snd-usb-audio index=0

rebooted and then all was well.

thanks fur ur help!
1. B pi, usb ext pwrd hdd 500gb, pwrd usb hub 2a (pwrs pi), wifi, vga adptr, wired kb/mouse, usb audio.
2. B pi, hdlss. adaptd for use as an IRLP node. IRLP rev 3 board wired to gpio, usb audio, Alinco DR135 2 meter ham radio(www.irlp.net)

Return to “Graphics, sound and multimedia”