Skip to content

Commit 9fff3e2

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

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

sound/pci/hda/patch_ca0132.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9682,25 +9682,21 @@ static void dbpro_free(struct hda_codec *codec)
96829682
kfree(codec->spec);
96839683
}
96849684

9685-
#ifdef CONFIG_PM
96869685
static int ca0132_suspend(struct hda_codec *codec)
96879686
{
96889687
struct ca0132_spec *spec = codec->spec;
96899688

96909689
cancel_delayed_work_sync(&spec->unsol_hp_work);
96919690
return 0;
96929691
}
9693-
#endif
96949692

96959693
static const struct hda_codec_ops ca0132_patch_ops = {
96969694
.build_controls = ca0132_build_controls,
96979695
.build_pcms = ca0132_build_pcms,
96989696
.init = ca0132_init,
96999697
.free = ca0132_free,
97009698
.unsol_event = snd_hda_jack_unsol_event,
9701-
#ifdef CONFIG_PM
97029699
.suspend = ca0132_suspend,
9703-
#endif
97049700
};
97059701

97069702
static const struct hda_codec_ops dbpro_patch_ops = {

0 commit comments

Comments
 (0)