From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754107AbeDPJsV (ORCPT ); Mon, 16 Apr 2018 05:48:21 -0400 Received: from zxshcas2.zhaoxin.com ([180.169.121.92]:50001 "EHLO ZXSHCAS2.zhaoxin.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752931AbeDPJsT (ORCPT ); Mon, 16 Apr 2018 05:48:19 -0400 From: David Wang To: , , , , , , CC: , , , , , , David Wang Subject: [PATCH] ALSA: hda - New VIA controller suppor no-snoop path Date: Mon, 16 Apr 2018 17:48:09 +0800 Message-ID: <1523872089-6381-1-git-send-email-davidwang@zhaoxin.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.29.8.54] X-ClientProxiedBy: zxbjmbx1.zhaoxin.com (10.29.252.163) To zxbjmbx3.zhaoxin.com (10.29.252.165) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch is used to tell kernel that new VIA HDAC controller also support no-snoop path. Signed-off-by: David Wang --- sound/pci/hda/hda_intel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 96143df..439e8e9 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -1640,7 +1640,7 @@ 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; } -- 1.9.1