ALSA: hda/realtek - Parse digital input path
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 Dec 2012 10:55:53 +0000 (11:55 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jan 2013 07:30:28 +0000 (08:30 +0100)
This was the last forgotten path.  Now it's parsed via the same path
parser.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index d9c3b4af41d44be4df7018443a2e42c7eb668f90..0d6e9d88459487048d37c4c16d3c706127607319 100644 (file)
@@ -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;
                        }