snd_hda_gen...ute_led_cdev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 to
  • callback β€” the callback for LED classdev brightness_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:

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