From b21ecc60ff41e3bd6a0a331a158fba2666292ae1 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Sun, 27 Dec 2009 11:22:24 +0100 Subject: [PATCH] --- yaml --- r: 182647 b: refs/heads/master c: a4e09aa3cf592d9f084ff4ceb216be40c4c265dc h: refs/heads/master i: 182645: c37169deddb91bb3d5a7a94e5fa0716d4ac1d7fc 182643: 9a5de0e431effa59a0cd516bacf687ec7ab2eb6d 182639: 00be9a13cc37af0c90ca2b358bef16e647f96fd3 v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/patch_realtek.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 74fb40022707..161b57982cca 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 92ee6162c48fab24f0676969f0f147fc12f8f21c +refs/heads/master: a4e09aa3cf592d9f084ff4ceb216be40c4c265dc diff --git a/trunk/sound/pci/hda/patch_realtek.c b/trunk/sound/pci/hda/patch_realtek.c index 6361e6b3c9c5..cd6d139b4fd5 100644 --- a/trunk/sound/pci/hda/patch_realtek.c +++ b/trunk/sound/pci/hda/patch_realtek.c @@ -3693,6 +3693,11 @@ static int alc_build_pcms(struct hda_codec *codec) return 0; } +static inline void alc_shutup(struct hda_codec *codec) +{ + snd_hda_shutup_pins(codec); +} + static void alc_free_kctls(struct hda_codec *codec) { struct alc_spec *spec = codec->spec; @@ -3713,6 +3718,7 @@ static void alc_free(struct hda_codec *codec) if (!spec) return; + alc_shutup(codec); alc_free_kctls(codec); kfree(spec); snd_hda_detach_beep_device(codec); @@ -3722,6 +3728,7 @@ static void alc_free(struct hda_codec *codec) static int alc_suspend(struct hda_codec *codec, pm_message_t state) { struct alc_spec *spec = codec->spec; + alc_shutup(codec); if (spec && spec->power_hook) spec->power_hook(codec, 0); return 0;