snd_soc_dapm...t_bias_level(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… snd_soc_dapm_init_bias_level β€” a Kernel API Manual moment ✨

okay so bestie, you're reading snd_soc_dapm...t_bias_level(9) from the Kernel API Manual, and honestly? she's a little niche but she serves. this one is all about kicking your DAPM bias level into the right starting position. let's get into it πŸŽ€


✨ NAME ✨

snd_soc_dapm_init_bias_level β€” literally just initialize the DAPM bias level. that's the whole job. no cap πŸ‘‘


🌸 SYNOPSIS 🌸

void snd_soc_dapm_init_bias_level (struct snd_soc_dapm_context *dapm ,
enum snd_soc_bias_level level );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dapm β€” the DAPM context you're initializing. this is the main character here 🫢
  • level β€” the DAPM level you want to initialize it to. set the vibe, bestie.

πŸ’– DESCRIPTION πŸ’–

okay so this is the important part, listen up πŸ™ˆ this function only sets the driver internal state of the DAPM level. it does not touch the state of the device. like, not even a little. the hardware is completely unbothered by what you just did.

which means β€” and this is the whole point β€” you should not be using this during normal operation. nope. not it. it exists purely to synchronize the internal state to the device state. think of it as making the bookkeeping match reality πŸ”₯

the classic use case, fr fr: during driver probe, when you want to set the DAPM level to the one that corresponds with the power-on reset state of the device. that's the moment. that's her moment. ✨

bestie if you actually want to change the DAPM state of the device, do not use this one. use snd_soc_dapm_set_bias_level instead. two VERY different functions, do not mix them up πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./sound/soc/soc-dapm.c β€” and literally her entire extended friend group:

that's 36 whole functions. she's popular, what can I say πŸ’…


πŸŽ€ that's the whole page bestie! sourced straight from ./sound/soc, dated October 2026, and it's the snd_soc_dapm...t_bias_level(9) page β€” all hail the truncated title, the way it just... cut off mid-word. iconic. slay. periodt. πŸ’–βœ¨πŸŒΈ
πŸ“¦ where this page comes from