aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_sigmatel.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
-rw-r--r--sound/pci/hda/patch_sigmatel.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index 69dd5a4e52f2..dc1d9f124578 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -4385,18 +4385,8 @@ static void stac92xx_free_kctls(struct hda_codec *codec)
4385static void stac92xx_shutup(struct hda_codec *codec) 4385static void stac92xx_shutup(struct hda_codec *codec)
4386{ 4386{
4387 struct sigmatel_spec *spec = codec->spec; 4387 struct sigmatel_spec *spec = codec->spec;
4388 int i;
4389 hda_nid_t nid;
4390 4388
4391 /* reset each pin before powering down DAC/ADC to avoid click noise */ 4389 snd_hda_shutup_pins(codec);
4392 nid = codec->start_nid;
4393 for (i = 0; i < codec->num_nodes; i++, nid++) {
4394 unsigned int wcaps = get_wcaps(codec, nid);
4395 unsigned int wid_type = get_wcaps_type(wcaps);
4396 if (wid_type == AC_WID_PIN)
4397 snd_hda_codec_read(codec, nid, 0,
4398 AC_VERB_SET_PIN_WIDGET_CONTROL, 0);
4399 }
4400 4390
4401 if (spec->eapd_mask) 4391 if (spec->eapd_mask)
4402 stac_gpio_set(codec, spec->gpio_mask, 4392 stac_gpio_set(codec, spec->gpio_mask,