Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182647
b: refs/heads/master
c: a4e09aa
h: refs/heads/master
i:
  182645: c37169d
  182643: 9a5de0e
  182639: 00be9a1
v: v3
  • Loading branch information
Takashi Iwai committed Dec 27, 2009
1 parent dbb79f8 commit b21ecc6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 92ee6162c48fab24f0676969f0f147fc12f8f21c
refs/heads/master: a4e09aa3cf592d9f084ff4ceb216be40c4c265dc
7 changes: 7 additions & 0 deletions trunk/sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit b21ecc6

Please sign in to comment.