At Tue, 14 May 2002 11:21:54 +1000, Steve Downing wrote: > At Monday, 13 May 2002, Erik de Castro Lopo <[EMAIL PROTECTED]> wrote: > >On Mon, 13 May 2002 18:38:23 +1000 > >"Scott Ragen" <[EMAIL PROTECTED]> wrote: > >> I have two sound cards running in my machine, and both of them > work fine, > >> but I can only get one working at a time, by changing the alias > sound-slot > >> (soundcard driver) in modules.conf > > > >That may be possible, but I unfortunately I can't help you with that.
[sorry, lost original mail so replying to an intermediate post] i have two sound cards in the machine i'm writing this email on. i have used them both with OSS, both with ALSA and one each (my preferred setup). assuming you can get the hardware to stop stepping on each others address spaces (i found this impossible with win95 pnp setup, but almost trivial with linux isapnp), its very straightforward: assuming they require different sound drivers, all you do is alias "sound-slot-0" to one driver, and "sound-slot-1" to the second driver. you then get a /dev/dsp (symlinked to /dev/dsp0) and a /dev/dsp1. ditto for the other audio devices (/dev/mixer1, etc). for example, the relevant modules.conf section from my (old version) ALSA setup is: # --- ALSACONF verion 0.4.1 --- alias char-major-116 snd alias char-major-14 soundcore alias snd-card-0 snd-card-sb16 alias sound-slot-0 snd-card-0 alias sound-service-0-0 snd-mixer-oss alias sound-service-0-1 snd-seq-oss alias sound-service-0-3 snd-pcm1-oss alias sound-service-0-12 snd-pcm1-oss alias snd-card-1 snd-card-interwave alias sound-slot-1 snd-card-1 alias sound-service-1-0 snd-mixer-oss alias sound-service-1-1 snd-seq-oss alias sound-service-1-3 snd-pcm1-oss alias sound-service-1-12 snd-pcm1-oss options snd snd_major=116 snd_cards_limit=2 snd_device_mode=0660 snd_device_gid=29 snd_device_uid=0 options snd-card-sb16 snd_index=1 snd_id=sb16 snd_port=0x220 snd_mpu_port=0x330 snd_irq=5 snd_dma8=1 snd_dma8_size=64 snd_dma16=5 snd_dma16_size=128 snd_mic_agc=0 options snd-card-interwave snd_index=2 snd_id=gus snd_port=0x240 snd_irq=11 snd_dma1=6 snd_dma1_size=128 snd_dma2=7 snd_dma2_size=128 snd_joystick_dac=0 snd_midi=0 note the various sound-slot-<n> and sound-slot-service-<n>-<minor number> alia. you'll want a different, but similar (and simpler) setup for OSS. the easy way is to just start using the new devices and watch your syslogs for the error messages logged by kerneld/modprobe when the kernel tries to set them up. -- - Gus -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
