ALSA: hda/realtek - Update ALC255 depop optimize
authorKailang Yang <kailang@realtek.com>
Wed, 25 Apr 2018 08:05:27 +0000 (16:05 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 25 Apr 2018 08:37:16 +0000 (10:37 +0200)
Add ALC255 its own depop functions for alc_init and alc_shutup.
Assign it to ALC256 usage.

Signed-off-by: Kailang Yang <kailang@realtek.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index f3ad5dea2f8d1452ec873840426b2dfe1aee2edc..c13b7fd0f58b644059f522e585c2ecc28a86d5a3 100644 (file)
@@ -7164,6 +7164,8 @@ static int patch_alc269(struct hda_codec *codec)
        case 0x10ec0235:
        case 0x10ec0255:
                spec->codec_variant = ALC269_TYPE_ALC255;
+               spec->shutup = alc256_shutup;
+               spec->init_hook = alc256_init;
                break;
        case 0x10ec0236:
        case 0x10ec0256: