snd_soc_dapm_new_control(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… snd_soc_dapm_new_control(9) πŸ’…

okay so bestie, we're in the Kernel API Manual and this is the page for snd_soc_dapm_new_control(9) β€” it's giving "build a DAPM control from a template" and honestly? iconic. πŸŽ€


🌸 NAME 🌸

snd_soc_dapm_new_control β€” create new dapm control


✨ SYNOPSIS ✨

struct snd_soc_dapm_widget * snd_soc_dapm_new_control (struct
       snd_soc_dapm_context *dapm , const struct snd_soc_dapm_widget *widget );

πŸŽ€ ARGUMENTS πŸŽ€

  • dapm β€” the DAPM context. that's the world this control is getting dropped into. πŸ’–
  • widget β€” the widget template. think of it as the blueprint, the inspo, the reference pic. πŸ¦‹

πŸ”₯ DESCRIPTION πŸ”₯

So like, this function creates a new DAPM control based upon a template. periodt.

On success you get a widget pointer back. On failure you get an error pointer. that's the whole vibe check. πŸ’…

no cap: success means a widget pointer, failure means an error pointer β€” keep that energy in mind. 🌈

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./sound/soc/soc-dapm.c is where this lives β€” and here's the full bestie roll call of related pages, fr fr:


mwah πŸ’‹ source/version check: this page comes from ./sound/soc, dated October 2026. go be iconic with your DAPM controls, bestie 🫢✨

πŸ“¦ where this page comes from