Re: Globally set soundcard to use

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

 



Tassilo Horn schrieb:
> Hi,
>
> I've won a pair of wireless USB headphones. The USB dongle registers as
> card 1, device 0 and I can use them if I specify this card as option for
> a player. But normally I use a frontend to various music players which
> selects a player with respect to the file or stream type. It would be
> very inconvenient to change the parameters for each possible player
> whenever I plug on the dongle. So is it possible to set the default
> soundcard alsa uses globally, not specific for each player?
>
> Bye,
> Tassilo
>   
I am no alsa developer but this this worked on my openSUSE installation...

You edit your /etc/modprobe.d/sound to force which sound device belongs
to which card number.

In my case this looks like:

options snd-ca0106 index=0
options snd-usb-audio index=1

Where the SoundBlaster Live! 24 Bit (ca0106) is set to card 0, the
default card.
The Roland UM-1 usb midi interface (usb-audio) is set to card 1

Use the terminal command cat /proc/asound/cards to find the snd-xxxxx
driver names, in my example

simon@simons-pc:~> cat /proc/asound/cards
 0 [CA0106         ]: CA0106 - CA0106
                      Live! 7.1 24bit [SB0410] at 0xdc00 irq 5
 1 [UM1            ]: USB-Audio - UM-1
                      EDIROL UM-1 at usb-0000:00:07.3-2, full speed
simon@simons-pc:~>

On rebooting your PC the sound cards will be sorted in the desired order.

Ciao, Simon



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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