projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07c2307
)
ASoC: cs35l36: Update digital volume TLV
author
Charles Keepax
<ckeepax@opensource.cirrus.com>
Thu, 2 Jun 2022 16:21:15 +0000
(17:21 +0100)
committer
Mark Brown
<broonie@kernel.org>
Mon, 6 Jun 2022 12:08:56 +0000
(13:08 +0100)
The digital volume TLV specifies the step as 0.25dB but the actual step
of the control is 0.125dB. Update the TLV to correct this.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link:
https://lore.kernel.org/r/20220602162119.3393857-3-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l36.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/cs35l36.c
b/sound/soc/codecs/cs35l36.c
index 920190daa4d1b44021f5a140c279a47128a0ba41..dfe85dc2cd20fbddf8d4f125e87c3abae42795ba 100644
(file)
--- a/
sound/soc/codecs/cs35l36.c
+++ b/
sound/soc/codecs/cs35l36.c
@@
-444,7
+444,8
@@
static bool cs35l36_volatile_reg(struct device *dev, unsigned int reg)
}
}
-static DECLARE_TLV_DB_SCALE(dig_vol_tlv, -10200, 25, 0);
+static const DECLARE_TLV_DB_RANGE(dig_vol_tlv, 0, 912,
+ TLV_DB_MINMAX_ITEM(-10200, 1200));
static DECLARE_TLV_DB_SCALE(amp_gain_tlv, 0, 1, 1);
static const char * const cs35l36_pcm_sftramp_text[] = {