From d94ddd85b1e044c030d62c62f95ae700776888f8 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 20 Dec 2012 14:42:42 +0100 Subject: [PATCH] ALSA: hda - Increase the max depth of widget connections 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 --- sound/pci/hda/hda_codec.c | 2 +- sound/pci/hda/hda_generic.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 5689393f8da7..f4a0f9d3fd84 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -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; } diff --git a/sound/pci/hda/hda_generic.h b/sound/pci/hda/hda_generic.h index 417ab65a323e..89ad877e48c8 100644 --- a/sound/pci/hda/hda_generic.h +++ b/sound/pci/hda/hda_generic.h @@ -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, -- 2.39.2