fsl_ssi_set_bclk(9)
π fsl_ssi_set_bclk(9) π
okay so bestie, welcome to the Kernel API Manual β this one's a little function from the ALSA/ASoC corner of the kernel and it's literally the vibe-setter for your audio clock. sit down, hydrate, let's go β¨
πΈ NAME πΈ
fsl_ssi_set_bclk β Configure Digital Audio Interface bit clock. that's it, that's the job. it configures the bit clock. clock girlie behavior π
π¦ SYNOPSIS π¦
int fsl_ssi_set_bclk (struct snd_pcm_substream *substream , struct
snd_soc_dai *dai , struct snd_pcm_hw_params *hw_params );
it returns an int, so likeβ¦ it's got opinions, and it will share them π«Ά
π ARGUMENTS π
substreamβ the ASoC substream. the little stream moment in question β¨daiβ pointer to DAI. yes, a pointer. we love a pointer, she's direct πhw_paramsβ pointers tohw_params. (the page says "pointers" plural, so i'm keeping it plural, don't come for me π) β these are the hardware params, iykyk.
π₯ NOTES π₯
big one, bestie, listen up: this function can be only called when using SSI as DAI master. not slave, not vibes-based, master only. periodt π
and here's the quick instruction for parameters, straight up no cap:
freq: Output BCLK frequency =samplerate*slots*slot_width(In 2-channel I2S Master mode,slot_widthis fixed32)
so yes, the math is mathing, and in 2-channel I2S Master mode that slot_width is locked at 32 β not up for debate, not negotiable, it's giving fixed. π§
π SEE ALSO π
the whole friend group lives in the kernel file ./sound/soc/fsl/fsl_ssi.c and honestly the squad is iconic:
FSLSSI_I2S_FORMATS(9)struct fsl_ssi(9)fsl_ssi_isr(9)fsl_ssi_config_enable(9)fsl_ssi_config_disable(9)fsl_ssi_setup_regvals(9)fsl_ssi_hw_params(9)fsl_ssi_set_dai_fmt(9)fsl_ssi_set_dai_tdm_slot(9)fsl_ssi_trigger(9)fsl_ssi_hw_init(9)fsl_ssi_hw_clean(9)
go read them, they're all main character energy in their own way π
okay that's the whole page bestie, go configure that clock, slay, and remember: master mode or nothing π β¨
source: ./sound/soc/fsl π dated: October 2026 π mwah, love u, bye π¦π
π¦ 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