snd_soc_runtime_action(9)
π 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's1. 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 π
- Kernel file
./sound/soc/soc-pcm.cβ go read the source, iykyk π snd_soc_runtime_ignore_pmdown_time(9)snd_soc_runtime_calc_hw(9)
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
- 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