diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-08-24 12:25:44 +0200 | 
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-08-24 12:25:54 +0200 | 
| commit | 5f9ece02401116b29eb04396b99ea092acb75dd8 (patch) | |
| tree | e10386e2dc63c275646b4eb0bed857da7bf86c6a /sound/pci/hda/patch_sigmatel.c | |
| parent | 9f51e24ee8b5a1595b6a5ac0c2be278a16488e75 (diff) | |
| parent | 422bef879e84104fee6dc68ded0e371dbeb5f88e (diff) | |
| download | olio-linux-3.10-5f9ece02401116b29eb04396b99ea092acb75dd8.tar.xz olio-linux-3.10-5f9ece02401116b29eb04396b99ea092acb75dd8.zip  | |
Merge commit 'v2.6.31-rc7' into x86/cleanups
Merge reason: we were on -rc1 before - go up to -rc7
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
| -rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 30 | 
1 files changed, 24 insertions, 6 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 14f3c3e0f62..6990cfcb6a3 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c @@ -76,6 +76,7 @@ enum {  	STAC_92HD73XX_AUTO,  	STAC_92HD73XX_NO_JD, /* no jack-detection */  	STAC_92HD73XX_REF, +	STAC_92HD73XX_INTEL,  	STAC_DELL_M6_AMIC,  	STAC_DELL_M6_DMIC,  	STAC_DELL_M6_BOTH, @@ -1590,8 +1591,6 @@ static struct snd_pci_quirk stac9200_cfg_tbl[] = {  	/* SigmaTel reference board */  	SND_PCI_QUIRK(PCI_VENDOR_ID_INTEL, 0x2668,  		      "DFI LanParty", STAC_REF), -	SND_PCI_QUIRK(PCI_VENDOR_ID_INTEL, 0xfb30, -		      "SigmaTel",STAC_9205_REF),  	SND_PCI_QUIRK(PCI_VENDOR_ID_DFI, 0x3101,  		      "DFI LanParty", STAC_REF),  	/* Dell laptops have BIOS problem */ @@ -1779,6 +1778,7 @@ static const char *stac92hd73xx_models[STAC_92HD73XX_MODELS] = {  	[STAC_92HD73XX_AUTO] = "auto",  	[STAC_92HD73XX_NO_JD] = "no-jd",  	[STAC_92HD73XX_REF] = "ref", +	[STAC_92HD73XX_INTEL] = "intel",  	[STAC_DELL_M6_AMIC] = "dell-m6-amic",  	[STAC_DELL_M6_DMIC] = "dell-m6-dmic",  	[STAC_DELL_M6_BOTH] = "dell-m6", @@ -1791,6 +1791,10 @@ static struct snd_pci_quirk stac92hd73xx_cfg_tbl[] = {  				"DFI LanParty", STAC_92HD73XX_REF),  	SND_PCI_QUIRK(PCI_VENDOR_ID_DFI, 0x3101,  				"DFI LanParty", STAC_92HD73XX_REF), +	SND_PCI_QUIRK(PCI_VENDOR_ID_INTEL, 0x5002, +				"Intel DG45ID", STAC_92HD73XX_INTEL), +	SND_PCI_QUIRK(PCI_VENDOR_ID_INTEL, 0x5003, +				"Intel DG45FC", STAC_92HD73XX_INTEL),  	SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x0254,  				"Dell Studio 1535", STAC_DELL_M6_DMIC),  	SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x0255, @@ -1811,6 +1815,8 @@ static struct snd_pci_quirk stac92hd73xx_cfg_tbl[] = {  				"Dell Studio 1537", STAC_DELL_M6_DMIC),  	SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x02a0,  				"Dell Studio 17", STAC_DELL_M6_DMIC), +	SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x02be, +				"Dell Studio 1555", STAC_DELL_M6_DMIC),  	{} /* terminator */  }; @@ -2266,7 +2272,7 @@ static struct snd_pci_quirk stac927x_cfg_tbl[] = {  	SND_PCI_QUIRK(PCI_VENDOR_ID_DELL,  0x01f3, "Dell Inspiron 1420", STAC_DELL_BIOS),  	SND_PCI_QUIRK(PCI_VENDOR_ID_DELL,  0x0227, "Dell Vostro 1400  ", STAC_DELL_BIOS),  	SND_PCI_QUIRK(PCI_VENDOR_ID_DELL,  0x022e, "Dell     ", STAC_DELL_BIOS), -	SND_PCI_QUIRK(PCI_VENDOR_ID_DELL,  0x022f, "Dell Inspiron 1525", STAC_DELL_3ST), +	SND_PCI_QUIRK(PCI_VENDOR_ID_DELL,  0x022f, "Dell Inspiron 1525", STAC_DELL_BIOS),  	SND_PCI_QUIRK(PCI_VENDOR_ID_DELL,  0x0242, "Dell     ", STAC_DELL_BIOS),  	SND_PCI_QUIRK(PCI_VENDOR_ID_DELL,  0x0243, "Dell     ", STAC_DELL_BIOS),  	SND_PCI_QUIRK(PCI_VENDOR_ID_DELL,  0x02ff, "Dell     ", STAC_DELL_BIOS), @@ -2344,6 +2350,8 @@ static struct snd_pci_quirk stac9205_cfg_tbl[] = {  	/* SigmaTel reference board */  	SND_PCI_QUIRK(PCI_VENDOR_ID_INTEL, 0x2668,  		      "DFI LanParty", STAC_9205_REF), +	SND_PCI_QUIRK(PCI_VENDOR_ID_INTEL, 0xfb30, +		      "SigmaTel", STAC_9205_REF),  	SND_PCI_QUIRK(PCI_VENDOR_ID_DFI, 0x3101,  		      "DFI LanParty", STAC_9205_REF),  	/* Dell */ @@ -2378,6 +2386,7 @@ static struct snd_pci_quirk stac9205_cfg_tbl[] = {  	SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x0228,  		      "Dell Vostro 1500", STAC_9205_DELL_M42),  	/* Gateway */ +	SND_PCI_QUIRK(0x107b, 0x0560, "Gateway T6834c", STAC_9205_EAPD),  	SND_PCI_QUIRK(0x107b, 0x0565, "Gateway T1616", STAC_9205_EAPD),  	{} /* terminator */  }; @@ -4065,7 +4074,7 @@ static int stac92xx_add_jack(struct hda_codec *codec,  	jack->nid = nid;  	jack->type = type; -	sprintf(name, "%s at %s %s Jack", +	snprintf(name, sizeof(name), "%s at %s %s Jack",  		snd_hda_get_jack_type(def_conf),  		snd_hda_get_jack_connectivity(def_conf),  		snd_hda_get_jack_location(def_conf)); @@ -5642,6 +5651,13 @@ static int patch_stac927x(struct hda_codec *codec)  		/* GPIO2 High = Enable EAPD */  		spec->eapd_mask = spec->gpio_mask = spec->gpio_dir = 0x04;  		spec->gpio_data = 0x04; +		switch (codec->subsystem_id) { +		case 0x1028022f: +			/* correct EAPD to be GPIO0 */ +			spec->eapd_mask = spec->gpio_mask = 0x01; +			spec->gpio_dir = spec->gpio_data = 0x01; +			break; +		};  		spec->dmic_nids = stac927x_dmic_nids;  		spec->num_dmics = STAC927X_NUM_DMICS; @@ -5854,6 +5870,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 +5884,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 +5897,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;  |