aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/pci/hda/hda_codec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 501cbc411a83..e5c3484388f0 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -1629,7 +1629,8 @@ update_amp_value(struct hda_codec *codec, hda_nid_t nid,
1629 1629
1630 if (val > 0) 1630 if (val > 0)
1631 val += ofs; 1631 val += ofs;
1632 maxval = get_amp_max_value(codec, nid, dir, ofs); 1632 /* ofs = 0: raw max value */
1633 maxval = get_amp_max_value(codec, nid, dir, 0);
1633 if (val > maxval) 1634 if (val > maxval)
1634 val = maxval; 1635 val = maxval;
1635 return snd_hda_codec_amp_update(codec, nid, ch, dir, idx, 1636 return snd_hda_codec_amp_update(codec, nid, ch, dir, idx,