public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: hda/intel: Synchronize the module parameter values of the power_save
@ 2026-03-02  8:12 songxiebing
  2026-03-02  8:38 ` Takashi Iwai
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: songxiebing @ 2026-03-02  8:12 UTC (permalink / raw)
  To: tiwai; +Cc: linux-sound, linux-kernel

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@kylinos.cn>
---
 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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-03-05 14:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-02  8:12 [PATCH] ALSA: hda/intel: Synchronize the module parameter values of the power_save songxiebing
2026-03-02  8:38 ` Takashi Iwai
2026-03-03  2:11 ` songxiebing
2026-03-05  4:19 ` kernel test robot
2026-03-05 14:52 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox