snd_soc_dapm_stream_event(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 an int. 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:

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