Commit 2ff85dc6 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda: via: 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 via codec driver, too.

Simply drop CONFIG_PM ifdefs.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20240506161359.6960-13-tiwai@suse.de
parent 9c9d7fd5
...@@ -379,7 +379,6 @@ static void via_free(struct hda_codec *codec) ...@@ -379,7 +379,6 @@ static void via_free(struct hda_codec *codec)
snd_hda_gen_free(codec); snd_hda_gen_free(codec);
} }
#ifdef CONFIG_PM
static int via_suspend(struct hda_codec *codec) static int via_suspend(struct hda_codec *codec)
{ {
struct via_spec *spec = codec->spec; struct via_spec *spec = codec->spec;
...@@ -400,9 +399,7 @@ static int via_resume(struct hda_codec *codec) ...@@ -400,9 +399,7 @@ static int via_resume(struct hda_codec *codec)
snd_hda_regmap_sync(codec); snd_hda_regmap_sync(codec);
return 0; return 0;
} }
#endif
#ifdef CONFIG_PM
static int via_check_power_status(struct hda_codec *codec, hda_nid_t nid) static int via_check_power_status(struct hda_codec *codec, hda_nid_t nid)
{ {
struct via_spec *spec = codec->spec; struct via_spec *spec = codec->spec;
...@@ -410,7 +407,6 @@ static int via_check_power_status(struct hda_codec *codec, hda_nid_t nid) ...@@ -410,7 +407,6 @@ static int via_check_power_status(struct hda_codec *codec, hda_nid_t nid)
vt1708_update_hp_work(codec); vt1708_update_hp_work(codec);
return snd_hda_check_amp_list_power(codec, &spec->gen.loopback, nid); return snd_hda_check_amp_list_power(codec, &spec->gen.loopback, nid);
} }
#endif
/* /*
*/ */
...@@ -423,11 +419,9 @@ static const struct hda_codec_ops via_patch_ops = { ...@@ -423,11 +419,9 @@ static const struct hda_codec_ops via_patch_ops = {
.init = via_init, .init = via_init,
.free = via_free, .free = via_free,
.unsol_event = snd_hda_jack_unsol_event, .unsol_event = snd_hda_jack_unsol_event,
#ifdef CONFIG_PM
.suspend = via_suspend, .suspend = via_suspend,
.resume = via_resume, .resume = via_resume,
.check_power_status = via_check_power_status, .check_power_status = via_check_power_status,
#endif
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment