diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-11-27 09:25:34 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-11-27 09:25:34 -0500 |
commit | 30d72e9f614e7bd76e28d4d92bd54d90a96905bb (patch) | |
tree | 68f3aded56325a67f8c873bbb91e275637481c0e /sound | |
parent | 529bd6c4a63f8468fd66f63fdc22d7070439b3cd (diff) |
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: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 4afa0c9b9b6e..9cd2545d988e 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -4269,7 +4269,7 @@ static void set_capture_mixer(struct alc_spec *spec) | |||
4269 | alc_capture_mixer2, | 4269 | alc_capture_mixer2, |
4270 | alc_capture_mixer3, | 4270 | alc_capture_mixer3, |
4271 | }; | 4271 | }; |
4272 | if (spec->num_adc_nids > 0 && spec->num_adc_nids < 3) | 4272 | if (spec->num_adc_nids > 0 && spec->num_adc_nids <= 3) |
4273 | spec->cap_mixer = caps[spec->num_adc_nids - 1]; | 4273 | spec->cap_mixer = caps[spec->num_adc_nids - 1]; |
4274 | } | 4274 | } |
4275 | 4275 | ||