From: Takashi Iwai <tiwai@suse.de>
To: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ALSA: hda: Only write ICH6_PCIREG_TCSEL on Intel systems.
Date: Thu, 10 Mar 2011 16:44:35 +0100 [thread overview]
Message-ID: <s5h4o7bm13w.wl%tiwai@suse.de> (raw)
In-Reply-To: <20110310152212.GD6376@os.inf.tu-dresden.de>
At Thu, 10 Mar 2011 16:22:12 +0100,
Adam Lackorzynski wrote:
>
> Hi,
>
> azx_init_pci() always writes PCI config register ICH6_PCIREG_TCSEL
> although this looks to be only defined on Intel systems and has a
> different meaning on AMD systems. On AMD systems the PCI interrupt pin
> control register is modified instead. Since the register has 'ICH' in
> its name I pulled the call to update_pci_byte() into the switch block to
> only happen on Intel variants. I'm not sure on the other variants.
So, you did check only AMD systems, right?
Then it's safer to exclude this for AMD but apply to others for the
time being, since we haven't got any relevant bug reports by this.
Could you re-submit with that change?
The fact that it has ICH prefix doesn't mean much -- it's just like
the driver is called snd-hda-intel. The first hardware, the first
set. (At that time, we weren't sure at that time that HD-audio spec
would be followed widely by most vendors.)
thanks,
Takashi
>
> Signed-off-by: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
> ---
> sound/pci/hda/hda_intel.c | 15 ++++++++-------
> 1 files changed, 8 insertions(+), 7 deletions(-)
>
> diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
> index fcedad9..41debbd 100644
> --- a/sound/pci/hda/hda_intel.c
> +++ b/sound/pci/hda/hda_intel.c
> @@ -1049,13 +1049,6 @@ static void azx_init_pci(struct azx *chip)
> {
> unsigned short snoop;
>
> - /* Clear bits 0-2 of PCI register TCSEL (at offset 0x44)
> - * TCSEL == Traffic Class Select Register, which sets PCI express QOS
> - * Ensuring these bits are 0 clears playback static on some HD Audio
> - * codecs
> - */
> - update_pci_byte(chip->pci, ICH6_PCIREG_TCSEL, 0x07, 0);
> -
> switch (chip->driver_type) {
> case AZX_DRIVER_ATI:
> /* For ATI SB450 azalia HD audio, we need to enable snoop */
> @@ -1087,6 +1080,14 @@ static void azx_init_pci(struct azx *chip)
> (snoop & INTEL_SCH_HDA_DEVC_NOSNOOP)
> ? "Failed" : "OK");
> }
> + /* fall through */
> + case AZX_DRIVER_ICH:
> + /* Clear bits 0-2 of PCI register TCSEL (at offset 0x44)
> + * TCSEL == Traffic Class Select Register, which sets PCI
> + * express QOS Ensuring these bits are 0 clears playback
> + * static on some HD Audio codecs
> + */
> + update_pci_byte(chip->pci, ICH6_PCIREG_TCSEL, 0x07, 0);
> break;
>
> }
> --
> 1.7.2.3
>
>
> Adam
> --
> Adam adam@os.inf.tu-dresden.de
> Lackorzynski http://os.inf.tu-dresden.de/~adam/
>
next prev parent reply other threads:[~2011-03-10 15:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-10 15:22 [PATCH] ALSA: hda: Only write ICH6_PCIREG_TCSEL on Intel systems Adam Lackorzynski
2011-03-10 15:44 ` Takashi Iwai [this message]
2011-03-10 16:41 ` Adam Lackorzynski
2011-03-10 16:46 ` 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=s5h4o7bm13w.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=adam@os.inf.tu-dresden.de \
--cc=linux-kernel@vger.kernel.org \
/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.