diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 7fb7d01..a227381 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c @@ -2448,6 +2448,11 @@ static void stac92xx_auto_set_pinctl(struct hda_codec *codec, hda_nid_t nid, int AC_VERB_SET_PIN_WIDGET_CONTROL, pin_type); } +static unsigned int stac92xx_auto_get_pinctl(struct hda_codec *codec, hda_nid_t nid) +{ + return snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_PIN_WIDGET_CONTROL, 0x00); +} + #define stac92xx_hp_switch_info snd_ctl_boolean_mono_info static int stac92xx_hp_switch_get(struct snd_kcontrol *kcontrol, @@ -4377,6 +4382,20 @@ static int stac92xx_init(struct hda_codec *codec) #endif if (spec->dac_list) stac92xx_power_down(codec); + + snd_printd("pin control for nid:%x: %x, overwriting with %x\n", 0x0a, + stac92xx_auto_get_pinctl(codec, 0x0a), 0xc0); + stac92xx_auto_set_pinctl(codec, 0x0a, 0xc0); + snd_printd("pin control for nid:%x: %x, overwriting with %x\n", 0x0c, + stac92xx_auto_get_pinctl(codec, 0x0c), 0x40); + stac92xx_auto_set_pinctl(codec, 0x0c, 0x40); + snd_printd("pin control for nid:%x: %x, overwriting with %x\n", 0x0d, + stac92xx_auto_get_pinctl(codec, 0x0d), 0x40); + stac92xx_auto_set_pinctl(codec, 0x0d, 0x40); + snd_printd("pin control for nid:%x: %x, overwriting with %x\n", 0x0f, + stac92xx_auto_get_pinctl(codec, 0x0f), 0x40); + stac92xx_auto_set_pinctl(codec, 0x0f, 0x40); + return 0; }