[PATCH] ALSA: hda/intel: Synchronize the module parameter values of the power_save

From: songxiebing

Date: Mon Mar 02 2026 - 03:13:37 EST


In set_default_power_save, if val is 0 and is not assigned to
power_save, it leads to incorrect reading of the sys node, resulting in
misjudgment, so modify it here.

Signed-off-by: songxiebing <songxiebing@xxxxxxxxxx>
---
sound/hda/controllers/intel.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/sound/hda/controllers/intel.c b/sound/hda/controllers/intel.c
index 3f434994c18d..6c6564396637 100644
--- a/sound/hda/controllers/intel.c
+++ b/sound/hda/controllers/intel.c
@@ -2306,6 +2306,7 @@ static void set_default_power_save(struct azx *chip)
dev_info(chip->card->dev, "Forcing power_save to 0 via option\n");
val = 0;
}
+ power_save = val;
snd_hda_set_power_save(&chip->bus, val * 1000);
}

--
2.25.1