Skip to content

Commit aa423b7

Browse files
committed
ALSA: hda: hdmi: Reduce CONFIG_PM dependencies
CONFIG_PM dependencies got reduced in HD-audio codec core driver, and now it's time to reduce in HD-audio HDMI codec driver, too. Simply drop CONFIG_PM ifdefs. Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20240506161359.6960-10-tiwai@suse.de
1 parent 4e0549f commit aa423b7

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

sound/pci/hda/patch_hdmi.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2513,7 +2513,6 @@ static void generic_hdmi_free(struct hda_codec *codec)
25132513
generic_spec_free(codec);
25142514
}
25152515

2516-
#ifdef CONFIG_PM
25172516
static int generic_hdmi_suspend(struct hda_codec *codec)
25182517
{
25192518
struct hdmi_spec *spec = codec->spec;
@@ -2540,18 +2539,15 @@ static int generic_hdmi_resume(struct hda_codec *codec)
25402539
}
25412540
return 0;
25422541
}
2543-
#endif
25442542

25452543
static const struct hda_codec_ops generic_hdmi_patch_ops = {
25462544
.init = generic_hdmi_init,
25472545
.free = generic_hdmi_free,
25482546
.build_pcms = generic_hdmi_build_pcms,
25492547
.build_controls = generic_hdmi_build_controls,
25502548
.unsol_event = hdmi_unsol_event,
2551-
#ifdef CONFIG_PM
25522549
.suspend = generic_hdmi_suspend,
25532550
.resume = generic_hdmi_resume,
2554-
#endif
25552551
};
25562552

25572553
static const struct hdmi_ops generic_standard_hdmi_ops = {
@@ -2952,7 +2948,6 @@ static void i915_pin_cvt_fixup(struct hda_codec *codec,
29522948
}
29532949
}
29542950

2955-
#ifdef CONFIG_PM
29562951
static int i915_adlp_hdmi_suspend(struct hda_codec *codec)
29572952
{
29582953
struct hdmi_spec *spec = codec->spec;
@@ -3032,7 +3027,6 @@ static int i915_adlp_hdmi_resume(struct hda_codec *codec)
30323027

30333028
return res;
30343029
}
3035-
#endif
30363030

30373031
/* precondition and allocation for Intel codecs */
30383032
static int alloc_intel_hdmi(struct hda_codec *codec)
@@ -3167,10 +3161,8 @@ static int patch_i915_adlp_hdmi(struct hda_codec *codec)
31673161
if (spec->silent_stream_type) {
31683162
spec->silent_stream_type = SILENT_STREAM_KAE;
31693163

3170-
#ifdef CONFIG_PM
31713164
codec->patch_ops.resume = i915_adlp_hdmi_resume;
31723165
codec->patch_ops.suspend = i915_adlp_hdmi_suspend;
3173-
#endif
31743166
}
31753167
}
31763168

0 commit comments

Comments
 (0)