snd_soc_runtime_set_dai_fmt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the dai_fmt field in the corresponding snd_dai_link struct 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


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