snd_soc_dap...e_bias_level(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ snd_soc_dap...e_bias_level β€” Kernel API Manual ✨

okay so bestie, we're in the kernel API manual today (yes, that manual) and the star of the show is snd_soc_dapm_force_bias_level. buckle up πŸ’…


🌸 NAME 🌸

snd_soc_dapm_force_bias_level β€” sets the DAPM bias level, and it does it forcefully. main character energy fr fr πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

int snd_soc_dapm_force_bias_level (struct snd_soc_dapm_context *dapm ,
enum snd_soc_bias_level level );

✨ ARGUMENTS ✨

  • dapm β€” the DAPM context whose level you're setting. it's giving "here's the thing I'm about to mess with" 🫢
  • level β€” the level to set. literally the destination. that's it. 🎯

πŸ’– DESCRIPTION πŸ’–

so this function forces the DAPM bias level to a specific state. no negotiating, no vibes check, it just does it. 😀

it will call the bias level callback of the DAPM context with the level you specified β€” and the way that it does this even when the context is already sitting at that same level?? obsessed. no early-out, no "oh you're already there", it calls the callback anyway. πŸ”₯

also super important: it will not go through the normal bias level sequencing. meaning any intermediate states between your current state and your target state? not entered. skipped. they simply do not get a seat at the table πŸ’€

⚠️ heads up bestie: the change in bias level is only temporary. the next time snd_soc_dapm_sync is called, the state gets set to whatever level the DAPM core decides. so don't get too attached, okay? 😭

the function is mainly intended to be used during probe or resume from suspend, to power up the device so initialization can be done β€” all before the DAPM core takes over. it's the little pre-game warmup before the main event 🧚


🌈 SEE ALSO 🌈

kernel file ./sound/soc/soc-dapm.c, plus this whole squad right here:


and that's the whole page, bestie!! πŸ«ΆπŸ’–βœ¨ this one came from ./sound/soc, dated October 2026, and it's page snd_soc_dap...e_bias_level(9) of the Kernel API Manual. go forth and force those bias levels, ilysm πŸŽ€πŸ‘‘πŸ’…

πŸ“¦ where this page comes from