ALSA: hda/realtek - Avoid invalid COEFs for ALC271X
authorTakashi Iwai <tiwai@suse.de>
Mon, 3 Feb 2014 08:56:13 +0000 (09:56 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 5 Feb 2014 06:17:49 +0000 (07:17 +0100)
We've seen often problems after suspend/resume on Acer Aspire One
AO725 with ALC271X codec as reported in kernel bugzilla, and it turned
out that some COEFs doesn't work and triggers the codec communication
stall.

Since these magic COEF setups are specific to ALC269VB for some PLL
configurations, the machine works even without these manual
adjustment.  So, let's simply avoid applying them for ALC271X.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=52181
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index 56a8f187660333a51149910648d00b0a944e685b..e16a71e586f08185912125f64f4bc48eff27be71 100644 (file)
@@ -4427,6 +4427,9 @@ static void alc269_fill_coef(struct hda_codec *codec)
 
        if (spec->codec_variant != ALC269_TYPE_ALC269VB)
                return;
+       /* ALC271X doesn't seem to support these COEFs (bko#52181) */
+       if (!strcmp(codec->chip_name, "ALC271X"))
+               return;
 
        if ((alc_get_coef0(codec) & 0x00ff) < 0x015) {
                alc_write_coef_idx(codec, 0xf, 0x960b);