snd_soc_dapm...pin_unlocked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so welcome to the Kernel API Manual, bestie β€” today's main character is snd_soc_dapm_force_enable_pin_unlocked, and its whole vibe is: force a pin to be enabled. that's it, that's the job πŸ’…


🌸 SYNOPSIS 🌸

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

πŸ’… ARGUMENTS πŸ’…

  • dapm β€” the DAPM context, aka the little world this pin lives in 🫢
  • pin β€” the pin name, literally just the name of the pin you're about to force-enable ✨

πŸ’– DESCRIPTION πŸ’–

so what does it actually do? it enables an input/output pin regardless of any other state β€” like, no matter what else is going on, this pin is getting enabled, periodt πŸ”₯

it's intended for use with microphone bias supplies used in microphone jack detection β€” that's the exact use case, iykyk 🎀

and the big caveat: this one requires external locking πŸ”’ like, the _unlocked in the name is not a cute nickname β€” you gotta bring your own locks, fr fr.


πŸŽ€ NOTE πŸŽ€

not me reminding you again β€” but yes, snd_soc_dapm_sync needs to be called after this for DAPM to do any widget power switching 😭 so don't just force the pin and dip, bestie. sync after, or the widgets ain't switching. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./sound/soc/soc-dapm.c β€” and here's the whole squad, no cap:


xoxo, that's the whole page, bestie πŸ’– source: ./sound/soc, dated October 2026, page snd_soc_dapm...pin_unlocked(9) β€” slay and stay locked πŸ”βœ¨

πŸ“¦ where this page comes from