Skip to content

Commit a1d1251

Browse files
committed
Merge branch 'fix/hda' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
* 'fix/hda' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: ALSA: hda - Fix probe of Toshiba laptops with ALC268 codec ALSA: hda: add model for Intel DG45ID/DG45FC boards ALSA: hda: enable speaker output for Compaq 6530s/6531s
2 parents 6c30c53 + 3abf2f3 commit a1d1251

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

sound/pci/hda/patch_analog.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3835,9 +3835,11 @@ static struct hda_verb ad1884a_laptop_verbs[] = {
38353835
/* Port-F (int speaker) mixer - route only from analog mixer */
38363836
{0x0b, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)},
38373837
{0x0b, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(1)},
3838-
/* Port-F pin */
3839-
{0x16, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP},
3838+
/* Port-F (int speaker) pin */
3839+
{0x16, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
38403840
{0x16, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE},
3841+
/* required for compaq 6530s/6531s speaker output */
3842+
{0x1c, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
38413843
/* Port-C pin - internal mic-in */
38423844
{0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80},
38433845
{0x14, AC_VERB_SET_AMP_GAIN_MUTE, 0x7002}, /* raise mic as default */

sound/pci/hda/patch_realtek.c

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12521,15 +12521,22 @@ static struct snd_pci_quirk alc268_cfg_tbl[] = {
1252112521
ALC268_TOSHIBA),
1252212522
SND_PCI_QUIRK(0x1043, 0x1205, "ASUS W7J", ALC268_3ST),
1252312523
SND_PCI_QUIRK(0x1170, 0x0040, "ZEPTO", ALC268_ZEPTO),
12524-
SND_PCI_QUIRK_MASK(0x1179, 0xff00, 0xff00, "TOSHIBA A/Lx05",
12525-
ALC268_TOSHIBA),
1252612524
SND_PCI_QUIRK(0x14c0, 0x0025, "COMPAL IFL90/JFL-92", ALC268_TOSHIBA),
1252712525
SND_PCI_QUIRK(0x152d, 0x0763, "Diverse (CPR2000)", ALC268_ACER),
1252812526
SND_PCI_QUIRK(0x152d, 0x0771, "Quanta IL1", ALC267_QUANTA_IL1),
1252912527
SND_PCI_QUIRK(0x1854, 0x1775, "LG R510", ALC268_DELL),
1253012528
{}
1253112529
};
1253212530

12531+
/* Toshiba laptops have no unique PCI SSID but only codec SSID */
12532+
static struct snd_pci_quirk alc268_ssid_cfg_tbl[] = {
12533+
SND_PCI_QUIRK(0x1179, 0xff0a, "TOSHIBA X-200", ALC268_AUTO),
12534+
SND_PCI_QUIRK(0x1179, 0xff0e, "TOSHIBA X-200 HDMI", ALC268_AUTO),
12535+
SND_PCI_QUIRK_MASK(0x1179, 0xff00, 0xff00, "TOSHIBA A/Lx05",
12536+
ALC268_TOSHIBA),
12537+
{}
12538+
};
12539+
1253312540
static struct alc_config_preset alc268_presets[] = {
1253412541
[ALC267_QUANTA_IL1] = {
1253512542
.mixers = { alc267_quanta_il1_mixer, alc268_beep_mixer },
@@ -12696,6 +12703,10 @@ static int patch_alc268(struct hda_codec *codec)
1269612703
alc268_models,
1269712704
alc268_cfg_tbl);
1269812705

12706+
if (board_config < 0 || board_config >= ALC268_MODEL_LAST)
12707+
board_config = snd_hda_check_board_codec_sid_config(codec,
12708+
ALC882_MODEL_LAST, alc268_models, alc268_ssid_cfg_tbl);
12709+
1269912710
if (board_config < 0 || board_config >= ALC268_MODEL_LAST) {
1270012711
printk(KERN_INFO "hda_codec: Unknown model for %s, "
1270112712
"trying auto-probe from BIOS...\n", codec->chip_name);

sound/pci/hda/patch_sigmatel.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ enum {
7676
STAC_92HD73XX_AUTO,
7777
STAC_92HD73XX_NO_JD, /* no jack-detection */
7878
STAC_92HD73XX_REF,
79+
STAC_92HD73XX_INTEL,
7980
STAC_DELL_M6_AMIC,
8081
STAC_DELL_M6_DMIC,
8182
STAC_DELL_M6_BOTH,
@@ -1777,6 +1778,7 @@ static const char *stac92hd73xx_models[STAC_92HD73XX_MODELS] = {
17771778
[STAC_92HD73XX_AUTO] = "auto",
17781779
[STAC_92HD73XX_NO_JD] = "no-jd",
17791780
[STAC_92HD73XX_REF] = "ref",
1781+
[STAC_92HD73XX_INTEL] = "intel",
17801782
[STAC_DELL_M6_AMIC] = "dell-m6-amic",
17811783
[STAC_DELL_M6_DMIC] = "dell-m6-dmic",
17821784
[STAC_DELL_M6_BOTH] = "dell-m6",
@@ -1789,6 +1791,10 @@ static struct snd_pci_quirk stac92hd73xx_cfg_tbl[] = {
17891791
"DFI LanParty", STAC_92HD73XX_REF),
17901792
SND_PCI_QUIRK(PCI_VENDOR_ID_DFI, 0x3101,
17911793
"DFI LanParty", STAC_92HD73XX_REF),
1794+
SND_PCI_QUIRK(PCI_VENDOR_ID_INTEL, 0x5002,
1795+
"Intel DG45ID", STAC_92HD73XX_INTEL),
1796+
SND_PCI_QUIRK(PCI_VENDOR_ID_INTEL, 0x5003,
1797+
"Intel DG45FC", STAC_92HD73XX_INTEL),
17921798
SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x0254,
17931799
"Dell Studio 1535", STAC_DELL_M6_DMIC),
17941800
SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x0255,

0 commit comments

Comments
 (0)