projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a7f6cd
)
ASoC: cs42l52: Correct TLV for Bypass Volume
author
Charles Keepax
<ckeepax@opensource.cirrus.com>
Thu, 2 Jun 2022 16:21:17 +0000
(17:21 +0100)
committer
Mark Brown
<broonie@kernel.org>
Mon, 6 Jun 2022 12:08:58 +0000
(13:08 +0100)
The Bypass Volume is accidentally using a -6dB minimum TLV rather than
the correct -60dB minimum. Add a new TLV to correct this.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link:
https://lore.kernel.org/r/20220602162119.3393857-5-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l52.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/cs42l52.c
b/sound/soc/codecs/cs42l52.c
index 02c25399cf8a2e5d56f2ed71d29cd4ea3655ab62..10e696406a71b161476ea50fa8e68ca7e6a7f9b8 100644
(file)
--- a/
sound/soc/codecs/cs42l52.c
+++ b/
sound/soc/codecs/cs42l52.c
@@
-137,6
+137,8
@@
static DECLARE_TLV_DB_SCALE(mic_tlv, 1600, 100, 0);
static DECLARE_TLV_DB_SCALE(pga_tlv, -600, 50, 0);
+static DECLARE_TLV_DB_SCALE(pass_tlv, -6000, 50, 0);
+
static DECLARE_TLV_DB_SCALE(mix_tlv, -5150, 50, 0);
static DECLARE_TLV_DB_SCALE(beep_tlv, -56, 200, 0);
@@
-351,7
+353,7
@@
static const struct snd_kcontrol_new cs42l52_snd_controls[] = {
CS42L52_SPKB_VOL, 0, 0x40, 0xC0, hl_tlv),
SOC_DOUBLE_R_SX_TLV("Bypass Volume", CS42L52_PASSTHRUA_VOL,
- CS42L52_PASSTHRUB_VOL, 0, 0x88, 0x90, p
ga
_tlv),
+ CS42L52_PASSTHRUB_VOL, 0, 0x88, 0x90, p
ass
_tlv),
SOC_DOUBLE("Bypass Mute", CS42L52_MISC_CTL, 4, 5, 1, 0),