1
0
Fork 0

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: Takashi Iwai <tiwai@suse.de>
hifive-unleashed-5.1
Takashi Iwai 2011-05-15 12:21:20 +02:00
parent 22ce5f74a9
commit 1387cde51d
1 changed files with 1 additions and 11 deletions

View File

@ -4081,20 +4081,10 @@ static int patch_conexant_auto(struct hda_codec *codec)
if (!spec)
return -ENOMEM;
codec->spec = spec;
codec->pin_amp_workaround = 1;
err = cx_auto_search_adcs(codec);
if (err < 0)
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);
if (err < 0) {
kfree(codec->spec);