mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
ALSA: hda/realtek: Use is_s4_resume() macro
Use the given macro for determining the resume state instead of referring to the raw value. Only a cleanup for now. The infrastructure might be changed in future, though. Link: https://patch.msgid.link/20250902095636.21462-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
b8e1684163
commit
649c6e1314
1 changed files with 1 additions and 2 deletions
|
|
@ -872,8 +872,7 @@ static void alc294_init(struct hda_codec *codec)
|
|||
struct alc_spec *spec = codec->spec;
|
||||
|
||||
/* required only at boot or S4 resume time */
|
||||
if (!spec->done_hp_init ||
|
||||
codec->core.dev.power.power_state.event == PM_EVENT_RESTORE) {
|
||||
if (!spec->done_hp_init || is_s4_resume(codec)) {
|
||||
alc294_hp_init(codec);
|
||||
spec->done_hp_init = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue