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

Re: Two sound cards?



On Fri, Jan 10, 2003 at 12:08:57PM -0500, David Z Maze wrote:
> Qian Gong <q.gong@tue.nl> writes:
> > I have VIA on board sound and an additional Xwave 4000 PCI sound card.
> > The first one (VIA) is supported by kernel (built-in) and for xwave 4000
> > I use alsa-0.9. The confusing thing is which card is connected to
> > /dev/dsp0 and which to /dev/dsp1. How can I configure this and let
> > application (e.g. xmms) use specified sound device? Thanks a lot.
> 
> If you're using ALSA for one, I'd use ALSA for both; it seems like
> it'd be clearer.  You can definitely specify within ALSA which card is
> which by changing which card snd-card-(n) points to in
> /etc/modutils/alsa.
> 

Thanks. Maybe using ALSA for both is better. But now the configuration is
VIA support built into the customized kernel. And later I added another
sound card and compiled ALSA driver fot it. If I disable the on board
sound from BIOS, the xwave 4000 PCI sound card works well using /dev/dsp.
If I enable the on board sound, /dev/dsp is used by on board sound since
it's early seen by the kernel. lsmod shows the ALSA modules for xwave 4000
are loaded. But I don't know by whitch device name /dev/dsp? to access
the card. I tried all /dev/dsp1-3, but failed with "No such device". Any
idea? 

Qian
----Addtional info-----
$ cat /proc/asound/cards
0 [card0          ]: ALS4000 - Avance Logic ALS4000
                     Avance Logic ALS4000 at 0xec00, irq 10

$ cat /etc/modutils/alsa
alias char-major-116 snd
alias snd-card-1 snd-als4000
alias char-major-14 soundcore
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-pcm-oss
alias sound-service-1-8 snd-seq-oss
alias sound-service-1-12 snd-pcm-oss
options snd snd_major=116 snd_cards_limit=2 snd_device_mode=0660 snd_device_gid=29 snd_device_uid=0

I also tried the following file:
$ cat /etc/modutils/alsa
alias char-major-116 snd
alias snd-card-0 snd-als4000
alias char-major-14 soundcore
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-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
options snd snd_major=116 snd_cards_limit=1 snd_device_mode=0660 snd_device_gid=29 snd_device_uid=0



Reply to: