Skip to content

Commit 4e0549f

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

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

sound/pci/hda/patch_cs8409.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,6 @@ static void cs42l42_resume(struct sub_codec *cs42l42)
909909
cs42l42_enable_jack_detect(cs42l42);
910910
}
911911

912-
#ifdef CONFIG_PM
913912
static void cs42l42_suspend(struct sub_codec *cs42l42)
914913
{
915914
struct hda_codec *codec = cs42l42->codec;
@@ -948,7 +947,6 @@ static void cs42l42_suspend(struct sub_codec *cs42l42)
948947
spec->gpio_data &= ~cs42l42->reset_gpio;
949948
snd_hda_codec_write(codec, CS8409_PIN_AFG, 0, AC_VERB_SET_GPIO_DATA, spec->gpio_data);
950949
}
951-
#endif
952950

953951
static void cs8409_free(struct hda_codec *codec)
954952
{
@@ -1003,7 +1001,6 @@ static void cs8409_cs42l42_jack_unsol_event(struct hda_codec *codec, unsigned in
10031001
}
10041002
}
10051003

1006-
#ifdef CONFIG_PM
10071004
/* Manage PDREF, when transition to D3hot */
10081005
static int cs8409_cs42l42_suspend(struct hda_codec *codec)
10091006
{
@@ -1025,7 +1022,6 @@ static int cs8409_cs42l42_suspend(struct hda_codec *codec)
10251022

10261023
return 0;
10271024
}
1028-
#endif
10291025

10301026
/* Vendor specific HW configuration
10311027
* PLL, ASP, I2C, SPI, GPIOs, DMIC etc...
@@ -1080,9 +1076,7 @@ static const struct hda_codec_ops cs8409_cs42l42_patch_ops = {
10801076
.init = cs8409_init,
10811077
.free = cs8409_free,
10821078
.unsol_event = cs8409_cs42l42_jack_unsol_event,
1083-
#ifdef CONFIG_PM
10841079
.suspend = cs8409_cs42l42_suspend,
1085-
#endif
10861080
};
10871081

10881082
static int cs8409_cs42l42_exec_verb(struct hdac_device *dev, unsigned int cmd, unsigned int flags,
@@ -1310,9 +1304,7 @@ static const struct hda_codec_ops cs8409_dolphin_patch_ops = {
13101304
.init = cs8409_init,
13111305
.free = cs8409_free,
13121306
.unsol_event = dolphin_jack_unsol_event,
1313-
#ifdef CONFIG_PM
13141307
.suspend = cs8409_cs42l42_suspend,
1315-
#endif
13161308
};
13171309

13181310
static int dolphin_exec_verb(struct hdac_device *dev, unsigned int cmd, unsigned int flags,

0 commit comments

Comments
 (0)