Skip to content

Commit 9c9d7fd

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

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

sound/pci/hda/patch_sigmatel.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2154,10 +2154,8 @@ static void stac92hd83xxx_fixup_hp_mic_led(struct hda_codec *codec,
21542154

21552155
if (action == HDA_FIXUP_ACT_PRE_PROBE) {
21562156
spec->mic_mute_led_gpio = 0x08; /* GPIO3 */
2157-
#ifdef CONFIG_PM
21582157
/* resetting controller clears GPIO, so we need to keep on */
21592158
codec->core.power_caps &= ~AC_PWRST_CLKSTOP;
2160-
#endif
21612159
}
21622160
}
21632161

@@ -4442,7 +4440,6 @@ static void stac927x_proc_hook(struct snd_info_buffer *buffer,
44424440
#define stac927x_proc_hook NULL
44434441
#endif
44444442

4445-
#ifdef CONFIG_PM
44464443
static int stac_suspend(struct hda_codec *codec)
44474444
{
44484445
struct sigmatel_spec *spec = codec->spec;
@@ -4456,19 +4453,14 @@ static int stac_suspend(struct hda_codec *codec)
44564453

44574454
return 0;
44584455
}
4459-
#else
4460-
#define stac_suspend NULL
4461-
#endif /* CONFIG_PM */
44624456

44634457
static const struct hda_codec_ops stac_patch_ops = {
44644458
.build_controls = snd_hda_gen_build_controls,
44654459
.build_pcms = snd_hda_gen_build_pcms,
44664460
.init = stac_init,
44674461
.free = stac_free,
44684462
.unsol_event = snd_hda_jack_unsol_event,
4469-
#ifdef CONFIG_PM
44704463
.suspend = stac_suspend,
4471-
#endif
44724464
};
44734465

44744466
static int alloc_stac_spec(struct hda_codec *codec)

0 commit comments

Comments
 (0)