projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17bbaa6
)
ALSA: hda - Add missing GPIO initialization for AD1984A laptop model
author
Takashi Iwai
<tiwai@suse.de>
Mon, 31 Aug 2009 06:37:46 +0000
(08:37 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 31 Aug 2009 06:37:46 +0000
(08:37 +0200)
A similar initialization of GPIO1 pin like mobile model is needed
for laptop model, too.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_analog.c
patch
|
blob
|
history
diff --git
a/sound/pci/hda/patch_analog.c
b/sound/pci/hda/patch_analog.c
index 570e072938cae5839a6e233f2d223f92b991f378..db3f3b15f0e215dfa6c2c5db8c291ed49fa3bfd5 100644
(file)
--- a/
sound/pci/hda/patch_analog.c
+++ b/
sound/pci/hda/patch_analog.c
@@
-3892,6
+3892,10
@@
static struct hda_verb ad1884a_laptop_verbs[] = {
{0x12, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | AD1884A_HP_EVENT},
{0x14, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | AD1884A_MIC_EVENT},
{0x1c, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | AD1884A_MIC_EVENT},
+ /* allow to touch GPIO1 (for mute control) */
+ {0x01, AC_VERB_SET_GPIO_MASK, 0x02},
+ {0x01, AC_VERB_SET_GPIO_DIRECTION, 0x02},
+ {0x01, AC_VERB_SET_GPIO_DATA, 0x02}, /* first muted */
{ } /* end */
};