snd_soc_dapm_disable_pin(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… snd_soc_dapm_disable_pin (9) β€” Kernel API Manual energy ✨

okay so bestie, welcome to the snd_soc_dapm_disable_pin page, straight out of the Kernel API Manual. this one's short, sweet, and honestly kinda iconic for how much chaos it can cause if you forget ONE thing (more on that in the NOTE, bestie, do not skip it πŸ™ˆ).


🌸 NAME 🌸

snd_soc_dapm_disable_pin β€” disable pin. that's it. that's the whole name. lowkey the most honest manpage name ever πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

int snd_soc_dapm_disable_pin (struct snd_soc_dapm_context *dapm , const
char *pin );

it returns an int, it takes a struct snd_soc_dapm_context * called dapm, and a const char * called pin. no surprises, no tricks, just vibes and a function signature πŸ¦‹


✨ ARGUMENTS ✨

  • dapm β€” the DAPM context. this is the little world this pin lives in, pls hand it over correctly or it's giving chaos πŸ’€
  • pin β€” the pin name. the actual name of the pin you're about to switch off, spelled like it means it 🎯

πŸ”₯ DESCRIPTION πŸ”₯

so what does it do? it disables the input/output pin β€” and not just the pin by itself, ngl, it also takes down its parents and its children widgets along with it. the whole family tree, bestie 😭 it's giving "you and the friends you brought with you" energy. no cap, that's just what the manpage says.


⭐ NOTE ⭐

🫢 bestie listen to me. after you call this, you need to call snd_soc_dapm_sync β€” otherwise DAPM will not do any widget power switching. like, zero. none. the power stays exactly where it was and you'll be sitting there like "why is my pin still on 😭". so call the sync. do it for me. do it for the widget power switching πŸ’–

🌈 SEE ALSO 🌈

the whole friend group 🫢 β€” they're all in the kernel file ./sound/soc/soc-dapm.c:


and that's the page, bestie πŸ’œ this one lives in ./sound/soc, dated October 2026, and it's from the Kernel API Manual β€” slay, go disable some pins responsibly, and remember the sync πŸ™ˆπŸ‘‘

πŸ“¦ where this page comes from