Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170389
b: refs/heads/master
c: ac2c92e
h: refs/heads/master
i:
  170387: efa08e3
v: v3
  • Loading branch information
Takashi Iwai committed Dec 3, 2009
1 parent a6c16d6 commit 244b86c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 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: 274693f37090ada2cadd09944ab883f05ea6ebe6
refs/heads/master: ac2c92e0cd06387ecee8115f5fa385fba6413c42
18 changes: 11 additions & 7 deletions trunk/sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -13459,8 +13459,10 @@ static int patch_alc269(struct hda_codec *codec)
if ((alc_read_coef_idx(codec, 0) & 0x00f0) == 0x0010){
kfree(codec->chip_name);
codec->chip_name = kstrdup("ALC259", GFP_KERNEL);
if (!codec->chip_name)
if (!codec->chip_name) {
alc_free(codec);
return -ENOMEM;
}
}

board_config = snd_hda_check_board_config(codec, ALC269_MODEL_LAST,
Expand Down Expand Up @@ -17465,8 +17467,10 @@ static int patch_alc662(struct hda_codec *codec)
if (alc_read_coef_idx(codec, 0)==0x8020){
kfree(codec->chip_name);
codec->chip_name = kstrdup("ALC661", GFP_KERNEL);
if (!codec->chip_name)
if (!codec->chip_name) {
alc_free(codec);
return -ENOMEM;
}
}

board_config = snd_hda_check_board_config(codec, ALC662_MODEL_LAST,
Expand Down Expand Up @@ -17540,13 +17544,13 @@ static int patch_alc888(struct hda_codec *codec)
if ((alc_read_coef_idx(codec, 0) & 0x00f0)==0x0030){
kfree(codec->chip_name);
codec->chip_name = kstrdup("ALC888-VD", GFP_KERNEL);
if (!codec->chip_name)
if (!codec->chip_name) {
alc_free(codec);
return -ENOMEM;
patch_alc662(codec);
} else {
patch_alc882(codec);
}
return patch_alc662(codec);
}
return 0;
return patch_alc882(codec);
}

/*
Expand Down

0 comments on commit 244b86c

Please sign in to comment.