snd_soc_runtime_action(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… snd_soc_runtime_action(9) β€” like, the kernel API manual bestie ✨

okay so this is a page from the Kernel API Manual, and the function we're obsessing over today is snd_soc_runtime_action πŸ’– it's giving "small function, big responsibilities," and honestly? she ate.


🌸 NAME 🌸

snd_soc_runtime_action β€” increments/decrements the active count for PCM runtime components πŸŽ€

like yes, that's literally what she does. no cap.


✨ SYNOPSIS ✨

void snd_soc_runtime_action (struct snd_soc_pcm_runtime *rtd , int
stream , int action );

that's the whole vibe. three arguments, zero notes. πŸ’…


🫢 ARGUMENTS 🫢

  • rtd β€” the ASoC PCM runtime that's getting activated πŸ‘‘ this is your main character right here.
  • stream β€” the direction of the PCM stream 🌈 (yes, direction matters, don't come for me)
  • action β€” activate the stream if it's 1. deactivate it if it's -1. that's it, those are the two moods πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

so what actually happens? she increments/decrements the active count for all the DAIs and components attached to a PCM runtime πŸ”₯ all of them. every single one. no skipping.

you should typically call her when a stream is opened 🌸 that's her moment, her time to shine, her calling fr fr.

⚠️ important bestie: this must be called with the rtd->card->pcm_mutex being held. like, actually. don't try it without the lock, that's not the move πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ


and that's the page!! πŸŽ€ sourced from ./sound/soc, dated October 2026, and titled snd_soc_runtime_action(9) β€” mwah, go forth and hold that mutex πŸ’–βœ¨πŸ§š

πŸ“¦ where this page comes from