Skip to content

Commit

Permalink
ALSA: hda - Enable codec->pin_amp_workaround always for Conexant auto…
Browse files Browse the repository at this point in the history
…-parser

It can (must for some) be used for all Conexnat codecs safely.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed May 15, 2011
1 parent 22ce5f7 commit 1387cde
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions sound/pci/hda/patch_conexant.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1387cde

Please sign in to comment.