Skip to content

Commit

Permalink
ALSA: hda - Increase the max depth of widget connections
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai committed Jan 12, 2013
1 parent 2ce4886 commit d94ddd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion sound/pci/hda/hda_generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d94ddd8

Please sign in to comment.