From alsa-devel-owner@alsa.jcu.cz  Sun Nov 29 18:01:43 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 RAA05420;
	Sun, 29 Nov 1998 17:46:46 +0100
Date: Sun, 29 Nov 1998 17:46:46 +0100 (CET)
From: Jaroslav Kysela <perex@jcu.cz>
To: Abramo Bagnara <abbagnara@racine.ra.it>
cc: alsa-devel@alsa.jcu.cz
Subject: Re: Es1869 fist running version ...
In-Reply-To: <365EC7D9.57B00ED@racine.ra.it>
Message-ID: <Pine.LNX.3.96.981129173315.3605F-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 Fri, 27 Nov 1998, Abramo Bagnara wrote:

> Jaroslav Kysela wrote:
> > 
> > On Thu, 26 Nov 1998, Abramo Bagnara wrote:
> > 
> > > 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 :-))).
> > 
> 
> In the mean time what you suggest?
> Modify volume for/from both direction or something else?

OK. I prepared on CVS (development line 0.3.0pre1 - not ver-0-2-patches
branch - look to WWW) these things:

SND_MIXER_CINFO_CAP_RECORDVOLUME

This capability flags must be set to mixer channel->hw.caps if channel
supports separate record volume setup.

Callback set_volume_level should contain in left and right parameters
flag SND_MIX_RECORD_VOLUME. You need get record volume via macro
SND_MIX_VOLUME(x).

I added to alsa-lib two functions snd_mixer_channel_record_read() and
snd_mixer_channel_record_write(). These functions operates with record
volume, but flags member is same for output volume!!!

No ALSA application support separate record volume setup yet. Maybe you
should modify amixer or alsamixer for testing...

OSS mixer emulator returns to application only output volume, but sets
both output and input (record) volume together. If you need some change -
let me know.

							Jaroslav

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


