summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Wang <davidwang@zhaoxin.com>2018-04-16 17:48:09 +0800
committerTakashi Iwai <tiwai@suse.de>2018-04-16 13:56:48 +0200
commitaf52f9982e410edac21ca4b49563053ffc9da1eb (patch)
treeca5f51c2ccd0da1f8cf8697ee51945a975d04483
parent7ecb46e9ee9af18e304eb9e7d6804c59a408e846 (diff)
downloadlinux-af52f9982e410edac21ca4b49563053ffc9da1eb.tar.bz2
ALSA: hda - New VIA controller suppor no-snoop path
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>
-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 ccffce068634..fece779f6260 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;
}