]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ALSA: hda - New VIA controller suppor no-snoop path
authorDavid Wang <davidwang@zhaoxin.com>
Mon, 16 Apr 2018 09:48:09 +0000 (17:48 +0800)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:35 +0000 (21:36 -0400)
[ Upstream commit af52f9982e410edac21ca4b49563053ffc9da1eb ]

This patch is used to tell kernel that new VIA HDAC controller also
support no-snoop path.

[ minor coding style fix by tiwai ]

Signed-off-by: David Wang <davidwang@zhaoxin.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
sound/pci/hda/hda_intel.c

index b8886d4930834e491839c94cf295e3114117d050..8c9345949794cd5f0d782b3fce93d60e7ad3080a 100644 (file)
@@ -1393,7 +1393,8 @@ static void azx_check_snoop_available(struct azx *chip)
                 */
                u8 val;
                pci_read_config_byte(chip->pci, 0x42, &val);
-               if (!(val & 0x80) && chip->pci->revision == 0x30)
+               if (!(val & 0x80) && (chip->pci->revision == 0x30 ||
+                                     chip->pci->revision == 0x20))
                        snoop = false;
        }