Commit 8c87286f authored by Takashi Iwai's avatar Takashi Iwai Committed by Jaroslav Kysela

[ALSA] hda-codec - Fix ALC662 auto-configuration code

The auto-configuration code didn't initialize the verbs correctly.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent a18519e1
...@@ -11169,12 +11169,10 @@ static int alc662_parse_auto_config(struct hda_codec *codec) ...@@ -11169,12 +11169,10 @@ static int alc662_parse_auto_config(struct hda_codec *codec)
if (err < 0) if (err < 0)
return err; return err;
else if (err > 0) spec->init_verbs[spec->num_init_verbs++] = alc662_auto_init_verbs;
/* hack - override the init verbs */
spec->init_verbs[0] = alc662_auto_init_verbs;
spec->mixers[spec->num_mixers] = alc662_capture_mixer; spec->mixers[spec->num_mixers] = alc662_capture_mixer;
spec->num_mixers++; spec->num_mixers++;
return err; return 1;
} }
/* additional initialization for auto-configuration model */ /* additional initialization for auto-configuration model */
...@@ -11211,7 +11209,7 @@ static int patch_alc662(struct hda_codec *codec) ...@@ -11211,7 +11209,7 @@ static int patch_alc662(struct hda_codec *codec)
if (err < 0) { if (err < 0) {
alc_free(codec); alc_free(codec);
return err; return err;
} else if (err) { } else if (!err) {
printk(KERN_INFO printk(KERN_INFO
"hda_codec: Cannot set up configuration " "hda_codec: Cannot set up configuration "
"from BIOS. Using base mode...\n"); "from BIOS. Using base mode...\n");
......
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