diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-12-18 11:55:53 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-01-12 08:30:28 +0100 |
commit | df1d1fb09aed7aae0f94a5ba1a39d0477dee6f1d (patch) | |
tree | 2cd9a58ff698fb60a6e9e408ee089e5008f90098 /sound/pci/hda/patch_realtek.c | |
parent | ALSA: hda/realtek - Rename add_new_out_path() with add_new_nid_path() (diff) | |
download | linux-df1d1fb09aed7aae0f94a5ba1a39d0477dee6f1d.tar.xz linux-df1d1fb09aed7aae0f94a5ba1a39d0477dee6f1d.zip |
ALSA: hda/realtek - Parse digital input path
This was the last forgotten path. Now it's parsed via the same path
parser.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index d9c3b4af41d4..0d6e9d884594 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -1402,14 +1402,16 @@ static void alc_auto_parse_digital(struct hda_codec *codec) if (spec->autocfg.dig_in_pin) { dig_nid = codec->start_nid; for (i = 0; i < codec->num_nodes; i++, dig_nid++) { + struct nid_path *path; unsigned int wcaps = get_wcaps(codec, dig_nid); if (get_wcaps_type(wcaps) != AC_WID_AUD_IN) continue; if (!(wcaps & AC_WCAP_DIGITAL)) continue; - if (!(wcaps & AC_WCAP_CONN_LIST)) - continue; - if (err >= 0) { + path = add_new_nid_path(codec, spec->autocfg.dig_in_pin, + dig_nid, 2); + if (path) { + path->active = true; spec->dig_in_nid = dig_nid; break; } |