Skip to content

Commit 6c8fd34

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

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

sound/pci/hda/hda_generic.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6021,7 +6021,6 @@ void snd_hda_gen_free(struct hda_codec *codec)
60216021
}
60226022
EXPORT_SYMBOL_GPL(snd_hda_gen_free);
60236023

6024-
#ifdef CONFIG_PM
60256024
/**
60266025
* snd_hda_gen_check_power_status - check the loopback power save state
60276026
* @codec: the HDA codec
@@ -6035,7 +6034,6 @@ int snd_hda_gen_check_power_status(struct hda_codec *codec, hda_nid_t nid)
60356034
return snd_hda_check_amp_list_power(codec, &spec->loopback, nid);
60366035
}
60376036
EXPORT_SYMBOL_GPL(snd_hda_gen_check_power_status);
6038-
#endif
60396037

60406038

60416039
/*
@@ -6048,9 +6046,7 @@ static const struct hda_codec_ops generic_patch_ops = {
60486046
.init = snd_hda_gen_init,
60496047
.free = snd_hda_gen_free,
60506048
.unsol_event = snd_hda_jack_unsol_event,
6051-
#ifdef CONFIG_PM
60526049
.check_power_status = snd_hda_gen_check_power_status,
6053-
#endif
60546050
};
60556051

60566052
/*

sound/pci/hda/hda_generic.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,7 @@ void snd_hda_gen_mic_autoswitch(struct hda_codec *codec,
340340
struct hda_jack_callback *jack);
341341
void snd_hda_gen_update_outputs(struct hda_codec *codec);
342342

343-
#ifdef CONFIG_PM
344343
int snd_hda_gen_check_power_status(struct hda_codec *codec, hda_nid_t nid);
345-
#endif
346344
unsigned int snd_hda_gen_path_power_filter(struct hda_codec *codec,
347345
hda_nid_t nid,
348346
unsigned int power_state);

0 commit comments

Comments
 (0)