Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120552
b: refs/heads/master
c: eb63212
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Dec 19, 2008
1 parent 47df7c3 commit 81ca7ef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9158923228822c08ed3116bfe21472261a05a725
refs/heads/master: eb63212868c348cc6d3ec6929d7d98f7d29493e9
12 changes: 10 additions & 2 deletions trunk/sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -3946,7 +3946,13 @@ static int stac92xx_init(struct hda_codec *codec)
hda_nid_t nid = spec->pwr_nids[i];
int pinctl, def_conf;

if (is_nid_hp_pin(cfg, nid) && spec->hp_detect)
/* power on when no jack detection is available */
if (!spec->hp_detect) {
stac_toggle_power_map(codec, nid, 1);
continue;
}

if (is_nid_hp_pin(cfg, nid))
continue; /* already has an unsol event */

pinctl = snd_hda_codec_read(codec, nid, 0,
Expand All @@ -3955,8 +3961,10 @@ static int stac92xx_init(struct hda_codec *codec)
* any attempts on powering down a input port cause the
* referenced VREF to act quirky.
*/
if (pinctl & AC_PINCTL_IN_EN)
if (pinctl & AC_PINCTL_IN_EN) {
stac_toggle_power_map(codec, nid, 1);
continue;
}
def_conf = snd_hda_codec_read(codec, nid, 0,
AC_VERB_GET_CONFIG_DEFAULT, 0);
def_conf = get_defcfg_connect(def_conf);
Expand Down

0 comments on commit 81ca7ef

Please sign in to comment.