snd_hda_gen_stream_pm(9)
π 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 π:
snd_hda_gen_spec_init(9)snd_hda_gen_add_kctl(9)snd_hda_get_path_idx(9)snd_hda_get_path_from_idx(9)snd_hda_add_new_path(9)snd_hda_activate_path(9)snd_hda_gen_add_mute_led_cdev(9)snd_hda_gen_add_micmute_led_cdev(9)snd_hda_gen_fix_pin_power(9)snd_hda_gen_update_outputs(9)snd_hda_gen_hp_automute(9)snd_hda_gen_line_automute(9)snd_hda_gen_mic_autoswitch(9)snd_hda_gen_path_power_filter(9)snd_hda_gen_shutup_speakers(9)snd_hda_gen_parse_auto_config(9)snd_hda_gen_build_controls(9)snd_hda_gen_build_pcms(9)snd_hda_gen_init(9)snd_hda_gen_remove(9)snd_hda_gen_check_power_status(9)
β¨ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms