Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248477
b: refs/heads/master
c: fea4a4f
h: refs/heads/master
i:
  248475: e89e6af
v: v3
  • Loading branch information
Takashi Iwai committed May 16, 2011
1 parent 06915e1 commit 93ee3de
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f9759301c68a274302e434daa135926c25ca51ca
refs/heads/master: fea4a4f9737883ed660bd99b9b5cff9120455094
13 changes: 11 additions & 2 deletions trunk/sound/pci/hda/patch_conexant.c
Original file line number Diff line number Diff line change
Expand Up @@ -3040,6 +3040,7 @@ enum {
CXT5066_THINKPAD, /* Lenovo ThinkPad T410s, others? */
CXT5066_ASUS, /* Asus K52JU, Lenovo G560 - Int mic at 0x1a and Ext mic at 0x1b */
CXT5066_HP_LAPTOP, /* HP Laptop */
CXT5066_AUTO, /* BIOS auto-parser */
CXT5066_MODELS
};

Expand All @@ -3052,6 +3053,7 @@ static const char * const cxt5066_models[CXT5066_MODELS] = {
[CXT5066_THINKPAD] = "thinkpad",
[CXT5066_ASUS] = "asus",
[CXT5066_HP_LAPTOP] = "hp-laptop",
[CXT5066_AUTO] = "auto",
};

static const struct snd_pci_quirk cxt5066_cfg_tbl[] = {
Expand Down Expand Up @@ -3089,6 +3091,15 @@ static int patch_cxt5066(struct hda_codec *codec)
struct conexant_spec *spec;
int board_config;

board_config = snd_hda_check_board_config(codec, CXT5066_MODELS,
cxt5066_models, cxt5066_cfg_tbl);
#if 0 /* use the old method just for safety */
if (board_config < 0)
board_config = CXT5066_AUTO;
#endif
if (board_config == CXT5066_AUTO)
return patch_conexant_auto(codec);

spec = kzalloc(sizeof(*spec), GFP_KERNEL);
if (!spec)
return -ENOMEM;
Expand Down Expand Up @@ -3119,8 +3130,6 @@ static int patch_cxt5066(struct hda_codec *codec)

set_beep_amp(spec, 0x13, 0, HDA_OUTPUT);

board_config = snd_hda_check_board_config(codec, CXT5066_MODELS,
cxt5066_models, cxt5066_cfg_tbl);
switch (board_config) {
default:
case CXT5066_LAPTOP:
Expand Down

0 comments on commit 93ee3de

Please sign in to comment.