Commit 30d72e9f authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Fix creation of automatic capture mixers

Fixed a wrong boundary check of num_adc_nids in set_capture_mixer()
in patch_realtek.c.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 529bd6c4
...@@ -4269,7 +4269,7 @@ static void set_capture_mixer(struct alc_spec *spec) ...@@ -4269,7 +4269,7 @@ static void set_capture_mixer(struct alc_spec *spec)
alc_capture_mixer2, alc_capture_mixer2,
alc_capture_mixer3, alc_capture_mixer3,
}; };
if (spec->num_adc_nids > 0 && spec->num_adc_nids < 3) if (spec->num_adc_nids > 0 && spec->num_adc_nids <= 3)
spec->cap_mixer = caps[spec->num_adc_nids - 1]; spec->cap_mixer = caps[spec->num_adc_nids - 1];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment