aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorLydia Wang <lydiawang@viatech.com.cn>2011-03-24 00:40:10 -0400
committerTakashi Iwai <tiwai@suse.de>2011-03-24 02:45:44 -0400
commit27439ce717fea649ed77d256bb6efee7d1eb8e56 (patch)
treeac401905cd8eaea006610ba948ae3caf16a6d21e /sound
parente87885fea58ef49e08f2b4218587397586dc155d (diff)
ALSA: hda - VIA: Add VT1802 check in via_speaker_automute function
Add VT1802 check in via_speaker_automute() function. Signed-off-by: Lydia Wang <lydiawang@viatech.com.cn> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_via.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c
index c90b23b5cf7c..ec6f32929ced 100644
--- a/sound/pci/hda/patch_via.c
+++ b/sound/pci/hda/patch_via.c
@@ -1685,7 +1685,7 @@ static void via_speaker_automute(struct hda_codec *codec)
1685 unsigned int hp_present; 1685 unsigned int hp_present;
1686 struct via_spec *spec = codec->spec; 1686 struct via_spec *spec = codec->spec;
1687 1687
1688 if (spec->codec_type != VT2002P && spec->codec_type != VT1812) 1688 if (!VT2002P_COMPATIBLE(spec))
1689 return; 1689 return;
1690 1690
1691 hp_present = snd_hda_jack_detect(codec, spec->autocfg.hp_pins[0]); 1691 hp_present = snd_hda_jack_detect(codec, spec->autocfg.hp_pins[0]);