Skip to content

Commit

Permalink
sound: sdm660_cdc: Correct the limits
Browse files Browse the repository at this point in the history
  • Loading branch information
MihranThalhath authored and KarthikKarhem committed Feb 28, 2019
1 parent e239306 commit 7edf805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/codecs/sdm660_cdc/msm-digital-cdc.c
Expand Up @@ -1286,10 +1286,10 @@ static ssize_t headphone_gain_store(struct kobject *kobj,

sscanf(buf, "%d %d", &input_l, &input_r);

if (input_l < -40 || input_l > 20)
if (input_l < -84 || input_l > 40)
input_l = 0;

if (input_r < -40 || input_r > 20)
if (input_r < -84 || input_r > 40)
input_r = 0;

snd_soc_write(sound_control_codec_ptr, MSM89XX_CDC_CORE_RX1_VOL_CTL_B2_CTL, input_l);
Expand Down

0 comments on commit 7edf805

Please sign in to comment.