summaryrefslogtreecommitdiff
path: root/sound/hda/codecs/realtek/alc269.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2025-08-27 09:28:44 +0200
committerTakashi Iwai <tiwai@suse.de>2025-08-29 11:52:14 +0200
commitcee9102fcdf4d2bff4ea4b46f70cba1ff7c8accb (patch)
treecc0aa1e3568bd0ec23d0b2bbdf8be277ac7dbe8b /sound/hda/codecs/realtek/alc269.c
parent264145020b243b354668fe0da4de2d6092c13978 (diff)
ALSA: hda/realtek: Use cleanup macros for PM controls
The new macro CLASS(snd_hda_power_pm) can replace the manual snd_hda_power_up_pm() and _down() calls gracefully. Merely code cleanups and no functional changes. Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20250827072916.31933-5-tiwai@suse.de
Diffstat (limited to 'sound/hda/codecs/realtek/alc269.c')
-rw-r--r--sound/hda/codecs/realtek/alc269.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c
index 0323606b3d6d..e2e65845d329 100644
--- a/sound/hda/codecs/realtek/alc269.c
+++ b/sound/hda/codecs/realtek/alc269.c
@@ -1224,9 +1224,8 @@ static void alc_update_vref_led(struct hda_codec *codec, hda_nid_t pin,
pinval &= ~AC_PINCTL_VREFEN;
pinval |= on ? AC_PINCTL_VREF_80 : AC_PINCTL_VREF_HIZ;
/* temporarily power up/down for setting VREF */
- snd_hda_power_up_pm(codec);
+ CLASS(snd_hda_power_pm, pm)(codec);
snd_hda_set_pin_ctl_cache(codec, pin, pinval);
- snd_hda_power_down_pm(codec);
}
/* update mute-LED according to the speaker mute state via mic VREF pin */