ALSA: hda - Fix silent speaker output due to mute LED fixup
authorTakashi Iwai <tiwai@suse.de>
Thu, 3 Apr 2014 09:51:21 +0000 (11:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 May 2014 14:55:27 +0000 (07:55 -0700)
commitdb6338e0efa1cfe54b9f3e6557292419ff2c47e6
tree389bfb63eeb7d8b63eafb39cd11e93d7e89a82f5
parentf13dbe1e97b98c5d2c315b8e3d21e04fa49937d1
ALSA: hda - Fix silent speaker output due to mute LED fixup

commit 415d555e6b398b00fc1733f0113065a54df9106a upstream.

The recent fixups for HP laptops to support the mute LED made the
speaker output silent on some machines.  It turned out that they use
the NID 0x18 for the speaker while it's also used for controlling the
LED via VREF bits although the current driver code blindly assumes
that such a node is a mic pin (where 0x18 is usually so).

This patch fixes the problem by only changing the VREF bits and
keeping the other pin ctl bits.

Reported-and-tested-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_realtek.c