snd_hda_gen_stream_pm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

snd_hda_gen_stream_pm β€” the stream power management callback, bestie ✨

So like, it's the manual page snd_hda_gen_stream_pm(9) from the Kernel API Manual, and it's literally all about one lil' callback that handles power stuff for streams πŸŽ€


✨ SYNOPSIS ✨

void snd_hda_gen_stream_pm (struct hda_codec *codec , hda_nid_t nid ,
bool on );

That's the whole signature, no cap β€” returns void, takes three things, done πŸ’…


🫢 ARGUMENTS 🫢

  • codec β€” the HDA codec 🎧 (yes, the codec, the main character)
  • nid β€” the audio widget, iykyk 🌸
  • on β€” the power on/off flag ⚑ like, is it on or is it off, that's the whole vibe

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the tea β˜• β€” you set this thing in hda_codec_ops.stream_pm. That's literally its job. It's the callback that lives there πŸŽ€

⚠️ But listen β€” it's only valid with the power_save_node flag. Not valid without it. No flag, no callback, periodt πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./sound/hda/codecs/generic.c β€” go read it, it's giving lore πŸ“–βœ¨

And these iconic lil' functions, all together now, no skipping any of them bestie πŸ™ˆ:


✨ that's the whole page, you ate that ✨ πŸ“

And finally, the cute lil' sign-off πŸŽ€: this one lives in ./sound/hda/codecs, it's dated October 2026, and it's filed under the title snd_hda_gen_stream_pm(9). Slay, bye πŸ’œπŸ§š

πŸ“¦ where this page comes from