Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167066
b: refs/heads/master
c: 01d4825
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Oct 6, 2009
1 parent 85b1e3d commit 51cdefb
Show file tree
Hide file tree
Showing 2 changed files with 9 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: f8f25ba3563dab14b1c3ea4d829642b8a61ca5d7
refs/heads/master: 01d4825df62d1d405035b90294bf38616d3f380b
11 changes: 8 additions & 3 deletions trunk/sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -1332,15 +1332,20 @@ static int alc_subsystem_id(struct hda_codec *codec,
* when the external headphone out jack is plugged"
*/
if (!spec->autocfg.hp_pins[0]) {
hda_nid_t nid;
tmp = (ass >> 11) & 0x3; /* HP to chassis */
if (tmp == 0)
spec->autocfg.hp_pins[0] = porta;
nid = porta;
else if (tmp == 1)
spec->autocfg.hp_pins[0] = porte;
nid = porte;
else if (tmp == 2)
spec->autocfg.hp_pins[0] = portd;
nid = portd;
else
return 1;
for (i = 0; i < spec->autocfg.line_outs; i++)
if (spec->autocfg.line_out_pins[i] == nid)
return 1;
spec->autocfg.hp_pins[0] = nid;
}

alc_init_auto_hp(codec);
Expand Down

0 comments on commit 51cdefb

Please sign in to comment.