Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353086
b: refs/heads/master
c: 2430d7b
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Jan 12, 2013
1 parent 428280d commit 09d67bd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 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: 196c17668056ed5226070d06878242c116dfece2
refs/heads/master: 2430d7b78ba161656a621279964421aa06e04b02
8 changes: 7 additions & 1 deletion trunk/sound/pci/hda/hda_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -2521,6 +2521,7 @@ static void parse_digital(struct hda_codec *codec)
print_nid_path("digin", path);
path->active = true;
spec->dig_in_nid = dig_nid;
spec->digin_path = snd_hda_get_path_idx(codec, path);
break;
}
}
Expand Down Expand Up @@ -3788,8 +3789,13 @@ static void init_digital(struct hda_codec *codec)
spec->digout_paths[i]);
}
pin = spec->autocfg.dig_in_pin;
if (pin)
if (pin) {
struct nid_path *path;
snd_hda_set_pin_ctl_cache(codec, pin, PIN_IN);
path = snd_hda_get_path_from_idx(codec, spec->digin_path);
if (path)
snd_hda_activate_path(codec, path, path->active, false);
}
}

/* clear unsol-event tags on unused pins; Conexant codecs seem to leave
Expand Down
1 change: 1 addition & 0 deletions trunk/sound/pci/hda/hda_generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ struct hda_gen_spec {
int speaker_paths[AUTO_CFG_MAX_OUTS];
int digout_paths[AUTO_CFG_MAX_OUTS];
int loopback_paths[HDA_MAX_NUM_INPUTS];
int digin_path;

/* auto-mic stuff */
int am_num_entries;
Expand Down

0 comments on commit 09d67bd

Please sign in to comment.