Skip to content

Commit 6d6bc54

Browse files
Srinivas-Kandagatlabroonie
authored andcommitted
ASoC: codecs: wcd9335: Set digital gain range correctly
digital gain range is -84dB min to 40dB max, however this was not correctly specified in the range. Fix this by with correct range! Fixes: 8c4f021 ("ASoC: wcd9335: add basic controls") Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20201028154340.17090-2-srinivas.kandagatla@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent fc0522b commit 6d6bc54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/codecs/wcd9335.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ static const char * const sb_tx8_mux_text[] = {
618618
"ZERO", "RX_MIX_TX8", "DEC8", "DEC8_192"
619619
};
620620

621-
static const DECLARE_TLV_DB_SCALE(digital_gain, 0, 1, 0);
621+
static const DECLARE_TLV_DB_SCALE(digital_gain, -8400, 100, -8400);
622622
static const DECLARE_TLV_DB_SCALE(line_gain, 0, 7, 1);
623623
static const DECLARE_TLV_DB_SCALE(analog_gain, 0, 25, 1);
624624
static const DECLARE_TLV_DB_SCALE(ear_pa_gain, 0, 150, 0);

0 commit comments

Comments
 (0)