summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorDavid Wang <davidwang@zhaoxin.com>2018-04-16 17:48:09 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-24 09:32:10 +0200
commitcebd9b67fe0bdbb55b45533a3d911b86bde88174 (patch)
treee9eacdf365c718b2b16123aa2b6cd304a7101377 /sound
parentfc338748e3e7740113c1c26e2248d919dd8cc05c (diff)
ALSA: hda - New VIA controller suppor no-snoop path
commit af52f9982e410edac21ca4b49563053ffc9da1eb upstream. 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/hda_intel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index fbd00821e326..3be91696ac35 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -1549,7 +1549,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;
}