alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Andiry Xu <andiry.xu@amd.com>
Cc: arindam.nath@amd.com, alsa-devel@alsa-project.org
Subject: Re: [PATCH] ALSA HDA: Add support for new AMD products
Date: Wed, 14 Dec 2011 09:33:20 +0100	[thread overview]
Message-ID: <s5hobvba6y7.wl%tiwai@suse.de> (raw)
In-Reply-To: <1323850227-1718-1-git-send-email-andiry.xu@amd.com>

At Wed, 14 Dec 2011 16:10:27 +0800,
Andiry Xu wrote:
> 
> This patch adds HDMI audio support for new AMD products. As HW default
> disable snoop, force non-snoop mode in HD audio driver.
> 
> Signed-off-by: Andiry Xu <andiry.xu@amd.com>

Thanks, applied now.

Also I committed a clean up patch to merge both VIA and AMD-HDMI
non-snoop check in a single place.


Takashi

> ---
>  sound/pci/hda/hda_intel.c |   13 +++++++++++++
>  1 files changed, 13 insertions(+), 0 deletions(-)
> 
> diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
> index d1582dd..9f7c901a 100644
> --- a/sound/pci/hda/hda_intel.c
> +++ b/sound/pci/hda/hda_intel.c
> @@ -487,6 +487,7 @@ enum {
>  	AZX_DRIVER_SCH,
>  	AZX_DRIVER_ATI,
>  	AZX_DRIVER_ATIHDMI,
> +	AZX_DRIVER_ATIHDMI_NS,
>  	AZX_DRIVER_VIA,
>  	AZX_DRIVER_SIS,
>  	AZX_DRIVER_ULI,
> @@ -533,6 +534,7 @@ static char *driver_short_names[] __devinitdata = {
>  	[AZX_DRIVER_SCH] = "HDA Intel MID",
>  	[AZX_DRIVER_ATI] = "HDA ATI SB",
>  	[AZX_DRIVER_ATIHDMI] = "HDA ATI HDMI",
> +	[AZX_DRIVER_ATIHDMI_NS] = "HDA ATI HDMI",
>  	[AZX_DRIVER_VIA] = "HDA VIA VT82xx",
>  	[AZX_DRIVER_SIS] = "HDA SIS966",
>  	[AZX_DRIVER_ULI] = "HDA ULI M5461",
> @@ -2678,6 +2680,8 @@ static int __devinit azx_create(struct snd_card *card, struct pci_dev *pci,
>  
>  	chip->single_cmd = single_cmd;
>  	chip->snoop = hda_snoop;
> +	if (chip->driver_type == AZX_DRIVER_ATIHDMI_NS)
> +		chip->snoop = 0;
>  
>  	if (bdl_pos_adj[dev] < 0) {
>  		switch (chip->driver_type) {
> @@ -2776,6 +2780,7 @@ static int __devinit azx_create(struct snd_card *card, struct pci_dev *pci,
>  			chip->capture_streams = ULI_NUM_CAPTURE;
>  			break;
>  		case AZX_DRIVER_ATIHDMI:
> +		case AZX_DRIVER_ATIHDMI_NS:
>  			chip->playback_streams = ATIHDMI_NUM_PLAYBACK;
>  			chip->capture_streams = ATIHDMI_NUM_CAPTURE;
>  			break;
> @@ -3037,6 +3042,14 @@ static DEFINE_PCI_DEVICE_TABLE(azx_ids) = {
>  	  .driver_data = AZX_DRIVER_ATIHDMI | AZX_DCAPS_PRESET_ATI_HDMI },
>  	{ PCI_DEVICE(0x1002, 0xaa48),
>  	  .driver_data = AZX_DRIVER_ATIHDMI | AZX_DCAPS_PRESET_ATI_HDMI },
> +	{ PCI_DEVICE(0x1002, 0x9902),
> +	  .driver_data = AZX_DRIVER_ATIHDMI_NS | AZX_DCAPS_PRESET_ATI_HDMI },
> +	{ PCI_DEVICE(0x1002, 0xaaa0),
> +	  .driver_data = AZX_DRIVER_ATIHDMI_NS | AZX_DCAPS_PRESET_ATI_HDMI },
> +	{ PCI_DEVICE(0x1002, 0xaaa8),
> +	  .driver_data = AZX_DRIVER_ATIHDMI_NS | AZX_DCAPS_PRESET_ATI_HDMI },
> +	{ PCI_DEVICE(0x1002, 0xaab0),
> +	  .driver_data = AZX_DRIVER_ATIHDMI_NS | AZX_DCAPS_PRESET_ATI_HDMI },
>  	/* VIA VT8251/VT8237A */
>  	{ PCI_DEVICE(0x1106, 0x3288),
>  	  .driver_data = AZX_DRIVER_VIA | AZX_DCAPS_POSFIX_VIA },
> -- 
> 1.7.4.1
> 
> 

           reply	other threads:[~2011-12-14  8:33 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1323850227-1718-1-git-send-email-andiry.xu@amd.com>]

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=s5hobvba6y7.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=andiry.xu@amd.com \
    --cc=arindam.nath@amd.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).