projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc0522b
)
ASoC: codecs: wcd9335: Set digital gain range correctly
author
Srinivas Kandagatla
<srinivas.kandagatla@linaro.org>
Wed, 28 Oct 2020 15:43:40 +0000
(15:43 +0000)
committer
Mark Brown
<broonie@kernel.org>
Wed, 28 Oct 2020 16:47:40 +0000
(16:47 +0000)
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: 8c4f021d806a ("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>
sound/soc/codecs/wcd9335.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wcd9335.c
b/sound/soc/codecs/wcd9335.c
index f2d9d52ee171b81a5ffc4304b8e4914e67b55add..4d2b1ec7c03bb800de8a4138292694f2d7dc2cb4 100644
(file)
--- a/
sound/soc/codecs/wcd9335.c
+++ b/
sound/soc/codecs/wcd9335.c
@@
-618,7
+618,7
@@
static const char * const sb_tx8_mux_text[] = {
"ZERO", "RX_MIX_TX8", "DEC8", "DEC8_192"
};
-static const DECLARE_TLV_DB_SCALE(digital_gain,
0, 1,
0);
+static const DECLARE_TLV_DB_SCALE(digital_gain,
-8400, 100, -840
0);
static const DECLARE_TLV_DB_SCALE(line_gain, 0, 7, 1);
static const DECLARE_TLV_DB_SCALE(analog_gain, 0, 25, 1);
static const DECLARE_TLV_DB_SCALE(ear_pa_gain, 0, 150, 0);