snd_soc_com..._init_regmap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… snd_soc_com..._init_regmap(9) β€” the Kernel API Manual glow-up

okay bestie, so this page lives in the Kernel API Manual, and the whole thing is literally about snd_soc_component_init_regmap. yes the title is truncated with dots, no we're not gonna fix it, it's iconic in a chaotic way πŸŽ€


✨ NAME ✨

snd_soc_component_init_regmap β€” bestie's whole job is setting up a regmap instance for the component, that's it, that's the vibe πŸ’–


🌸 SYNOPSIS 🌸

void snd_soc_component_init_regmap (struct snd_soc_component *component
, struct regmap *regmap );

no cap, that's the whole signature πŸ¦‹


🫢 ARGUMENTS 🫢

  • component β€” the component you're out here initializing the regmap instance for, main character energy fr πŸ‘‘
  • regmap β€” the actual regmap instance that the component should be using, hand it over πŸ’…

🧚 DESCRIPTION 🧚

okay so listen. this function is the one that lets you do a deferred assignment of the regmap instance that's associated with the component. like you're not committing yet, you're just... setting it up for later. very "i'll text you back" of it πŸ™ˆ

only use this if the regmap instance isn't ready yet when the component gets registered β€” that's the whole reason it exists, lowkey.

⚠️ and bestie, do NOT sleep on this one: the function must also be called before the first IO attempt of the component. like, before. not during, not after, before. iykyk 😭

πŸ’€ SEE ALSO πŸ’€

the kernel file lives at ./sound/soc/soc-component.c β€” go read it if you're feeling academic ✨

and here's the whole friend group of related functions, all accounted for, none skipped, fr fr:


🌈 and that's the page!! this lil' baddie came from ./sound/soc and the manual says October 2026 for the date, so yeah, dated content, slay, periodt. if you see the footer it's just the source ./sound/soc and that same date again β€” consider yourself signed off, mwah πŸ’œπŸ¦‹

πŸ“¦ where this page comes from