1 |
> Grant, |
2 |
> If you want to do a complete switch then you would change your USB |
3 |
> card to index 0 and restart Als which would make the USB card the |
4 |
> default since card 0 is always the default for Alsa. On the other |
5 |
> hand, if you wanted to just leave the onboard card as default and send |
6 |
> audio from a specific application to the USB card you would tell the |
7 |
> application to use hw:1 explicity, either in the command line when you |
8 |
> start the app or in an application's config file. On my system I let |
9 |
> all my web/browest audio go to the onboard sound card but I send all |
10 |
> my CD audio directly to my good card using Aqualung and configuring it |
11 |
> from the command line. (Actually in my launcher.) |
12 |
> |
13 |
> to the best of my knowledge there has never been a way to simply |
14 |
> switch sound cards on the fly in Alsa. I've requested this sometime |
15 |
> back but the developers haven't shown any interest. |
16 |
> |
17 |
> Hope this helps, |
18 |
> Mark |
19 |
|
20 |
Hi Mark, |
21 |
|
22 |
Changing the index and restarting alsasound would be a great switching |
23 |
method but I can't get that to work. No matter which one I set to |
24 |
index=0 and which to index=1 the sound always comes out of the USB |
25 |
card. |
26 |
|
27 |
BTW, what sound card are you using? Here's mine, it's great: |
28 |
|
29 |
http://diyparadise.com/shop/index.php?main_page=product_info&cPath=2&products_id=82 |
30 |
|
31 |
- Grant |
32 |
|
33 |
|
34 |
> > > > I have a USB sound card and an internal sound card in my laptop. Is |
35 |
> > > > there a way to switch between them while the system is booted? Is |
36 |
> > > > module loading/unloading via modprobe the best way to do it? |
37 |
> > > > |
38 |
> > > > - Grant |
39 |
> > > > -- |
40 |
> > > > gentoo-user@l.g.o mailing list |
41 |
> > > > |
42 |
> > > > |
43 |
> > > |
44 |
> > > Why switch between them when you can use them both at the same time as |
45 |
> > > hw:0 and hw:1? |
46 |
> > |
47 |
> > Thanks Mark. After studying your config, here is mine: |
48 |
> > |
49 |
> > alias snd-card-0 snd-hda-intel |
50 |
> > options snd-hda-intel index=1 |
51 |
> > options snd-hda-intel model=acer |
52 |
> > |
53 |
> > alias snd-card-1 snd-usb-audio |
54 |
> > options snd-usb-audio index=0 |
55 |
> > |
56 |
> > |
57 |
> > alias sound-slot-0 snd-card-0 |
58 |
> > alias sound-slot-1 snd-card-1 |
59 |
> > |
60 |
> > |
61 |
> > alias /dev/mixer snd-mixer-oss |
62 |
> > alias /dev/dsp snd-pcm-oss |
63 |
> > alias /dev/midi snd-seq-oss |
64 |
> > |
65 |
> > |
66 |
> > options snd cards_limit=2 |
67 |
> > |
68 |
> > I get sound from the USB card but not from the internal card |
69 |
> > (snd-hda-intel). How can I tell the system to turn off the USB card |
70 |
> > and turn on the internal card? |
71 |
> > |
72 |
> > - Grant |
73 |
> > |
74 |
> > |
75 |
> > |
76 |
> > |
77 |
> > > # Alsa 0.9.X kernel modules' configuration file. |
78 |
> > > # $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v |
79 |
> > > 1.4 2004/11/16 01:31:22 eradicator Exp $ |
80 |
> > > |
81 |
> > > # ALSA portion |
82 |
> > > alias char-major-116 snd |
83 |
> > > |
84 |
> > > # OSS/Free portion |
85 |
> > > alias char-major-14 soundcore |
86 |
> > > |
87 |
> > > ## ALSA portion |
88 |
> > > alias snd-card-0 snd-intel8x0 |
89 |
> > > options snd-intel8x0 index=0 |
90 |
> > > alias snd-card-1 snd-hdsp |
91 |
> > > options snd-hdsp index=1 |
92 |
> > > |
93 |
> > > ## OSS/Free portion |
94 |
> > > alias sound-slot-0 snd-card-0 |
95 |
> > > |
96 |
> > > |
97 |
> > > # OSS/Free portion - card #1 |
98 |
> > > alias sound-service-0-0 snd-mixer-oss |
99 |
> > > alias sound-service-0-1 snd-seq-oss |
100 |
> > > alias sound-service-0-3 snd-pcm-oss |
101 |
> > > alias sound-service-0-8 snd-seq-oss |
102 |
> > > alias sound-service-0-12 snd-pcm-oss |
103 |
> > > |
104 |
> > > alias /dev/mixer snd-mixer-oss |
105 |
> > > alias /dev/dsp snd-pcm-oss |
106 |
> > > alias /dev/midi snd-seq-oss |
107 |
> > > |
108 |
> > > # Set this to the correct number of cards. |
109 |
> > > options snd cards_limit=2 |
110 |
-- |
111 |
gentoo-user@l.g.o mailing list |