aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2012-03-05 05:38:46 -0500
committerTakashi Iwai <tiwai@suse.de>2012-03-05 09:15:40 -0500
commite21af48583380ed9b5ca07b6dd962dbcd3748e0a (patch)
tree8dfe1c6214db112be91de8323d6d1e8ce14f5491 /sound/pci
parent7c589750a70831b8cee3c10e01c297fefde104e3 (diff)
ALSA: hda - fix broken automute/autoswitch for Realtek
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>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/patch_realtek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 01179d53edcd..7e651682eece 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -686,7 +686,7 @@ static void alc_sku_unsol_event(struct hda_codec *codec, unsigned int res)
686 else 686 else
687 res >>= 26; 687 res >>= 26;
688 action = snd_hda_jack_get_action(codec, res); 688 action = snd_hda_jack_get_action(codec, res);
689 if (res == ALC_DCVOL_EVENT) { 689 if (action == ALC_DCVOL_EVENT) {
690 /* Execute the dc-vol event here as it requires the NID 690 /* Execute the dc-vol event here as it requires the NID
691 * but we don't pass NID to alc_exec_unsol_event(). 691 * but we don't pass NID to alc_exec_unsol_event().
692 * Once when we convert all static quirks to the auto-parser, 692 * Once when we convert all static quirks to the auto-parser,