snd_soc_find_dai(9)
β¨ snd_soc_find_dai(9) β¨
okay bestie, welcome to the Kernel API Manual π β we're diving into snd_soc_find_dai(9) and honestly it's giving "where is my DAI" energy and i'm obsessed π
πΈ NAME πΈ
snd_soc_find_dai β find a registered DAI, literally that's it, that's the whole vibe π¦
β¨ SYNOPSIS β¨
struct snd_soc_dai * snd_soc_find_dai (const struct
snd_soc_dai_link_component *dlc );
like yes, that's the signature, copy it exactly bestie, no cap π
π ARGUMENTS π
dlcβ the name of the DAI, or the DAI driver plus optional component info to match against. basically "who are we looking for" π΅οΈββοΈ
π¦ DESCRIPTION π¦
so what does it do? this function goes through all the registered components and their DAIs to find the DAI with the same name. and if you specify the component's of_node and name, those gotta match too β like a vibe check where everyone has to agree πβ¨
fr fr, the name match alone isn't enough if you also hand itof_nodeandnameβ those get checked too. no shortcuts π
π RETURN π
a pointer to the DAI π β¦ or NULL if it's not found π (and yes, that's the whole return contract, don't come for me)
π SEE ALSO π
kernel file ./sound/soc/soc-core.c plus the whole friend group:
snd_soc_remove_pcm_runtime(9)snd_soc_add_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)
and that's the whole page, bestie π«Ά this was ./sound/soc from October 2026 β go find those DAIs, slay, and remember: pointer or NULL, there is no in-between ππ
π¦ 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