All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [1/2]ALSA: hda: add Zhaoxin HDAC non-snoop support
       [not found] <1ff2d660f086496ea9f56f5f8b90682f@zhaoxin.com>
@ 2021-04-14 12:18 ` Takashi Iwai
  0 siblings, 0 replies; only message in thread
From: Takashi Iwai @ 2021-04-14 12:18 UTC (permalink / raw)
  To: Hans Hu(SH-RD)
  Cc: 'alsa-devel@alsa-project.org', Zhuangzhuang He(SH-RD),
	Leo Liu(XA-RD), Cobe Chen(BJ-RD), Tim Guo(BJ-RD),
	Tony W. Wang(XA-RD)

On Wed, 14 Apr 2021 14:00:19 +0200,
Hans Hu(SH-RD) wrote:
> 
> Hi Takashi,
> 
> Recently, our(AZX_DRIVER_ZHAOXIN) HDAC controller has added the feature of non-snoop mode, we have written a draft patch for it and hope to be accepted.

The code change looks good.  Please go ahead with the proper
submission.


thanks,

Takashi

> 
> diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index b59b0f3..420b728 100644
> --- a/sound/pci/hda/hda_intel.c
> +++ b/sound/pci/hda/hda_intel.c
> @@ -1702,6 +1702,14 @@ static void azx_check_snoop_available(struct azx *chip)
>  snoop = false;
>  }
> 
> +if (azx_get_snoop_type(chip) == AZX_SNOOP_TYPE_NONE &&
> +    chip->driver_type == AZX_DRIVER_ZHAOXIN) {
> +u8 val;
> +pci_read_config_byte(chip->pci, 0x42, &val);
> +if (!(val & 0x80))
> +snoop = false;
> +}
> +
>  if (chip->driver_caps & AZX_DCAPS_SNOOP_OFF)
>  snoop = false;
> 
> 
> Thanks,
>  Hans Hu :)
> 
> 
> 保密声明:
> 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
> CONFIDENTIAL NOTE:
> This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-14 12:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1ff2d660f086496ea9f56f5f8b90682f@zhaoxin.com>
2021-04-14 12:18 ` [1/2]ALSA: hda: add Zhaoxin HDAC non-snoop support Takashi Iwai

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.