snd_soc_add_pcm_runtime(9)
β¨ snd_soc_add_pcm_runtime(9) β¨
okay so bestie, welcome to the Kernel API Manual β this one's a little function from ./sound/soc that does exactly what its name says, and honestly? it's giving "small but mighty" π
πΈ NAME πΈ
snd_soc_add_pcm_runtime β the girl that adds a pcm_runtime dynamically via dai_link, no cap π«Ά
β SYNOPSIS β
int snd_soc_add_pcm_runtime (struct snd_soc_card *card , struct
snd_soc_dai_link *dai_link );
like, that's the whole signature, keep it exactly like that pls π
π ARGUMENTS π
cardβ the ASoC card that thepcm_runtimegets added to. it's the main character here πdai_linkβ the DAI link we use to find thepcm_runtime. iykyk
π¦ DESCRIPTION π¦
so basically this function adds a pcm_runtime to an ASoC card, and it does it by using dai_link. that's it, that's the vibe. lowkey elegant, fr fr β¨
π NOTE π
bestie, write this one down π
Topology can use this API to add pcm_runtime when it's probing the topology component. and machine drivers? they can still define static DAI links in the dai_link array. both things, no conflict, we love to see it π
π SEE ALSO π
- the kernel file
./sound/soc/soc-core.cβ that's where she lives π snd_soc_find_dai(9)snd_soc_remove_pcm_runtime(9)snd_soc_runtime_set_dai_fmt(9)snd_soc_set_dmi_name(9)snd_soc_cnew(9)snd_soc_add_component_controls(9)snd_soc_add_card_controls(9)snd_soc_add_dai_controls(9)snd_soc_register_card(9)snd_soc_unregister_card(9)snd_soc_register_dai(9)snd_soc_unregister_dais(9)snd_soc_register_dais(9)snd_soc_unregister_component_by_driver(9)
like, the whole friend group ππ«Ά go say hi to all of them
and that's the page!! mwah π this cutie ships out of ./sound/soc in October 2026 β mark your calendars bestie, she's an icon, she's a legend, and she is the moment πππ
π¦ 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