ALSA: hda - Increase the max depth of widget connections
authorTakashi Iwai <tiwai@suse.de>
Thu, 20 Dec 2012 13:42:42 +0000 (14:42 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jan 2013 07:34:09 +0000 (08:34 +0100)
Old codecs like AD1986A tend to have long paths as they were just made
to be the way like AC97.  The current max depth 5 can be too short for
such devices.

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

index 5689393f8da7b99f29383ef82b5a7893a6f8d408..f4a0f9d3fd84aa0b1b5e2139abd007c6937330ee 100644 (file)
@@ -591,7 +591,7 @@ int snd_hda_get_conn_index(struct hda_codec *codec, hda_nid_t mux,
                        return i;
        if (!recursive)
                return -1;
-       if (recursive > 5) {
+       if (recursive > 10) {
                snd_printd("hda_codec: too deep connection for 0x%x\n", nid);
                return -1;
        }
index 417ab65a323e4b527b81a9a4deb373ac1caa3cb5..89ad877e48c83581b75c2806d0bbb7b53c7ad3aa 100644 (file)
@@ -37,7 +37,7 @@ struct hda_multi_io {
  * vol_ctl and mute_ctl contains the NIDs for the assigned mixers
  */
 
-#define MAX_NID_PATH_DEPTH     5
+#define MAX_NID_PATH_DEPTH     10
 
 enum {
        NID_PATH_VOL_CTL,