Re: dB gain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 29 May 2006, Jaroslav Kysela wrote:

> On Mon, 29 May 2006, Takashi Iwai wrote:
> 
> > Also, a bit more sensible names are preferred for new stuff.
> > "misc" sounds too ambiguous to me, and "info2" is...
> 
> Perhaps 'desc' like description or 'extra' is more appropriate.
> 
> Also, I'm not sure, if hint is the right behaviour. Probably, the better 
> way is to create a new identifier and ecapsulate min, max and step values 
> into 32-bit word, so we won't eat much memory and the information for 
> alsa-lib will be more abstract for your case. Of course, some hardware can 
> have non-continuous dB scale so special expressions must be in alsa-lib.

Replying myself:

For example, 32-bits can be separated to:

12-bits manimal value (0-4095) => 0.05dB => -154.75dB - 50dB
12-bits maximal value (0-4095) => 0.05dB => -50dB - 154.75dB
8-bits step value     (0-255)  => 0.05dB => 0-12.75dB

It will satisfy nicely requirements for both drivers and has plenty space
to store more wide ranges.

Also, handling of first value as mute can be specified as a new 
indentifier in the TLV tree.

						Jaroslav

-----
Jaroslav Kysela <perex@xxxxxxx>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs


_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux