]> Pileus Git - ~andy/linux/commitdiff
ALSA: hda - fix broken automute/autoswitch for Realtek
authorDavid Henningsson <david.henningsson@canonical.com>
Mon, 5 Mar 2012 10:38:46 +0000 (11:38 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 5 Mar 2012 14:15:40 +0000 (15:15 +0100)
The recent addition of volume-knob widget in the auto-parser broke
automute/autoswitch for some Realtek devices.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index 01179d53edcd29e84f68fe208976d9fa4a014165..7e651682eecedf6dfdce10489f70d819db4118a7 100644 (file)
@@ -686,7 +686,7 @@ static void alc_sku_unsol_event(struct hda_codec *codec, unsigned int res)
        else
                res >>= 26;
        action = snd_hda_jack_get_action(codec, res);
-       if (res == ALC_DCVOL_EVENT) {
+       if (action == ALC_DCVOL_EVENT) {
                /* Execute the dc-vol event here as it requires the NID
                 * but we don't pass NID to alc_exec_unsol_event().
                 * Once when we convert all static quirks to the auto-parser,