RE: [linux-audio-user] Does Alsa support multiple sound cards at the same time?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: RE: [linux-audio-user] Does Alsa support multiple sound cards at the same time?
From: Mark W. Knecht (mknecht_AT_controlnet.com)
Date: Fri Aug 30 2002 - 20:40:48 EEST


Fernando,
   Great info. Thanks. That will make this weekend more productive I think.

Cheers,
Mark

-----Original Message-----
From: linux-audio-user-admin_AT_music.columbia.edu
[mailto:linux-audio-user-admin_AT_music.columbia.edu]On Behalf Of Fernando
Pablo Lopez-Lezcano
Sent: Friday, August 30, 2002 10:34 AM
To: linux-audio-user_AT_music.columbia.edu
Subject: Re: [linux-audio-user] Does Alsa support multiple sound cards
at thesame time?

> In the machine I'm setting up right now to work with Ardour, I'd like to
> have two sound cards - an Audiophile 2496 for MIDI I/O and audio output to
> speakers, and a Hammerfall Light for interfacing to external audio
hardware
> via ADAT & s/pdif. (Preamps, effects and other computers)
>
> Is this supported under Alsa? I am thinking that snd_index 0-7 implies
> Alsa supports multiple cards, but I'm just checking before doing a lot of
> work for nothing.
>
> Also, does alsaconf support this directly, or do I need to edit something
> like /etc/modules.conf by hand?

It is supported (up to 8 cards by default, I think - if you
need more you could change a #define and recompile :-). The
current 0.9 alsaconf does not support setting up more than one
so its back to editing modules.conf as you had guessed.

This is an example configuration for two cards:

# --- ALSA configuration
alias char-major-116 snd
alias char-major-14 soundcore
alias snd-card-0 snd-ice1712
alias snd-card-1 snd-ens1370
# --- OSS compatibility
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
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
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss
# --- Options
options snd snd_major=116 snd_cards_limit=2 snd_device_mode=0666
snd_device_gid=
0 snd_device_uid=0
options snd-ice1712 snd_index=0 snd_id=OmniIO
options snd-ens1370 snd_index=1 snd_id=Ensoniq
# --- Keep modules from being autocleaned
add options -k snd-card-0
add options -k snd-card-1
# --- ALSA configuration END

I think it should be easy to adapt to other card combinations.
-- Fernando


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri Aug 30 2002 - 20:45:47 EEST