Commit 2d9c6482 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Fix overflow of spec->init_verbs in patch_realtek.c

ALC861-VD lenovo model causes overflow of spec->init_verbs entries due to
the recent changes.  Simply increase the array size to avoid the overflow.
Reported-by: default avatarLuca Tettamanti <kronos.it@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f0613d57
...@@ -275,7 +275,7 @@ struct alc_spec { ...@@ -275,7 +275,7 @@ struct alc_spec {
struct snd_kcontrol_new *cap_mixer; /* capture mixer */ struct snd_kcontrol_new *cap_mixer; /* capture mixer */
unsigned int beep_amp; /* beep amp value, set via set_beep_amp() */ unsigned int beep_amp; /* beep amp value, set via set_beep_amp() */
const struct hda_verb *init_verbs[5]; /* initialization verbs const struct hda_verb *init_verbs[10]; /* initialization verbs
* don't forget NULL * don't forget NULL
* termination! * termination!
*/ */
......
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