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.depull/476/head
parent
264145020b
commit
cee9102fcd
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue