summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound/pci/hda/hda_codec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index efd56a3..fc1ddf4 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -1677,7 +1677,8 @@ static void hda_call_codec_resume(struct hda_codec *codec)
if (codec->patch_ops.resume)
codec->patch_ops.resume(codec);
else {
- codec->patch_ops.init(codec);
+ if (codec->patch_ops.init)
+ codec->patch_ops.init(codec);
snd_hda_codec_resume_amp(codec);
snd_hda_codec_resume_cache(codec);
}