projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
529bd6c
)
ALSA: hda - Fix creation of automatic capture mixers
author
Takashi Iwai
<tiwai@suse.de>
Thu, 27 Nov 2008 14:25:34 +0000
(15:25 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 27 Nov 2008 14:25:34 +0000
(15:25 +0100)
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>
sound/pci/hda/patch_realtek.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/patch_realtek.c
b/sound/pci/hda/patch_realtek.c
index 4afa0c9b9b6eca1adca31884454a7479abb46cdb..9cd2545d988e94872e22bceb60ebf86428062cea 100644
(file)
--- 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)
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];
}