diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-07-20 02:01:36 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-07-20 09:12:41 -0400 |
commit | b04add956616b6d89ff21da749b46ad2bd58ef32 (patch) | |
tree | af5f68451a67b41daa8290b3a72a5c9a99cf02f6 /sound | |
parent | 42b95f0c6b524b5a670dd17533a3522db368f600 (diff) |
ALSA: hda - Fix pin-setup for Sony VAIO with STAC9872 codecs
The recent rewrite of the codec parser for STAC9872 caused a regression
for some Sony VAIO models that don't give proper pin default configs
by BIOS. Even using model=vaio doesn't work because the pin definitions
are set after the pin overrides.
This patch fixes the pin definitions in patch_stac9872() to be put
in the right place before the pin overrides. Also the patch adds the
new quirk entry for VAIO F/S to have the correct pin default configs.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Cc: <stable@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index d9b89ba2b653..da7f9f65c047 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -5855,6 +5855,8 @@ static unsigned int *stac9872_brd_tbl[STAC_9872_MODELS] = { | |||
5855 | }; | 5855 | }; |
5856 | 5856 | ||
5857 | static struct snd_pci_quirk stac9872_cfg_tbl[] = { | 5857 | static struct snd_pci_quirk stac9872_cfg_tbl[] = { |
5858 | SND_PCI_QUIRK_MASK(0x104d, 0xfff0, 0x81e0, | ||
5859 | "Sony VAIO F/S", STAC_9872_VAIO), | ||
5858 | {} /* terminator */ | 5860 | {} /* terminator */ |
5859 | }; | 5861 | }; |
5860 | 5862 | ||
@@ -5867,6 +5869,8 @@ static int patch_stac9872(struct hda_codec *codec) | |||
5867 | if (spec == NULL) | 5869 | if (spec == NULL) |
5868 | return -ENOMEM; | 5870 | return -ENOMEM; |
5869 | codec->spec = spec; | 5871 | codec->spec = spec; |
5872 | spec->num_pins = ARRAY_SIZE(stac9872_pin_nids); | ||
5873 | spec->pin_nids = stac9872_pin_nids; | ||
5870 | 5874 | ||
5871 | spec->board_config = snd_hda_check_board_config(codec, STAC_9872_MODELS, | 5875 | spec->board_config = snd_hda_check_board_config(codec, STAC_9872_MODELS, |
5872 | stac9872_models, | 5876 | stac9872_models, |
@@ -5878,8 +5882,6 @@ static int patch_stac9872(struct hda_codec *codec) | |||
5878 | stac92xx_set_config_regs(codec, | 5882 | stac92xx_set_config_regs(codec, |
5879 | stac9872_brd_tbl[spec->board_config]); | 5883 | stac9872_brd_tbl[spec->board_config]); |
5880 | 5884 | ||
5881 | spec->num_pins = ARRAY_SIZE(stac9872_pin_nids); | ||
5882 | spec->pin_nids = stac9872_pin_nids; | ||
5883 | spec->multiout.dac_nids = spec->dac_nids; | 5885 | spec->multiout.dac_nids = spec->dac_nids; |
5884 | spec->num_adcs = ARRAY_SIZE(stac9872_adc_nids); | 5886 | spec->num_adcs = ARRAY_SIZE(stac9872_adc_nids); |
5885 | spec->adc_nids = stac9872_adc_nids; | 5887 | spec->adc_nids = stac9872_adc_nids; |