From: David Henningsson Date: Thu, 9 Aug 2012 08:56:12 +0000 (+0200) Subject: ALSA: hda - Fix pop noise in headphones on S3 for Asus X55A, X55V X-Git-Tag: v3.6~72^2~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94c142a160d63edac0e1fca7848960dcf75dd2a9;p=platform%2Fkernel%2Flinux-amlogic.git ALSA: hda - Fix pop noise in headphones on S3 for Asus X55A, X55V To turn off pin control for the pin was tested, and helped against this issue. BugLink: https://bugs.launchpad.net/bugs/1034779 Tested-by: Chih-Hsyuan Ho Signed-off-by: David Henningsson Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index 80d90cb..4307717 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c @@ -1752,6 +1752,14 @@ static int via_suspend(struct hda_codec *codec) { struct via_spec *spec = codec->spec; vt1708_stop_hp_work(spec); + + if (spec->codec_type == VT1802) { + /* Fix pop noise on headphones */ + int i; + for (i = 0; i < spec->autocfg.hp_outs; i++) + snd_hda_set_pin_ctl(codec, spec->autocfg.hp_pins[i], 0); + } + return 0; } #endif