Skip to content

Commit

Permalink
ALSA: hda - Fix creation of automatic capture mixers
Browse files Browse the repository at this point in the history
Fixed a wrong boundary check of num_adc_nids in set_capture_mixer()
in patch_realtek.c.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Nov 27, 2008
1 parent 529bd6c commit 30d72e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -4269,7 +4269,7 @@ static void set_capture_mixer(struct alc_spec *spec)
alc_capture_mixer2,
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];
}

Expand Down

0 comments on commit 30d72e9

Please sign in to comment.