Skip to content

Commit 2ff85dc

Browse files
committed
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: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20240506161359.6960-13-tiwai@suse.de
1 parent 9c9d7fd commit 2ff85dc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sound/pci/hda/patch_via.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ static void via_free(struct hda_codec *codec)
379379
snd_hda_gen_free(codec);
380380
}
381381

382-
#ifdef CONFIG_PM
383382
static int via_suspend(struct hda_codec *codec)
384383
{
385384
struct via_spec *spec = codec->spec;
@@ -400,17 +399,14 @@ static int via_resume(struct hda_codec *codec)
400399
snd_hda_regmap_sync(codec);
401400
return 0;
402401
}
403-
#endif
404402

405-
#ifdef CONFIG_PM
406403
static int via_check_power_status(struct hda_codec *codec, hda_nid_t nid)
407404
{
408405
struct via_spec *spec = codec->spec;
409406
analog_low_current_mode(codec);
410407
vt1708_update_hp_work(codec);
411408
return snd_hda_check_amp_list_power(codec, &spec->gen.loopback, nid);
412409
}
413-
#endif
414410

415411
/*
416412
*/
@@ -423,11 +419,9 @@ static const struct hda_codec_ops via_patch_ops = {
423419
.init = via_init,
424420
.free = via_free,
425421
.unsol_event = snd_hda_jack_unsol_event,
426-
#ifdef CONFIG_PM
427422
.suspend = via_suspend,
428423
.resume = via_resume,
429424
.check_power_status = via_check_power_status,
430-
#endif
431425
};
432426

433427

0 commit comments

Comments
 (0)