History

ASoC: cs42l52: Correct TLV for Bypass Volume

The Bypass Volume is accidentally using a -6dB minimum TLV rather than the correct -60dB minimum. Add a new TLV to correct this.

Charles Keepax committed 4 years ago

Commit 91e90c71 parent 7fbd6dd1 file · +3 −1Browse files

Unified · Split

sound/soc/codecs/cs42l52.c+3−1
@@ -137,6 +137,8 @@ static DECLARE_TLV_DB_SCALE(mic_tlv, 1600, 100, 0); · 136 unmodified lines
137137
138138 static DECLARE_TLV_DB_SCALE(pga_tlv, -600, 50, 0);
139139
140+static DECLARE_TLV_DB_SCALE(pass_tlv, -6000, 50, 0);
141+
140142 static DECLARE_TLV_DB_SCALE(mix_tlv, -5150, 50, 0);
141143
142144 static DECLARE_TLV_DB_SCALE(beep_tlv, -56, 200, 0);
@@ -351,7 +353,7 @@ static const struct snd_kcontrol_new cs42l52_snd_controls[] = { · 208 unmodified lines
351353 CS42L52_SPKB_VOL, 0, 0x40, 0xC0, hl_tlv),
352354
353355 SOC_DOUBLE_R_SX_TLV("Bypass Volume", CS42L52_PASSTHRUA_VOL,
354− CS42L52_PASSTHRUB_VOL, 0, 0x88, 0x90, pga_tlv),
356+ CS42L52_PASSTHRUB_VOL, 0, 0x88, 0x90, pass_tlv),
355357
356358 SOC_DOUBLE("Bypass Mute", CS42L52_MISC_CTL, 4, 5, 1, 0),
357359

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t