Skip to content

Commit 4227de2

Browse files
committed
ALSA: hda - Set up GPIO for Toshiba Satellite S50D
Toshiba Satellite S50D laptop with an IDT codec uses the GPIO4 (0x10) as the master EAPD. Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=915858 Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent a3ae255 commit 4227de2

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎sound/pci/hda/patch_sigmatel.c‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ enum {
9999
STAC_HP_ENVY_BASS,
100100
STAC_HP_BNB13_EQ,
101101
STAC_HP_ENVY_TS_BASS,
102+
STAC_92HD83XXX_GPIO10_EAPD,
102103
STAC_92HD83XXX_MODELS
103104
};
104105

@@ -2141,6 +2142,19 @@ static void stac92hd83xxx_fixup_headset_jack(struct hda_codec *codec,
21412142
spec->headset_jack = 1;
21422143
}
21432144

2145+
static void stac92hd83xxx_fixup_gpio10_eapd(struct hda_codec *codec,
2146+
const struct hda_fixup *fix,
2147+
int action)
2148+
{
2149+
struct sigmatel_spec *spec = codec->spec;
2150+
2151+
if (action != HDA_FIXUP_ACT_PRE_PROBE)
2152+
return;
2153+
spec->eapd_mask = spec->gpio_mask = spec->gpio_dir =
2154+
spec->gpio_data = 0x10;
2155+
spec->eapd_switch = 0;
2156+
}
2157+
21442158
static const struct hda_verb hp_bnb13_eq_verbs[] = {
21452159
/* 44.1KHz base */
21462160
{ 0x22, 0x7A6, 0x3E },
@@ -2656,6 +2670,10 @@ static const struct hda_fixup stac92hd83xxx_fixups[] = {
26562670
{}
26572671
},
26582672
},
2673+
[STAC_92HD83XXX_GPIO10_EAPD] = {
2674+
.type = HDA_FIXUP_FUNC,
2675+
.v.func = stac92hd83xxx_fixup_gpio10_eapd,
2676+
},
26592677
};
26602678

26612679
static const struct hda_model_fixup stac92hd83xxx_models[] = {
@@ -2861,6 +2879,8 @@ static const struct snd_pci_quirk stac92hd83xxx_fixup_tbl[] = {
28612879
SND_PCI_QUIRK(PCI_VENDOR_ID_HP, 0x148a,
28622880
"HP Mini", STAC_92HD83XXX_HP_LED),
28632881
SND_PCI_QUIRK_VENDOR(PCI_VENDOR_ID_HP, "HP", STAC_92HD83XXX_HP),
2882+
SND_PCI_QUIRK(PCI_VENDOR_ID_TOSHIBA, 0xfa91,
2883+
"Toshiba Satellite S50D", STAC_92HD83XXX_GPIO10_EAPD),
28642884
{} /* terminator */
28652885
};
28662886

0 commit comments

Comments
 (0)