[PATCH v2 1/2] ASoC: fsl_sai: refactor TDM slots calculation into helper function