snd_hda_gen...ute_led_cdev(9)
π NAME π
snd_hda_gen_add_mute_led_cdev β okay so basically this function creates a LED classdev and enables it as your vmaster mute LED β¨
(also this page lives in the Kernel API Manual, and yes the header up top got truncated to snd_hda_gen...ute_led_cdev(9) because apparently even man pages have a character limit π the full name is the one right above, we're fine)
πΈ SYNOPSIS πΈ
int snd_hda_gen_add_mute_led_cdev (struct hda_codec *codec , int
(*callback)(struct led_classdev *, enum led_brightness) );
that's the whole signature bestie, don't panic π«Ά
π ARGUMENTS π
codecβ the HDA codec π like, the actual codec you're attaching the LED tocallbackβ the callback for LED classdevbrightness_set_blockingπ₯ that's the function that gets called to set brightness
ngl there's only two args here and that's genuinely it. short king of a function, we love to see it π
π¦ SEE ALSO π¦
the kernel file lives at ./sound/hda/codecs/generic.c β go read it, it's giving main character energy π and while you're there, here's the whole friend group, no cap, all of them, not skipping a single one:
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_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)snd_hda_gen_check_power_status(9)
like literally the entire extended cast, iykyk π
okay that's the whole page β ily, go blink that mute LED π
βΏ about this page βΏ it's from ./sound/hda/codecs, dated October 2026, and that's the Kernel API Manual signing off π
β¨π
π¦ 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