mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-05-26 11:40:24 +02:00
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
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user