snd_soc_dapm...pin_unlocked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ snd_soc_dapm_enable_pin_unlocked(9) ✨

okay so bestie, we're in the Kernel API Manual today and this one is literally called snd_soc_dapm...pin_unlocked β€” yes the name is a whole mood, yes it's truncated, no we're not gonna question it πŸ’… welcome to the DAPM corner of the kernel, it's giving audio power management realness πŸŽ€


🌸 NAME 🌸

snd_soc_dapm_enable_pin_unlocked β€” enable pin. that's it. that's the whole vibe. one job, and she does it πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

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

she takes a context and a name and returns an int, no cap 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • dapm β€” the DAPM context, aka the whole situation she's operating in 🌈
  • pin β€” pin name, the string that tells her which pin we're talking about ✨

πŸ’œ DESCRIPTION πŸ’œ

so what does she actually do? she enables an input/output pin and its parents or children widgets β€” but only iff there's a valid audio route and an active audio stream πŸ”₯ that's the main character condition right there, she's not just out here enabling pins for free, there's a vibe check involved πŸ‘‘

Requires external locking. not me having to remind you β€” she does not lock for you, okay? you bring the lock, she brings the enabling. periodt πŸ’…


πŸ™ˆ NOTE πŸ™ˆ

snd_soc_dapm_sync needs to be called after this for DAPM to do any widget power switching. like, she enabled the pin but the actual power switching doesn't happen until you sync. don't skip this step bestie, it's literally the point 😭


⭐ SEE ALSO ⭐

Kernel file ./sound/soc/soc-dapm.c β€” go read it, iykyk πŸ“– and here's the whole friend group:


that's the whole page bestie, you ate it up πŸ“

reminder: the _unlocked suffix is a promise you made to the compiler, not a suggestion 🧚 bring your own lock fr fr

okay so this little gem lives in ./sound/soc and the manual's dated October 2026 πŸ’€ like we're reading from the future, iconic honestly. go enable some pins responsibly, mwah πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from