From 6603e6c719d512e94a6e2e48e1c7399f6ed3a0e4 Mon Sep 17 00:00:00 2001 From: Kailang Yang Date: Wed, 18 May 2011 11:51:15 +0200 Subject: [PATCH] --- yaml --- r: 248491 b: refs/heads/master c: b478b998447d3eb95e03beab1ad132e3e6bc74d2 h: refs/heads/master i: 248489: 763c45e9de1baa637616fcaf7af77d06d54835d7 248487: 173d598ee3700b2d46ebdd4561dcfb47fd7bf38a v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/patch_realtek.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index c9d4910f856b..9fdb5585a0c7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 20c304ed84e05a91b2acae36d428d621d3c1d1c6 +refs/heads/master: b478b998447d3eb95e03beab1ad132e3e6bc74d2 diff --git a/trunk/sound/pci/hda/patch_realtek.c b/trunk/sound/pci/hda/patch_realtek.c index cee89b1ef393..fbf2d437e8c4 100644 --- a/trunk/sound/pci/hda/patch_realtek.c +++ b/trunk/sound/pci/hda/patch_realtek.c @@ -19610,6 +19610,15 @@ static int patch_alc888(struct hda_codec *codec) return patch_alc882(codec); } +static int patch_alc899(struct hda_codec *codec) +{ + if ((alc_read_coef_idx(codec, 0) & 0x2000) != 0x2000) { + kfree(codec->chip_name); + codec->chip_name = kstrdup("ALC898", GFP_KERNEL); + } + return patch_alc882(codec); +} + /* * ALC680 support */ @@ -20097,6 +20106,7 @@ static const struct hda_codec_preset snd_hda_preset_realtek[] = { { .id = 0x10ec0888, .name = "ALC888", .patch = patch_alc888 }, { .id = 0x10ec0889, .name = "ALC889", .patch = patch_alc882 }, { .id = 0x10ec0892, .name = "ALC892", .patch = patch_alc662 }, + { .id = 0x10ec0899, .name = "ALC899", .patch = patch_alc899 }, {} /* terminator */ };