summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorDavid Wang <davidwang@zhaoxin.com>2018-04-16 11:48:09 +0200
committerTakashi Iwai <tiwai@suse.de>2018-04-16 13:56:48 +0200
commitaf52f9982e410edac21ca4b49563053ffc9da1eb (patch)
treeca5f51c2ccd0da1f8cf8697ee51945a975d04483 /sound
parentALSA: line6: Use correct endpoint type for midi output (diff)
downloadlinux-af52f9982e410edac21ca4b49563053ffc9da1eb.tar.xz
linux-af52f9982e410edac21ca4b49563053ffc9da1eb.zip
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>
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 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;
}