Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: fsl_rpmsg: Add support for i.MX95 platform

Add compatible string and specific soc data to support rpmsg sound card
on i.MX95 platform.

Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link: https://patch.msgid.link/20240626071202.7149-2-chancel.liu@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Chancel Liu and committed by
Mark Brown
19dec665 8e5c1196

+9
+9
sound/soc/fsl/fsl_rpmsg.c
··· 175 175 SNDRV_PCM_FMTBIT_S32_LE, 176 176 }; 177 177 178 + static const struct fsl_rpmsg_soc_data imx95_data = { 179 + .rates = SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_32000 | 180 + SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000 | 181 + SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000, 182 + .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE | 183 + SNDRV_PCM_FMTBIT_S32_LE, 184 + }; 185 + 178 186 static const struct of_device_id fsl_rpmsg_ids[] = { 179 187 { .compatible = "fsl,imx7ulp-rpmsg-audio", .data = &imx7ulp_data}, 180 188 { .compatible = "fsl,imx8mm-rpmsg-audio", .data = &imx8mm_data}, ··· 190 182 { .compatible = "fsl,imx8mp-rpmsg-audio", .data = &imx8mp_data}, 191 183 { .compatible = "fsl,imx8ulp-rpmsg-audio", .data = &imx7ulp_data}, 192 184 { .compatible = "fsl,imx93-rpmsg-audio", .data = &imx93_data}, 185 + { .compatible = "fsl,imx95-rpmsg-audio", .data = &imx95_data}, 193 186 { /* sentinel */ } 194 187 }; 195 188 MODULE_DEVICE_TABLE(of, fsl_rpmsg_ids);