snd_soc_dapm_get_pin_switch(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ snd_soc_dapm_get_pin_switch(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one's a tiny little function page but it's lowkey part of the whole ALSA SoC DAPM situation, so let's get into it πŸŽ€


🌸 NAME 🌸

snd_soc_dapm_get_pin_switch β€” get the info for a pin switch, that's literally the whole vibe πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

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

that's the signature, no cap, copy it exactly pls 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • kcontrol β€” the mixer control, the main character of this whole operation πŸ‘‘
  • ucontrol β€” the value, aka the actual data being passed around ✨

πŸ’œ DESCRIPTION πŸ’œ

so basically it's a callback β€” it provides the information for a pin switch that got added at the card level. that's it, that's the whole tea πŸ“ it's giving "small function, big responsibility" fr fr 😭


πŸ”₯ SEE ALSO πŸ”₯

the kernel file lives at ./sound/soc/soc-dapm.c btw πŸ“ and here's the whole friend group, all of these are snd_soc_dapm besties πŸ’–:


this page comes from ./sound/soc, dated October 2026, and it's the snd_soc_dapm_get_pin_switch(9) page 🧚 ok bye bestie, go read some kernel source, slay πŸ’…πŸŒΈ
πŸ“¦ where this page comes from