snd_soc_dapm_stream_event(9)
π snd_soc_dapm_stream_event π
okay so welcome to the Kernel API Manual, bestie β this is the page for snd_soc_dapm_stream_event, and it is genuinely one of the shorter ones so we can absolutely get through this together. grab a boba. π§
β¨ NAME β¨
snd_soc_dapm_stream_event β send a stream event to the dapm core
like, that's the whole job. you hand a stream event to dapm and dapm does dapm things. iconic behavior honestly.
πΈ SYNOPSIS πΈ
void snd_soc_dapm_stream_event (struct snd_soc_pcm_runtime *rtd , int
stream , int event );
yes it wraps weirdly in the original, no we are not fixing it, it's part of the vibe. π«Ά
π ARGUMENTS π
rtdβ the PCM runtime data. this is your lil bundle of runtime info, she's the main character of the call.streamβ the stream name. yeah, it's anint. that's what the page says, don't come for me. πeventβ the stream event. the actual thing you're sending down the pipe.
π¦ DESCRIPTION π¦
So here's the tea: this function sends a stream event to the dapm core. that's it, that's the whole plot. π¨
Then the core takes that event and makes any necessary widget power changes. so like, the widgets get their power situations sorted out on your behalf β you do not have to go poking at them yourself. the core handles it. slay. β‘
Returns 0 for success else error. so check your return, bestie, 0 is the good number, anything else means something went sideways. no cap. π
π SEE ALSO π
Kernel file ./sound/soc/soc-dapm.c β plus the whole dapm friend group, all listed out for you:
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_set_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_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)
that's 34 cross-references for a function with three arguments. the dapm subsystem said "we have lore" and honestly? respect. π
and that's the whole page!! this lil cutie lives over in ./sound/soc, stamped October 2026, and it's your Kernel API Manual moment of the day. go forth and send your stream events, bestie β 0 for success, else error, fr fr. πβ¨π
π¦ 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