Está en la página 1de 2

usb - alsa-base.conf missing in new Raspberry Pi ... http://superuser.com/questions/989385/alsa-base...

sign up log in tour help

_
Super User is a question and answer Here's how it works:
site for computer enthusiasts and
power users. Join them; it only takes a
minute:

Sign up Anybody can ask Anybody can The best answers are voted
a question answer up and rise to the top

alsa-base.conf missing in new Raspberry Pi Raspbian Jesse

I'm trying to make my Pi use an external USB sound card as a default.

All tutorials are telling me to edit /etc/modprobe.d/alsa-base.conf

However the version of Raspbian I have (pretty new build, I just installed it a week or two ago) doesn't have this fine - it's empty when
I try and edit it.

Does anyone know how to change the sound card boot priority now that this file is gone?

Thanks, Carl

usb raspberry-pi sound-card alsa

asked Oct 20 '15 at 18:38


Carl Hudson
33 1 1 3

4 Answers

The file your looking for is located in /usr/share/alsa/alsa.conf . Its not called
alsa-base.conf just alsa.conf

All the relevent text is in that file just run sudo nano /usr/share/alsa/alsa.conf change the
default sound card to 1 or whatever one you prefer obviously 0 is default so not that one i also
deleted the # from the line that says... load card-specific configuration files (on request)
and now i have the sound coming from my cirrus audio card running debian 8 jessie on ras pi2

edited Oct 22 '15 at 1:10 answered Oct 21 '15 at 19:11


Journeyman Geek ♦ Breeskeeper
93.7k 30 171 293 86 1

1 I've done a few quick formatting fixes. Perhaps a copy of the relevant part of the alsa config file would
make your answer even better. – Journeyman Geek ♦ Oct 22 '15 at 1:10

1 Isn't "load card-specific configuration files (on request)" a comment? – SILENT Dec 2 '15 at 1:45

It is indeed just a comment to explain the code block below it – Professor Sparkles Dec 14 '15 at 17:14

I had problems with this on recent versions of Raspbian (Jessie).

There is a file called aliases.conf in /lib/modprobe.d which contains the line options
snd-usb-audio index=-2 . That line overrides the /etc/modprobe.d/ files, so you need to
change that one. Comment out with a # the line options snd-usb-audio index=-2

1 de 2 21/11/16 06:53
usb - alsa-base.conf missing in new Raspberry Pi ... http://superuser.com/questions/989385/alsa-base...

In /usr/share/alsa/alsa.conf I un-commented “load card-specific configuration files (on


request)” and I also replaced the content of .asoundrc which is a hidden file in your home folder
with:

pcm.!default plughw:Device
ctl.!default plughw:Device

The downside of this solution is the desktop sound applet won't appear. So to control volume use
the alsamixer application or physical sound level buttons on the USB sound dongle.

References for this:

1. https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=124016&p=857433&
hilit=usb+audio#p857433
2. http://alsa.opensrc.org/Asoundrc#Default_PCM_device.

edited Feb 26 at 16:19 answered Dec 28 '15 at 5:08


leif81 Digitalfix
267 1 7 31 1

If you don't need analog audio then prevent the module from loading and set the USB headset as
the default device.

1. Disable analog audio.


Open /boot/config.txt and comment out dtparam=audio=on .
2. Set the USB audio device to the default device.
Open /lib/modprobe.d/aliases.conf and comment out the line options
snd-usb-audio index=-2

3. Reboot

edited Jun 17 at 1:04 answered Feb 26 at 17:33


leif81
267 1 7

After change alsa.conf ( defaults.ctl.card 1


defaults.pcm.card 1 ) and ( load card-specific configuration files (on request) ) you have
to modify your asoundrc file and put in:

pcm.!default { type hw card 0 }


pcm.default.card 1.

It will be ok

edited Nov 24 '15 at 10:06 answered Nov 22 '15 at 13:33


scai bouziat jacques
682 4 12 1

2 de 2 21/11/16 06:53

También podría gustarte