]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ALSA: hda/realtek - Update ALC255 depop optimize
authorKailang Yang <kailang@realtek.com>
Wed, 25 Apr 2018 08:05:27 +0000 (16:05 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:24:08 +0000 (12:24 +0200)
BugLink: http://bugs.launchpad.net/bugs/1778265
commit ab3b8e5159b5335c81ba2d09ee5054d4a1b5a7a6 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
sound/pci/hda/patch_realtek.c

index f581582214fc56d1f0878f19fae7fc833b474878..167112525cab9b274b3a2a5c7b7681b774da62d5 100644 (file)
@@ -7169,6 +7169,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: