snd_soc_dapm_set_bias_level(9)
π snd_soc_dapm_set_bias_level(9) β the Kernel API Manual, bestie edition β¨
okay so this one's from the Kernel API Manual and it's honestly lowkey one of the more important little functions in the SoC audio world β it's the one that sets the bias level for the system. no cap. let's get into it π
πΈ NAME πΈ
snd_soc_dapm_set_bias_level β literally just: set the bias level for the system. that's the whole vibe check. β¨
π¦ SYNOPSIS π¦
int snd_soc_dapm_set_bias_level (struct snd_soc_dapm_context *dapm ,
enum snd_soc_bias_level level );
it's giving "takes two args, returns an int", and honestly? slay. π
π ARGUMENTS π
dapmβ the DAPM context. this is your main character right here, the whole struct you're operating on. πlevelβ the level to configure. the one you wanna set it to, bestie.
π§ DESCRIPTION π§
so what it does: it configures the bias (power) levels for the SoC audio device. that's it, that's the whole tea β β power levels, SoC audio device, configured. iconic.
and the return sitch is: returns 0 for success, else error. so like, 0 = good girl, anything else = something went sideways π. no cap, always check your return value, fr fr.
π SEE ALSO π
the kernel file lives at ./sound/soc/soc-dapm.c β that's the source of truth, go read it if you're curious π«Ά
and here's the whole friend group, all the (9) siblings you might wanna hang with:
snd_soc_dapm_kcontrol_to_widget(9)snd_soc_dapm_kcontrol_to_dapm(9)snd_soc_dapm_kcontrol_to_component(9)snd_soc_dapm_force_bias_level(9)snd_soc_dapm_init_bias_level(9)snd_soc_dapm_get_bias_level(9)snd_soc_dapm_dai_get_connected_widgets(9)snd_soc_dapm_free_widget(9)snd_soc_dapm_sync_unlocked(9)snd_soc_dapm_sync(9)snd_soc_dapm_add_routes(9)snd_soc_dapm_del_routes(9)snd_soc_dapm_new_widgets(9)snd_soc_dapm_get_volsw(9)snd_soc_dapm_put_volsw(9)snd_soc_dapm_get_enum_double(9)snd_soc_dapm_put_enum_double(9)snd_soc_dapm_info_pin_switch(9)snd_soc_dapm_get_pin_switch(9)snd_soc_dapm_get_component_pin_switch(9)snd_soc_dapm_put_pin_switch(9)snd_soc_dapm_put_component_pin_switch(9)snd_soc_dapm_new_control(9)snd_soc_dapm_new_controls(9)snd_soc_dapm_new_dai_widgets(9)snd_soc_dapm_stream_event(9)snd_soc_dapm_enable_pin_unlocked(9)snd_soc_dapm_enable_pin(9)snd_soc_dapm_force_enable_pin_unlocked(9)snd_soc_dapm_force_enable_pin(9)snd_soc_dapm_disable_pin_unlocked(9)snd_soc_dapm_disable_pin(9)snd_soc_dapm_get_pin_status(9)snd_soc_dapm_ignore_suspend(9)snd_soc_dapm_pin_has_prefix(9)snd_soc_dapm_free(9)
like, that's the whole squad, go say hi π«Άπ
and that's the page, bestie!! go forth and set those bias levels responsibly β¨
mwah π β this little number comes to you from ./sound/soc, dated October 2026. stan the kernel manual, she ate π₯π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms