Skip to content

Commit

Permalink
ALSA: hda: cirrus: Reduce CONFIG_PM dependencies
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tiwai committed May 8, 2024
1 parent 9fff3e2 commit 2bf6ae8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sound/pci/hda/patch_cirrus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,6 @@ static int cs421x_parse_auto_config(struct hda_codec *codec)
return 0;
}

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

return 0;
}
#endif

static const struct hda_codec_ops cs421x_patch_ops = {
.build_controls = snd_hda_gen_build_controls,
.build_pcms = snd_hda_gen_build_pcms,
.init = cs421x_init,
.free = cs_free,
.unsol_event = snd_hda_jack_unsol_event,
#ifdef CONFIG_PM
.suspend = cs421x_suspend,
#endif
};

static int patch_cs4210(struct hda_codec *codec)
Expand Down

0 comments on commit 2bf6ae8

Please sign in to comment.