snd_soc_runtime_set_dai_fmt(9)
π snd_soc_runtime_set_dai_fmt(9) π
okay so bestie, welcome to the Kernel API Manual page for snd_soc_runtime_set_dai_fmt(9) β yes the title is a mouthful, no we are not renaming it, it's iconic as-is π
β¨ NAME β¨
snd_soc_runtime_set_dai_fmt β change the DAI link format for an ASoC runtime π¦
πΈ SYNOPSIS πΈ
int snd_soc_runtime_set_dai_fmt (struct snd_soc_pcm_runtime *rtd ,
unsigned int dai_fmt );
π ARGUMENTS π
rtdβ the runtime where we're switching up the DAI link format, like it's getting a whole new look πdai_fmtβ the brand-new DAI link format, the main character of this whole operation β¨
π«Ά DESCRIPTION π«Ά
okay so here's the vibe: this function updates the DAI link format for all the DAIs connected to the DAI link of that specified runtime. not just one, not just the cute ones β all of them, fr fr π₯
π NOTE π
heads up bestie π¨ if your setup has a static format, you gotta set thedai_fmtfield in the correspondingsnd_dai_linkstruct instead of calling this function. no cap, that's the move.
Returns 0 on success β otherwise a negative error code (iykyk, sad girl hours π).
π SEE ALSO π
Kernel file ./sound/soc/soc-core.c
snd_soc_find_dai(9)snd_soc_remove_pcm_runtime(9)snd_soc_add_pcm_runtime(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, periodt π this cutie lives in ./sound/soc and the version we're serving is dated October 2026 β go off, snd_soc_runtime_set_dai_fmt(9), you ate and left no crumbs πβπ§
π¦ 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