snd_soc_dapm_new_controls(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… snd_soc_dapm_new_controls(9) β€” from the Kernel API Manual, bestie ✨

okay so this is a page straight out of the Kernel API Manual and it's about making DAPM controls. short page, but it's lowkey important, so let's get into it 🫢


✨ NAME ✨

snd_soc_dapm_new_controls β€” create new dapm controls πŸ’–


🌸 SYNOPSIS 🌸

int snd_soc_dapm_new_controls (struct snd_soc_dapm_context *dapm , const
struct snd_soc_dapm_widget *widget , unsigned int num );

like, that's the whole signature, no notes πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • dapm β€” the DAPM context, aka where all this is happening πŸŒ€
  • widget β€” your widget array, the whole squad of them 🌈
  • num β€” number of widgets, so it knows how many besties are in the array fr fr πŸ”’

πŸ’… DESCRIPTION πŸ’…

so it creates new DAPM controls based upon the templates. that's the vibe. templates in, controls out, iconic behaviour honestly ✨

and it returns 0 for success else error. so like, 0 = slay, anything else = 😭


πŸ¦‹ SEE ALSO πŸ¦‹

kernel file ./sound/soc/soc-dapm.c β€” that's where the magic lives, go look πŸ”

the whole extended friend group, no cap:


that's the whole page bestie, go forth and build controls πŸ’œ

mwah πŸ’‹ this one came from ./sound/soc, dated October 2026 β€” that's the version and the date, wrapped up cute for u πŸŽ€

πŸ“¦ where this page comes from