All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Wang <davidwang@zhaoxin.com>
To: <perex@perex.cz>, <tiwai@suse.com>, <vinod.koul@intel.com>,
	<Vijendar.Mukunda@amd.com>, <subhransu.s.prusty@intel.com>,
	<linux-kernel@vger.kernel.org>, <alsa-devel@alsa-project.org>
Cc: <brucechang@via-alliance.com>, <cooperyan@zhaoxin.com>,
	<qiyuanwang@zhaoxin.com>, <benjaminpan@viatech.com>,
	<lukelin@viacpu.com>, <timguo@zhaoxin.com>,
	David Wang <davidwang@zhaoxin.com>
Subject: [PATCH] ALSA: hda - New VIA controller suppor no-snoop path
Date: Mon, 16 Apr 2018 17:48:09 +0800	[thread overview]
Message-ID: <1523872089-6381-1-git-send-email-davidwang@zhaoxin.com> (raw)

This patch is used to tell kernel that new VIA HDAC controller also
support no-snoop path.

Signed-off-by: David Wang <davidwang@zhaoxin.com>
---
 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

WARNING: multiple messages have this Message-ID (diff)
From: David Wang <davidwang@zhaoxin.com>
To: perex@perex.cz, tiwai@suse.com, vinod.koul@intel.com,
	Vijendar.Mukunda@amd.com, subhransu.s.prusty@intel.com,
	linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org
Cc: brucechang@via-alliance.com, cooperyan@zhaoxin.com,
	qiyuanwang@zhaoxin.com, benjaminpan@viatech.com,
	lukelin@viacpu.com, timguo@zhaoxin.com,
	David Wang <davidwang@zhaoxin.com>
Subject: [PATCH] ALSA: hda - New VIA controller suppor no-snoop path
Date: Mon, 16 Apr 2018 17:48:09 +0800	[thread overview]
Message-ID: <1523872089-6381-1-git-send-email-davidwang@zhaoxin.com> (raw)

This patch is used to tell kernel that new VIA HDAC controller also
support no-snoop path.

Signed-off-by: David Wang <davidwang@zhaoxin.com>
---
 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

             reply	other threads:[~2018-04-16  9:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-16  9:48 David Wang [this message]
2018-04-16  9:48 ` [PATCH] ALSA: hda - New VIA controller suppor no-snoop path David Wang
2018-04-16 11:57 ` Takashi Iwai
2018-04-16 11:57   ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1523872089-6381-1-git-send-email-davidwang@zhaoxin.com \
    --to=davidwang@zhaoxin.com \
    --cc=Vijendar.Mukunda@amd.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=benjaminpan@viatech.com \
    --cc=brucechang@via-alliance.com \
    --cc=cooperyan@zhaoxin.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lukelin@viacpu.com \
    --cc=perex@perex.cz \
    --cc=qiyuanwang@zhaoxin.com \
    --cc=subhransu.s.prusty@intel.com \
    --cc=timguo@zhaoxin.com \
    --cc=tiwai@suse.com \
    --cc=vinod.koul@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.