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 |
On Sun, Feb 24, 2008 at 11:34 AM, Grant <emailgrant@×××××.com> wrote: |
21 |
> > > I have a USB sound card and an internal sound card in my laptop. Is |
22 |
> > > there a way to switch between them while the system is booted? Is |
23 |
> > > module loading/unloading via modprobe the best way to do it? |
24 |
> > > |
25 |
> > > - Grant |
26 |
> > > -- |
27 |
> > > gentoo-user@l.g.o mailing list |
28 |
> > > |
29 |
> > > |
30 |
> > |
31 |
> > Why switch between them when you can use them both at the same time as |
32 |
> > hw:0 and hw:1? |
33 |
> |
34 |
> Thanks Mark. After studying your config, here is mine: |
35 |
> |
36 |
> alias snd-card-0 snd-hda-intel |
37 |
> options snd-hda-intel index=1 |
38 |
> options snd-hda-intel model=acer |
39 |
> |
40 |
> alias snd-card-1 snd-usb-audio |
41 |
> options snd-usb-audio index=0 |
42 |
> |
43 |
> |
44 |
> alias sound-slot-0 snd-card-0 |
45 |
> alias sound-slot-1 snd-card-1 |
46 |
> |
47 |
> |
48 |
> alias /dev/mixer snd-mixer-oss |
49 |
> alias /dev/dsp snd-pcm-oss |
50 |
> alias /dev/midi snd-seq-oss |
51 |
> |
52 |
> |
53 |
> options snd cards_limit=2 |
54 |
> |
55 |
> I get sound from the USB card but not from the internal card |
56 |
> (snd-hda-intel). How can I tell the system to turn off the USB card |
57 |
> and turn on the internal card? |
58 |
> |
59 |
> - Grant |
60 |
> |
61 |
> |
62 |
> |
63 |
> |
64 |
> > # Alsa 0.9.X kernel modules' configuration file. |
65 |
> > # $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v |
66 |
> > 1.4 2004/11/16 01:31:22 eradicator Exp $ |
67 |
> > |
68 |
> > # ALSA portion |
69 |
> > alias char-major-116 snd |
70 |
> > |
71 |
> > # OSS/Free portion |
72 |
> > alias char-major-14 soundcore |
73 |
> > |
74 |
> > ## ALSA portion |
75 |
> > alias snd-card-0 snd-intel8x0 |
76 |
> > options snd-intel8x0 index=0 |
77 |
> > alias snd-card-1 snd-hdsp |
78 |
> > options snd-hdsp index=1 |
79 |
> > |
80 |
> > ## OSS/Free portion |
81 |
> > alias sound-slot-0 snd-card-0 |
82 |
> > |
83 |
> > |
84 |
> > # OSS/Free portion - card #1 |
85 |
> > alias sound-service-0-0 snd-mixer-oss |
86 |
> > alias sound-service-0-1 snd-seq-oss |
87 |
> > alias sound-service-0-3 snd-pcm-oss |
88 |
> > alias sound-service-0-8 snd-seq-oss |
89 |
> > alias sound-service-0-12 snd-pcm-oss |
90 |
> > |
91 |
> > alias /dev/mixer snd-mixer-oss |
92 |
> > alias /dev/dsp snd-pcm-oss |
93 |
> > alias /dev/midi snd-seq-oss |
94 |
> > |
95 |
> > # Set this to the correct number of cards. |
96 |
> > options snd cards_limit=2 |
97 |
> > mark@lightning ~ $ |
98 |
> -- |
99 |
> |
100 |
> |
101 |
> gentoo-user@l.g.o mailing list |
102 |
> |
103 |
> |
104 |
-- |
105 |
gentoo-user@l.g.o mailing list |