Skip to content

Commit 29d57f6

Browse files
committed
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: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20240506161359.6960-8-tiwai@suse.de
1 parent 2bf6ae8 commit 29d57f6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

sound/pci/hda/patch_conexant.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,24 +294,20 @@ static void cx_jack_unsol_event(struct hda_codec *codec, unsigned int res)
294294
snd_hda_jack_unsol_event(codec, res);
295295
}
296296

297-
#ifdef CONFIG_PM
298297
static int cx_auto_suspend(struct hda_codec *codec)
299298
{
300299
cx_auto_shutdown(codec);
301300
return 0;
302301
}
303-
#endif
304302

305303
static const struct hda_codec_ops cx_auto_patch_ops = {
306304
.build_controls = snd_hda_gen_build_controls,
307305
.build_pcms = snd_hda_gen_build_pcms,
308306
.init = cx_auto_init,
309307
.free = cx_auto_free,
310308
.unsol_event = cx_jack_unsol_event,
311-
#ifdef CONFIG_PM
312309
.suspend = cx_auto_suspend,
313310
.check_power_status = snd_hda_gen_check_power_status,
314-
#endif
315311
};
316312

317313
/*

0 commit comments

Comments
 (0)