mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Robin Holt <holt@sgi.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Commit 1e137f92 broke my Vaio VGN-FE550G's hda_intel driver.
Date: Mon, 20 Jul 2009 08:00:31 +0200	[thread overview]
Message-ID: <s5heisbc2rk.wl%tiwai@suse.de> (raw)
In-Reply-To: <20090719225538.GK6876@sgi.com>

At Sun, 19 Jul 2009 17:55:38 -0500,
Robin Holt wrote:
> 
> > What about to pass model=vaio?  Doesn't it work?
> 
> That didn't change the behavior.
> 
> > In anyways, please run alsa-info.sh with --no-upload option, and attach
> > the generated file.
> 
> Here is the output from alsa-info.sh.  This was from the module load without
> the model=vaio.  Below, (search for ---Robin---) is the output from alsa-info.sh
> with model=vaio.

Thanks.  This look really like a bug.  The pin definition was wrongly
placed.  It should have been before the pin overrides.

Could you try the patch below?  With the patch, the driver would work
even without any model option.


Takashi

---
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index 41b5b3a..0a03b5c 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -5854,6 +5854,8 @@ static unsigned int *stac9872_brd_tbl[STAC_9872_MODELS] = {
 };
 
 static struct snd_pci_quirk stac9872_cfg_tbl[] = {
+	SND_PCI_QUIRK_MASK(0x104d, 0xfff0, 0x81e0,
+			   "Sony VAIO F/S", STAC_9872_VAIO),
 	{} /* terminator */
 };
 
@@ -5866,6 +5868,8 @@ static int patch_stac9872(struct hda_codec *codec)
 	if (spec == NULL)
 		return -ENOMEM;
 	codec->spec = spec;
+	spec->num_pins = ARRAY_SIZE(stac9872_pin_nids);
+	spec->pin_nids = stac9872_pin_nids;
 
 	spec->board_config = snd_hda_check_board_config(codec, STAC_9872_MODELS,
 							stac9872_models,
@@ -5877,8 +5881,6 @@ static int patch_stac9872(struct hda_codec *codec)
 		stac92xx_set_config_regs(codec,
 					 stac9872_brd_tbl[spec->board_config]);
 
-	spec->num_pins = ARRAY_SIZE(stac9872_pin_nids);
-	spec->pin_nids = stac9872_pin_nids;
 	spec->multiout.dac_nids = spec->dac_nids;
 	spec->num_adcs = ARRAY_SIZE(stac9872_adc_nids);
 	spec->adc_nids = stac9872_adc_nids;

  reply	other threads:[~2009-07-20  6:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-19 14:01 Robin Holt
2009-07-19 16:04 ` Takashi Iwai
2009-07-19 22:55   ` Robin Holt
2009-07-20  6:00     ` Takashi Iwai [this message]
2009-07-20 12:26       ` Robin Holt
2009-07-20 13:14         ` Takashi Iwai
2009-07-20 13:40           ` Robin Holt
2009-07-20 13:41             ` 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=s5heisbc2rk.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=holt@sgi.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome