Re: alsa with 2 soundcards: emu10k1 and intel8x0
From: Andreas Janssen (andreas.janssen_at_bigfoot.com)
Date: 12/26/04
- Next message: Jules: "Re: cheap bootable scsi controller"
- Previous message: Xan: "alsa with 2 soundcards: emu10k1 and intel8x0"
- In reply to: Xan: "alsa with 2 soundcards: emu10k1 and intel8x0"
- Next in thread: Xan: "Re: alsa with 2 soundcards: emu10k1 and intel8x0"
- Reply: Xan: "Re: alsa with 2 soundcards: emu10k1 and intel8x0"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 26 Dec 2004 15:20:03 +0100
Hello
Xan (<xan2@ono.com>) wrote:
> I have two soundcards in my system:
> SoundBlaster Live (emu10k1) and SiS onboard card (intel8x0).
> I have a DVD with the cable sound connected to SBLive.
>
> I want to have the possibility of choosing the two soundcards in any
> program that supports alsa (eg xmms) and that SBLive was my default
> soundcard of my system.
The second part is easy, although there are (at least) three ways to do
it. The default device normally is the one for wich the driver is
loaded first (index 0), unless you configure your system differently.
Check /proc/asound/cards:
andreas@sirius:~$ cat /proc/asound/cards
0 [Live ]: EMU10K1 - Sound Blaster Live!
Sound Blaster Live! (rev.8) at 0xe400, irq 18
1 [Bt878 ]: Bt87x - Brooktree Bt878
Brooktree Bt878 at 0xdddff000, irq 19
You can see that on my system, the SB Live! is the default device. To
influence this, you can:
- alter the sequence in which the drivers are loaded
- use the configuration file /etc/asound.conf, and add something like
this:
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
This will make the device with index 1 the default device
- tell the driver modules which index the device should have, e.g.
options snd_emu10k1 index=0
options snd_intel8x0 index=1
in your /etc/modprobe.conf or in some file in /etc/modprobe.d,
depending on which system your distribution uses to configure modules
for kernel 2.6. In my opinion, the last way is the most reliable one,
because even if the way the drivers are loaded changes (e.g. you
install hotplug), the cards still have the same index.
> Can you say me what steps I need to get it. I'm a novice. Please, put
> all steps (although these are trivial)
To change the output device in your applications, you need to configure
that programs or their output plugins. In xmms, you can select the
device by configuring the ALSA plugin.
> Now I have a 2.6.8rc2 kernel compiled with alsa support (here's my
> config file of kernel):
(please please, before posting some files, remove the parts that are not
important)
> CONFIG_SOUND=m
> CONFIG_SND=m
> [...]
> CONFIG_SND_EMU10K1=m
> CONFIG_SND_INTEL8X0=m
best regards
Andreas Janssen
-- Andreas Janssen <andreas.janssen@bigfoot.com> PGP-Key-ID: 0xDC801674 ICQ #17079270 Registered Linux User #267976 http://www.andreas-janssen.de/debian-tipps-sarge.html
- Next message: Jules: "Re: cheap bootable scsi controller"
- Previous message: Xan: "alsa with 2 soundcards: emu10k1 and intel8x0"
- In reply to: Xan: "alsa with 2 soundcards: emu10k1 and intel8x0"
- Next in thread: Xan: "Re: alsa with 2 soundcards: emu10k1 and intel8x0"
- Reply: Xan: "Re: alsa with 2 soundcards: emu10k1 and intel8x0"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|