ALSA: hda/via - Use standard snd_hda_shutup_pins()

Just a minor clean up.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2013-06-05 15:25:18 +02:00
Родитель c9e34d1525
Коммит 2c38d990fb
1 изменённых файлов: 3 добавлений и 8 удалений

Просмотреть файл

@ -480,14 +480,9 @@ static int via_suspend(struct hda_codec *codec)
struct via_spec *spec = codec->spec;
vt1708_stop_hp_work(codec);
if (spec->codec_type == VT1802) {
/* Fix pop noise on headphones */
int i;
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);
}
if (spec->codec_type == VT1802)
snd_hda_shutup_pins(codec);
return 0;
}