mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 19:31:53 +00:00
ALSA: hda - Fix line-out jack detection
The commit fefd67f31e
ALSA: hda - Add line-out jack detection on IDT/STAC codecs
enabled wrong pins for jack detections. Fixed to the correct ones.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
e44d4e4cee
commit
15cfa2b3db
@ -4350,8 +4350,8 @@ static int stac92xx_init(struct hda_codec *codec)
|
||||
}
|
||||
if (cfg->line_out_type == AUTO_PIN_LINE_OUT) {
|
||||
/* enable pin-detect for line-outs as well */
|
||||
for (i = 0; i < cfg->hp_outs; i++) {
|
||||
hda_nid_t nid = cfg->hp_pins[i];
|
||||
for (i = 0; i < cfg->line_outs; i++) {
|
||||
hda_nid_t nid = cfg->line_out_pins[i];
|
||||
enable_pin_detect(codec, nid, STAC_LO_EVENT);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user