From: David Wang Date: Mon, 16 Apr 2018 09:48:09 +0000 (+0800) Subject: ALSA: hda - New VIA controller suppor no-snoop path X-Git-Tag: v4.1.52~94 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9d2fbe826b3efac986d6f28084d3e84dd702f542;p=users%2Fdwmw2%2Flinux.git ALSA: hda - New VIA controller suppor no-snoop path [ 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 Cc: Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index b8886d4930834..8c9345949794c 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -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; }