Re: using the softvol plugin with min_dB > 0

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

 



On Tue, 13 Nov 2018 15:23:53 +0100,
Guillermo Rodriguez Garcia wrote:
> 
> Hi all,
> 
> I have a board with a tlv320aic3106 codec and a digital mic. The
> tlv320aic3106 does not support hardware gain for the digital mic, so I
> am using the softvol plugin to provide this via software.
> 
> I would like to setup softvol so that it applies a gain in a range
> that goes from approx +10dB to approx +40dB. The problem is that
> softvol only accepts negative values for min_dB, i.e. assumes that you
> *always* want to do attenuation, and that you might or might not want
> to have gain (max_dB can be zero or negative).
> 
> Is there any reason for this, or is it just historical ? (I am aware
> that the original softvol plugin only supported attenuation, and that
> support for gain was added later)

It's mostly a historical reason.

> Is it possible to setup softvol to accept a positive min_dB value ?

Sure.  You'd need to fix some more codes, not only removing the
negative min_dB check, though.


thanks,

Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



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

  Powered by Linux