Ok, trying to figure out the volume scales.... maybe someone knows math
How do I do gain to db? I can't figure out how DECLARE_TLV_DB_SCALE arrives at db value. Can't find it in the alsa sources.
Code Select
DECLARE_TLV_DB_SCALE(name, min, step, mute) \
#define SOC_SINGLE_TLV ( xname,
reg,
shift,
max,
invert,
tlv_array
)
static const DECLARE_TLV_DB_SCALE(digital_tlv, -7150, 50, 0);
SOC_SINGLE_TLV("Capture Digital Volume", ML26124_RECORD_DIG_VOL, 0,
0xff, 1, digital_tlv),
SOC_SINGLE_TLV("Playback Digital Volume", ML26124_PLBAK_DIG_VOL, 0,
0xff, 1, digital_tlv),
How do I do gain to db? I can't figure out how DECLARE_TLV_DB_SCALE arrives at db value. Can't find it in the alsa sources.