Commit 1387cde5 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Enable codec->pin_amp_workaround always for Conexant auto-parser

It can (must for some) be used for all Conexnat codecs safely.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 22ce5f74
...@@ -4081,20 +4081,10 @@ static int patch_conexant_auto(struct hda_codec *codec) ...@@ -4081,20 +4081,10 @@ static int patch_conexant_auto(struct hda_codec *codec)
if (!spec) if (!spec)
return -ENOMEM; return -ENOMEM;
codec->spec = spec; codec->spec = spec;
codec->pin_amp_workaround = 1;
err = cx_auto_search_adcs(codec); err = cx_auto_search_adcs(codec);
if (err < 0) if (err < 0)
return err; return err;
switch (codec->vendor_id) {
case 0x14f15051:
codec->pin_amp_workaround = 1;
break;
case 0x14f15045:
codec->pin_amp_workaround = 1;
break;
case 0x14f15047:
codec->pin_amp_workaround = 1;
break;
}
err = cx_auto_parse_auto_config(codec); err = cx_auto_parse_auto_config(codec);
if (err < 0) { if (err < 0) {
kfree(codec->spec); kfree(codec->spec);
......
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