fsl_ssi_hw_params(9)
π fsl_ssi_hw_params(9) β from the Kernel API Manual, bestie π
Okay so picture this: you're deep in the kernel, the sound subsystem is looking at you, and somebody has to actually configure the SSI based on the PCM hardware parameters. That someone is fsl_ssi_hw_params. Welcome to the group chat. β¨
πΈ NAME πΈ
fsl_ssi_hw_params β literally the function that configures the SSI based on the PCM hardware parameters. That's the whole vibe. π¦
β SYNOPSIS β
int fsl_ssi_hw_params (struct snd_pcm_substream *substream , struct
snd_pcm_hw_params *hw_params , struct snd_soc_dai *dai );
It returns an int, bestie. Three arguments, one mission. π
π«Ά ARGUMENTS π«Ά
substreamβ the ASoC substream, hi bestie πhw_paramsβ pointers tohw_params(yes, plural pointers, that's what the page says, don't come for me π)daiβ pointer to the DAI, the main character of this whole operation π
π NOTES π
- The
SxCCR.WLbits are critical bits β like, they require the SSI to be temporarily disabled onoffline_configSoCs. And even foronlineconfigurable SoCs running in synchronous mode (where both TX and RX useSTCCR), it is not safe to re-configure them when both streams start running. So likeβ¦ don't. Fr fr. π - The
SxCCR.PM,SxCCR.DIV2andSxCCR.PSRbits get configured insidefsl_ssi_set_bclkif the SSI is the DAI clock master. That's the condition, periodt. β
π₯ SEE ALSO π₯
Kernel file ./sound/soc/fsl/fsl_ssi.c, plus the whole squad β go read these too, iykyk:
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_set_bclk(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)
Okay that's the whole page, you ate that π. This little masterpiece lives over in ./sound/soc/fsl and it's dated October 2026 β yes, the future, we're ahead of schedule, iconic behavior honestly. Bye bestie, go configure some hardware params πβ¨π
π¦ 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