From alsa-user-owner@alsa.jcu.cz  Wed Sep 23 18:23:30 1998
Received: from entry.jcu.cz (IDENT:perex@entry.jcu.cz [160.217.1.111])
	by marvin.jcu.cz (8.9.1a/8.9.1) with SMTP id SAA01820;
	Wed, 23 Sep 1998 18:20:56 +0200
Date: Wed, 23 Sep 1998 18:20:56 +0200 (MET DST)
From: Jaroslav Kysela <perex@jcu.cz>
To: pedro.i.sanchez@altavista.net
cc: alsa-user@alsa.jcu.cz
Subject: Re: Two Sound Cards
In-Reply-To: <199809231606.MAA14376@web03.iname.net>
Message-ID: <Pine.LNX.3.96.980923181451.5005A-100000@entry.jcu.cz>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

On Wed, 23 Sep 1998 pedro.i.sanchez@altavista.net wrote:

> Hello,
> 
> I succesfully installed two sound blaster cards in my
> Linux box and I can send sound files to either of them
> using the aplay program.
> 
> I want to configure an application (speakfreely, which doesn't use the alsa
> API) to use card2 instead of card1, which is the default. My question
> is: What are the device filenames (AUDIO_IN, AUDIO_OUT) I have to use in
> order to have non-alsa-aware applications to work with my second sound
> card?

OK. ALSA OSS emulation uses for each soundcard bits 4-7 in minor device
number. These bits identifies soundcard, so second soundcard should be
accessible via these devices (for example):

crw--w--w-   1 root     root      14,  21 Jan  4  1998 /dev/dspW1
crw-rw-rw-   1 root     sys       14,  16 Apr 25  1995 /dev/mixer1

while first soundcard uses these devices:

crw--w--w-   1 root     root      14,   5 Jan  4  1998 /dev/dspW0
crw-rw-rw-   1 root     root      14,   0 Jul  6 14:44 /dev/mixer0

Simply add 16 to minor number of basic devices for first soundcard...

						Jaroslav

-----
Jaroslav Kysela <perex@jcu.cz>
Academic Computer Centre, University of South Bohemia
Branisovska 31, C. Budejovice, CZ-370 05 Czech Republic


