From alsa-devel-owner@alsa.jcu.cz  Tue Feb  9 11:12:03 1999
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 LAA08301;
	Tue, 9 Feb 1999 11:08:18 +0100
Date: Tue, 9 Feb 1999 11:08:17 +0100 (CET)
From: Jaroslav Kysela <perex@jcu.cz>
To: =?iso-8859-1?Q?Paco_Andr=E9s_Verd=FA?= <pandres@dragonet.es>
cc: alsa-devel@alsa.jcu.cz
Subject: Re: Values for the dB fields in snd_stru_mixer_channel_hw ?
In-Reply-To: <Pine.LNX.3.96.990208205217.249A-100000@Trantor.Trnet.org>
Message-ID: <Pine.LNX.3.96.990209105938.2587B-100000@entry.jcu.cz>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=ISO-8859-2
Content-Transfer-Encoding: 8bit
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

On Mon, 8 Feb 1999, [iso-8859-1] Paco Andrs Verd wrote:

> Hi,
> 
>   I'm developing a driver for Guillemot MaxiSound soundcards. At this moment
> the driver is working, although it still needs a lot of work.
> 
>   One of the problems I have is that I don't know what values i should
> put in the 'min_dB', 'max_dB' and 'step_dB' fields of the
> 'snd_stru_mixer_channel_hw' struct, the card's documentation does not
> specify these values for almost any channel, and for some of the mixer
> channels I've added (i.e.- Surround Delay) it doesn't make sense.
> 
>   Should I fill these fields with random/guessed values ?, Should I set them
> to 0 ?.

For mixer controls which doesn't support dB range values should be always
zero. Otherwise I recommend set dB values to guessed (for example from
-46dB to 0dB with step dependend on range). If you use zero values,
an application won't show dB ranges and cannot set the volume in
the decibels. I think that some functionality is always better than
none functionality.

							Jaroslav

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


