Skip to content

Commit 2bf6ae8

Browse files
committed
ALSA: hda: cirrus: 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 cirrus codec driver, too. Simply drop CONFIG_PM ifdefs. Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20240506161359.6960-7-tiwai@suse.de
1 parent 9fff3e2 commit 2bf6ae8

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

sound/pci/hda/patch_cirrus.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,6 @@ static int cs421x_parse_auto_config(struct hda_codec *codec)
11281128
return 0;
11291129
}
11301130

1131-
#ifdef CONFIG_PM
11321131
/*
11331132
* Manage PDREF, when transitioning to D3hot
11341133
* (DAC,ADC) -> D3, PDREF=1, AFG->D3
@@ -1153,17 +1152,14 @@ static int cs421x_suspend(struct hda_codec *codec)
11531152

11541153
return 0;
11551154
}
1156-
#endif
11571155

11581156
static const struct hda_codec_ops cs421x_patch_ops = {
11591157
.build_controls = snd_hda_gen_build_controls,
11601158
.build_pcms = snd_hda_gen_build_pcms,
11611159
.init = cs421x_init,
11621160
.free = cs_free,
11631161
.unsol_event = snd_hda_jack_unsol_event,
1164-
#ifdef CONFIG_PM
11651162
.suspend = cs421x_suspend,
1166-
#endif
11671163
};
11681164

11691165
static int patch_cs4210(struct hda_codec *codec)

0 commit comments

Comments
 (0)