Home
last modified time | relevance | path

Searched refs:mindb (Results 1 – 1 of 1) sorted by relevance

/third_party/alsa-lib/src/control/
Dtlv.c237 int mindb, maxdb; in snd_tlv_convert_to_dB() local
238 mindb = tlv[SNDRV_CTL_TLVO_DB_MINMAX_MIN]; in snd_tlv_convert_to_dB()
244 *db_gain = mindb; in snd_tlv_convert_to_dB()
248 *db_gain = (maxdb - mindb) * (volume - rangemin) / in snd_tlv_convert_to_dB()
249 (rangemax - rangemin) + mindb; in snd_tlv_convert_to_dB()
254 int mindb = tlv[SNDRV_CTL_TLVO_DB_LINEAR_MIN]; in snd_tlv_convert_to_dB() local
257 *db_gain = mindb; in snd_tlv_convert_to_dB()
263 if (mindb <= SND_CTL_TLV_DB_GAIN_MUTE) in snd_tlv_convert_to_dB()
268 double lmin = pow(10.0, mindb/2000.0); in snd_tlv_convert_to_dB()