snd_hda_mixe...p_switch_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… snd_hda_mixer_amp_switch_put(9) β€” the Kernel API Manual moment

okay so bestie, welcome to the glow-up guide for snd_hda_mixer_amp_switch_put. This one lives in the Kernel API Manual and it's giving "quietly essential little put callback" energy, which honestly? iconic. no cap. πŸŽ€


✨ NAME ✨

snd_hda_mixer_amp_switch_put β€” the put callback for a standard AMP mixer switch. that's it, that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

int snd_hda_mixer_amp_switch_put (struct snd_kcontrol *kcontrol , struct snd_ctl_elem_value *ucontrol );

🫢 ARGUMENTS 🫢

  • kcontrol β€” the ctl element, aka the whole control we're working with. main character. πŸ‘‘
  • ucontrol β€” a pointer to get/store the data. it's literally the go-between for your data, lowkey doing the most. πŸ’–

πŸ’… DESCRIPTION πŸ’…

so here's the tea: the control element is supposed to have the private_value field set up via HDA_COMPOSE_AMP_VAL*() or related macros. that's the setup β€” if you skip it, don't come crying to me. periodt. 🌈


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./sound/hda/common/codec.c and honestly the whole friend group:

like, that's a lot of besties. iykyk. πŸ’œ


and that's the whole page, bestie β€” go forth and set your private_value. 🧚

sign-off szn: this lil masterpiece comes from ./sound/hda/common, dated October 2026, and it's filed under snd_hda_mixe...p_switch_put(9) in case you need to find it again. mwah. πŸ’–πŸŒΈβœ¨
πŸ“¦ where this page comes from