From alsa-devel-owner@alsa.jcu.cz  Thu Nov 26 18:51:36 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 SAA01500;
	Thu, 26 Nov 1998 18:51:17 +0100
Date: Thu, 26 Nov 1998 18:51:17 +0100 (CET)
From: Jaroslav Kysela <perex@jcu.cz>
To: Abramo Bagnara <abbagnara@racine.ra.it>
cc: alsa-devel@jcu.cz
Subject: Re: Es1869 fist running version ...
In-Reply-To: <365D8C9F.E99A3DD9@racine.ra.it>
Message-ID: <Pine.LNX.3.96.981126183535.4393C-100000@entry.jcu.cz>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

On Thu, 26 Nov 1998, Abramo Bagnara wrote:

> Jaroslav Kysela wrote:
> > 
> > On Tue, 24 Nov 1998, Christian Fischbach wrote:
> >
> > .......
> > 
> > > Can I control the mayor / minor numbers in any way, because I like to have
> > > two mixers: /dev/mixer for playbackmixer and /dev/mixer1 for recordmixer.
> > 
> > These things are managed by highter levels. You should register second
> > mixer for soundcard by simply:
> > 
> >         snd_mixer_register(mixer, 1);
> > 
> > Where 1 is mixer device number... Zero is first mixer for soundcard, one
> > is second mixer for soundcard...
> > 
> > Note: Second mixer cannot be accessed from OSS compatible programs...
> > 
> >                                                 Jaroslav
> > 
> 
> I think is better to have 3 mixer device:
> /dev/mixer0	To change both record and playback volume
> /dev/mixer1	To change only playback volume
> /dev/mixer2	To change only record volume
> 
> In this way OSS compatible program will work anyway and other programs
> can use ALSA power ;-)
> Obviously only if they known our mixers numbering convention...
> 
> Perhaps it's better again to add to ALSA the notion of record mixer
> separated from the playback mixer.
> What do you think about this?

Yes, this is probably clean way - only one mixer device for ALSA and OSS.
Please, wait for 0.2.0 final and I'll add something like 
SND_MIXER_CINFO_CAP_RECMIX and SND_MIXER_FLG_RECMIX to ALSA interface for
0.3.0 driver. This will allow use only one mixer for both (playback &
record volume setup). I can add to OSS emulation that volume is for/from
both directions - lowlevel code can know nothing about OSS emulation.

Maybe I'll create some branch on CVS for 0.2.0 (seems that documentation
for release 0.2.0 final is a little bit delayed) and begin work on 0.3.0
tomorrow (we will have two development trees without stable release
between for a while :-))).

						Jaroslav

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



