[alsa-devel] ASoC: How to declare volume TLV dB scale?
Sergej Sawazki
ce3a at gmx.de
Sat Jun 13 12:45:21 CEST 2015
On Sat, 13 Jun 2015 12:29:35 +0200, Clemens Ladisch wrote:
> Sergej Sawazki wrote:
>> On Sat, 13 Jun 2015 09:15:49 +0200, Takashi Iwai wrote:
>>> And you need to implement the ctl get/put callback to revert the value
>>> as (0x3ff - raw value). An decrement value isn't supposed to work.
>
> If you're using one of the SOC_xxx_TLV macros, you would set the 'invert'
> parameter.
>
>> I am getting the expected dB scaling with:
>> DECLARE_TLV_DB_MINMAX_MUTE(vol_tlv, -12800, 0)
>> does it make sense?
>
> Yes. (-128 would have been -1.28 dB.)
>
Thanks.
Regards,
Sergej
More information about the Alsa-devel
mailing list