Re: How to set default sound card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Did you test the newer slot method too?

[rocketmouse@archlinux ~]$ cat /etc/modprobe.d/alsa-base.conf
# ALSA module ordering
options snd slots=snd_hdspm,snd_ice1712,snd_ice1712

"Problems with alsa.conf and udev
On modern GNU/Linux systems, udev takes care of discovering hardware
and loading/unloading Alsa. There is one drawback to udev. Udev will
load Alsa modules in an undefined order. After each reboot or
plugging/unplugging a device, there is no guarantee that a device is
renamed using the same hw:x,y numbers. For example, if you have two USB
devices on your systems, for example an Audeon USB and an Edirol UA-25,
after each reboot, a card can be "hw:0,0" and the other "hw:1,0", each
time randomly.

/etc/init.d/alsasound is an udev wrapper that will take care of loading
the ALSA modules during booting. But even with it, a few problems may
still occurs.

Reordering the driver for a particular card

You can tell /etc/modprobe.d/alsa.conf (or alsa-base.conf, or similar)
to keep a driver in out of the default slot. For example, if you have a
a Creative Labs soundcard driven by the "emu10k1" driver and you don't
want it to be your default card 0, append

options snd slots=,snd-emu10k1
Note the comma in this line that moves the driver to the second slot.

Module ordering problems

It may be that the sound card order is wrong after booting, but running
(as root)

/etc/init.d/alsasound restart
or

/sbin/alsa force-reload
gives the wanted card order.

This can happen because udev is loading some sound driver before
alsasound, and alsasound gets confused. A restart will first unload all
the sound modules and when restarting, alsasound will work as expected.

The solution is to blacklist the module(s) that udev is loading before
alsasound (Typically, the one you get as sound card 0 after booting).
You must do this into

/etc/modprobe.d/blacklist.conf
You must also report it as a bug to your distribution." -
http://alsa.opensrc.org/MultipleCards#How_to_choose_a_particular_order_for_multiple_installed_cards

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user




[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux