aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflar2 <asegaert@gmail.com>2016-08-20 12:03:51 -0400
committerAli Al-Asadi <alasadi56@gmail.com>2018-03-03 17:46:07 +0100
commit83368abf3c1da38b3ee9e3678c13e9a81ada603c (patch)
treeb2715f59b14567e77376dd613ec5bc805667df4f
parentaece8037c27b7e8539f43028d830c79b2553165a (diff)
ASoC: msm8x16-wcd: Sound control: allow further reduction of digital gain
Change-Id: I1a7d888cb3b4dfcc4e6b76934a0cb2a0461c598c
-rw-r--r--sound/soc/codecs/msm8x16-wcd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/msm8x16-wcd.c b/sound/soc/codecs/msm8x16-wcd.c
index 5a2b527ea27..9d299abe444 100644
--- a/sound/soc/codecs/msm8x16-wcd.c
+++ b/sound/soc/codecs/msm8x16-wcd.c
@@ -5403,10 +5403,10 @@ static ssize_t headphone_gain_store(struct kobject *kobj,
sscanf(buf, "%d %d", &input_l, &input_r);
- if (input_l < -10 || input_l > 20)
+ if (input_l < -84 || input_l > 20)
input_l = 0;
- if (input_r < -10 || input_r > 20)
+ if (input_r < -84 || input_r > 20)
input_r = 0;
snd_soc_write(sound_control_codec_ptr, MSM8X16_WCD_A_CDC_RX1_VOL_CTL_B2_CTL, input_l);