Skip to content

Commit b61f98b

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

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

sound/pci/hda/patch_analog.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ static int create_beep_ctls(struct hda_codec *codec)
7272
#define create_beep_ctls(codec) 0
7373
#endif
7474

75-
#ifdef CONFIG_PM
7675
static void ad198x_power_eapd_write(struct hda_codec *codec, hda_nid_t front,
7776
hda_nid_t hp)
7877
{
@@ -118,7 +117,6 @@ static int ad198x_suspend(struct hda_codec *codec)
118117
ad198x_power_eapd(codec);
119118
return 0;
120119
}
121-
#endif
122120

123121
/* follow EAPD via vmaster hook */
124122
static void ad_vmaster_eapd_hook(void *private_data, int enabled)
@@ -158,10 +156,8 @@ static const struct hda_codec_ops ad198x_auto_patch_ops = {
158156
.init = snd_hda_gen_init,
159157
.free = snd_hda_gen_free,
160158
.unsol_event = snd_hda_jack_unsol_event,
161-
#ifdef CONFIG_PM
162159
.check_power_status = snd_hda_gen_check_power_status,
163160
.suspend = ad198x_suspend,
164-
#endif
165161
};
166162

167163

0 commit comments

Comments
 (0)