diff options
author | David Henningsson <david.henningsson@canonical.com> | 2013-01-18 15:43:01 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-01-18 15:48:13 +0100 |
commit | d3d982f7447ba9f5cbb57c1a525c3b61bfcffc37 (patch) | |
tree | f00b5c9d5de1e8ffc4b86343a761b7d8ab09e92f /sound/pci/hda/hda_generic.c | |
parent | 7513e6dae58cf6583ff38bfe684bd5b3afcc564e (diff) |
ALSA: hda - make sure there are enough input labels and paths
I found a codec configuration which had six inputs, so the max of
five was not appropriate.
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_generic.c')
-rw-r--r-- | sound/pci/hda/hda_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c index 174806e5223..10b14a925dd 100644 --- a/sound/pci/hda/hda_generic.c +++ b/sound/pci/hda/hda_generic.c @@ -2652,7 +2652,7 @@ static struct nid_path *get_input_path(struct hda_codec *codec, int adc_idx, int } if (spec->dyn_adc_switch) adc_idx = spec->dyn_adc_idx[imux_idx]; - if (adc_idx < 0 || adc_idx >= AUTO_CFG_MAX_OUTS) { + if (adc_idx < 0 || adc_idx >= AUTO_CFG_MAX_INS) { snd_BUG(); return NULL; } |