snd_hda_gen_...power_status(9)
π snd_hda_gen_check_power_status(9) β Kernel API Manual π
okay so bestie, welcome to the Kernel API Manual entry for snd_hda_gen_check_power_status β yes the header up top says snd_hda_gen_...power_status(9) because it got truncated and honestly? relatable. anyway. this is the whole vibe. β¨
πΈ NAME πΈ
snd_hda_gen_check_power_status β check the loopback power save state π«Ά
π¦ SYNOPSIS π¦
int snd_hda_gen_check_power_status (struct hda_codec *codec , hda_nid_t
nid );
like literally that's the whole signature, no cap. it hands you back an int and takes two things. π
π§ ARGUMENTS π§
codecβ the HDA codec π that's the thing you're poking at.nidβ the NID to inspect π (yes, just the one NID, she's a single-target icon).
π DESCRIPTION π
so what does it do?? it checks the loopback power save state. that's the assignment. π
and here's the slay part: this function can be put as the hda_codec_ops check_power_status function. so you can just drop her in there and she'll do the job. main character energy fr fr. π
π SEE ALSO π
sourced from the kernel file ./sound/hda/codecs/generic.c β and here's the whole friend group, all of them, no one left out (i would never π):
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_stream_pm(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)
go read them, iykyk π
and that's a wrap bestie!! this page lives in ./sound/hda/codecs, dated October 2026, under the Kernel API Manual banner β mwah, stan her, she ate πβ¨ππ¦
π¦ 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