snd_soc_dapm..._enum_double(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so, bestie, the manual page goes by snd_soc_dapm..._enum_double(9) up top (yes it's abbreviated, no we're not gonna fight about it πŸ’…) β€” but the actual star of the show is snd_soc_dapm_put_enum_double, and it's the dapm enumerated double mixer set callback. that's the whole vibe. iykyk.


✨ SYNOPSIS ✨

like, here's the exact signature, don't @ me:

int snd_soc_dapm_put_enum_double (struct snd_kcontrol *kcontrol , struct
       snd_ctl_elem_value *ucontrol );

it's giving "small function, big responsibilities" fr fr 🫢


🌸 ARGUMENTS 🌸

  • kcontrol β€” the mixer control. that's your struct snd_kcontrol *, the main character of this call πŸŽ›οΈ
  • ucontrol β€” the control element information. this is the struct snd_ctl_elem_value * carrying the deets πŸ’Œ

πŸ’– DESCRIPTION πŸ’–

so what does it do? it's the callback that sets the value of a dapm enumerated double mixer control. that's it, that's the job. lowkey iconic for how chill it is.

and what does it hand back? returns 0 for success. slay. ✨

no cap: success is 0 here. that's the documented return, periodt. don't go making up other return values, that's not in the source and we don't invent lore in this house πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file is ./sound/soc/soc-dapm.c β€” that's where all the magic lives, bestie 🧚 and here's the whole friend group, literally all of them, in order:


and that's the whole page, no crumbs left behind πŸ’œ this cutie came out of ./sound/soc and it's stamped October 2026 β€” mwah, go read the source, ily, bye πŸ‘‘πŸ’…

πŸ“¦ where this page comes from