projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e87885f
)
ALSA: hda - VIA: Add VT1802 check in via_speaker_automute function
author
Lydia Wang
<lydiawang@viatech.com.cn>
Thu, 24 Mar 2011 04:40:10 +0000
(12:40 +0800)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 24 Mar 2011 06:45:44 +0000
(07:45 +0100)
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>
sound/pci/hda/patch_via.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/patch_via.c
b/sound/pci/hda/patch_via.c
index c90b23b5cf7c44b2c974e737cd0f868cfc2007f5..ec6f32929cedf9f31bafeaaeb22b6ff8fc19dd92 100644
(file)
--- 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)
unsigned int hp_present;
struct via_spec *spec = codec->spec;
- if (
spec->codec_type != VT2002P && spec->codec_type != VT1812
)
+ if (
!VT2002P_COMPATIBLE(spec)
)
return;
hp_present = snd_hda_jack_detect(codec, spec->autocfg.hp_pins[0]);