diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-06-05 09:25:18 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-06-05 09:25:18 -0400 |
commit | 2c38d990fbdfc76176b03d60bc5e1a93d270760d (patch) | |
tree | 7bf636bf2d5e02ed3c6107c4ce094c1d7b05da86 /sound/pci | |
parent | c9e34d1525ffd554f29dc01674eac279de2e759d (diff) |
ALSA: hda/via - Use standard snd_hda_shutup_pins()
Just a minor clean up.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_via.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index e5245544eb52..cf31b664d2ed 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c | |||
@@ -480,14 +480,9 @@ static int via_suspend(struct hda_codec *codec) | |||
480 | struct via_spec *spec = codec->spec; | 480 | struct via_spec *spec = codec->spec; |
481 | vt1708_stop_hp_work(codec); | 481 | vt1708_stop_hp_work(codec); |
482 | 482 | ||
483 | if (spec->codec_type == VT1802) { | 483 | /* Fix pop noise on headphones */ |
484 | /* Fix pop noise on headphones */ | 484 | if (spec->codec_type == VT1802) |
485 | int i; | 485 | snd_hda_shutup_pins(codec); |
486 | for (i = 0; i < spec->gen.autocfg.hp_outs; i++) | ||
487 | snd_hda_codec_write(codec, spec->gen.autocfg.hp_pins[i], | ||
488 | 0, AC_VERB_SET_PIN_WIDGET_CONTROL, | ||
489 | 0x00); | ||
490 | } | ||
491 | 486 | ||
492 | return 0; | 487 | return 0; |
493 | } | 488 | } |