Commit 2c38d990 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda/via - Use standard snd_hda_shutup_pins()

Just a minor clean up.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent c9e34d15
...@@ -480,14 +480,9 @@ static int via_suspend(struct hda_codec *codec) ...@@ -480,14 +480,9 @@ static int via_suspend(struct hda_codec *codec)
struct via_spec *spec = codec->spec; struct via_spec *spec = codec->spec;
vt1708_stop_hp_work(codec); vt1708_stop_hp_work(codec);
if (spec->codec_type == VT1802) { /* Fix pop noise on headphones */
/* Fix pop noise on headphones */ if (spec->codec_type == VT1802)
int i; snd_hda_shutup_pins(codec);
for (i = 0; i < spec->gen.autocfg.hp_outs; i++)
snd_hda_codec_write(codec, spec->gen.autocfg.hp_pins[i],
0, AC_VERB_SET_PIN_WIDGET_CONTROL,
0x00);
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment