altering the order of sound cards

crimsun at fungus.sh.nu crimsun at fungus.sh.nu
Tue Apr 12 16:08:46 UTC 2005


On Tue, Apr 12, 2005 at 10:45:41AM -0500, Ian wrote:
> I have 2 sound cards in my machine (1 PCI, 1 onboard)...how can I alter the order they are used
> such as hw:0,0 goes to hw:1,0 and vice versa... There is no alsaconfig so how can i make this type
> of alteration?

Currently in Hoary the method is not dynamic; you must reinsert the ALSA
modules after making the change. Essentially you must tell ALSA to
consider the driver for your 2nd card at a lower priority than the driver
for your 1st card.

For instance, suppose you have two sound devices, an sblive and a usb. If
you prefer the sblive to be your primary card (hw:0), then you would do:

$ echo "options snd-usb-audio index=-2" \
  | sudo tee -a /etc/modprobe.d/alsa-base

(the \ is only used to denote a linebreak here, in reality the entire
command is one line)

Then,

$ sudo /etc/init.d/alsa force-reload

In the future, if you wish to restore the original card order, then
simply remove the line you just added from /etc/modprobe.d/alsa-base and
force-reload again.

Thanks,
Daniel

-- 
Daniel T. Chen          crimsun at fungus.sh.nu
GPG key:   www.sh.nu/~crimsun/pubkey.gpg.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050412/07ef18f8/attachment.sig>


More information about the ubuntu-users mailing list