Commit 29d57f6d authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda: conexant: 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 conexant codec driver, too.

Simply drop CONFIG_PM ifdefs.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20240506161359.6960-8-tiwai@suse.de
parent 2bf6ae88
...@@ -294,13 +294,11 @@ static void cx_jack_unsol_event(struct hda_codec *codec, unsigned int res) ...@@ -294,13 +294,11 @@ static void cx_jack_unsol_event(struct hda_codec *codec, unsigned int res)
snd_hda_jack_unsol_event(codec, res); snd_hda_jack_unsol_event(codec, res);
} }
#ifdef CONFIG_PM
static int cx_auto_suspend(struct hda_codec *codec) static int cx_auto_suspend(struct hda_codec *codec)
{ {
cx_auto_shutdown(codec); cx_auto_shutdown(codec);
return 0; return 0;
} }
#endif
static const struct hda_codec_ops cx_auto_patch_ops = { static const struct hda_codec_ops cx_auto_patch_ops = {
.build_controls = snd_hda_gen_build_controls, .build_controls = snd_hda_gen_build_controls,
...@@ -308,10 +306,8 @@ static const struct hda_codec_ops cx_auto_patch_ops = { ...@@ -308,10 +306,8 @@ static const struct hda_codec_ops cx_auto_patch_ops = {
.init = cx_auto_init, .init = cx_auto_init,
.free = cx_auto_free, .free = cx_auto_free,
.unsol_event = cx_jack_unsol_event, .unsol_event = cx_jack_unsol_event,
#ifdef CONFIG_PM
.suspend = cx_auto_suspend, .suspend = cx_auto_suspend,
.check_power_status = snd_hda_gen_check_power_status, .check_power_status = snd_hda_gen_check_power_status,
#endif
}; };
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment