summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-05-09 10:31:08 +0200
committerTakashi Iwai <tiwai@suse.de>2012-05-09 10:32:35 +0200
commit607d4f7f0551eb591fbaca4bf44a8d6251e82f00 (patch)
treec317cf8a3496cb534a28e7993bc4fe71bb497caf /sound/pci/hda/hda_codec.c
parent128bc4ba8c52194eae5a80594ec9b7f6b35ba88f (diff)
downloadop-kernel-dev-607d4f7f0551eb591fbaca4bf44a8d6251e82f00.zip
op-kernel-dev-607d4f7f0551eb591fbaca4bf44a8d6251e82f00.tar.gz
ALSA: hda - Remove pre_resume and post_suspend ops
Since the recent commit, the resume procedure is always performed at the resume time. This makes the pre_resume hack for VREF mute LED on some HP laptops superfluous. As this is the only user of pre_resume (and there is no user of post_suspend) ops, let's kill them again. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index f2bdf38..e0f8667 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -4930,8 +4930,6 @@ int snd_hda_suspend(struct hda_bus *bus)
list_for_each_entry(codec, &bus->codec_list, list) {
if (hda_codec_is_power_on(codec))
hda_call_codec_suspend(codec);
- if (codec->patch_ops.post_suspend)
- codec->patch_ops.post_suspend(codec);
}
return 0;
}
@@ -4951,8 +4949,6 @@ int snd_hda_resume(struct hda_bus *bus)
struct hda_codec *codec;
list_for_each_entry(codec, &bus->codec_list, list) {
- if (codec->patch_ops.pre_resume)
- codec->patch_ops.pre_resume(codec);
hda_call_codec_resume(codec);
}
return 0;
OpenPOWER on IntegriCloud