diff options
author | Jaroslav Kysela <perex@perex.cz> | 2009-12-20 12:00:30 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2009-12-20 12:00:30 +0100 |
commit | 77623f62a919e729a5884c53c27a53b8a53ecb14 (patch) | |
tree | 9f4fbb9890ad5097d85ac3fb699bb9ea0e80d01a /sound/pci/hda/patch_analog.c | |
parent | f74890277a196949e4004fe2955e1d4fb3930f98 (diff) | |
parent | 2fef62c825f09e29d2f52dc187ddf6f99e28c7f1 (diff) |
Merge branch 'fix/hda' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 into fixes
Diffstat (limited to 'sound/pci/hda/patch_analog.c')
-rw-r--r-- | sound/pci/hda/patch_analog.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c index 447eda1f6770..1a36137e13ec 100644 --- a/sound/pci/hda/patch_analog.c +++ b/sound/pci/hda/patch_analog.c @@ -1789,6 +1789,14 @@ static int patch_ad1981(struct hda_codec *codec) codec->patch_ops.init = ad1981_hp_init; codec->patch_ops.unsol_event = ad1981_hp_unsol_event; + /* set the upper-limit for mixer amp to 0dB for avoiding the + * possible damage by overloading + */ + snd_hda_override_amp_caps(codec, 0x11, HDA_INPUT, + (0x17 << AC_AMPCAP_OFFSET_SHIFT) | + (0x17 << AC_AMPCAP_NUM_STEPS_SHIFT) | + (0x05 << AC_AMPCAP_STEP_SIZE_SHIFT) | + (1 << AC_AMPCAP_MUTE_SHIFT)); break; case AD1981_THINKPAD: spec->mixers[0] = ad1981_thinkpad_mixers; |