Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286643
b: refs/heads/master
c: b4ead01
h: refs/heads/master
i:
  286641: 48e553c
  286639: df49513
v: v3
  • Loading branch information
Takashi Iwai committed Jan 23, 2012
1 parent ca44ce4 commit 526a1a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 29c5fbbcfefba5225a6783683c46c39e10877703
refs/heads/master: b4ead019afc201f71c39cd0dfcaafed4a97b3dd2
8 changes: 5 additions & 3 deletions trunk/sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -4163,13 +4163,15 @@ static int enable_pin_detect(struct hda_codec *codec, hda_nid_t nid,
return 1;
}

static int is_nid_hp_pin(struct auto_pin_cfg *cfg, hda_nid_t nid)
static int is_nid_out_jack_pin(struct auto_pin_cfg *cfg, hda_nid_t nid)
{
int i;
for (i = 0; i < cfg->hp_outs; i++)
if (cfg->hp_pins[i] == nid)
return 1; /* nid is a HP-Out */

for (i = 0; i < cfg->line_outs; i++)
if (cfg->line_out_pins[i] == nid)
return 1; /* nid is a line-Out */
return 0; /* nid is not a HP-Out */
};

Expand Down Expand Up @@ -4375,7 +4377,7 @@ static int stac92xx_init(struct hda_codec *codec)
continue;
}

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

pinctl = snd_hda_codec_read(codec, nid, 0,
Expand Down

0 comments on commit 526a1a2

Please sign in to comment.