summaryrefslogtreecommitdiff
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:43:06 +0200
commit1798e3019c297751026029a62f09f24c2eff0c5e (patch)
tree28d8e4be1980683c636fdb02fc341ec9eb82b075
parent96e48682446474add6afee63e7c06432f5ec7165 (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>
-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 c507c69029e3..738e1fe90312 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -1645,7 +1645,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;
}