[alsa-devel] [PATCH 3/3] ASoC: fsl_sai: add i.MX8M support

Cezary Rojewski cezary.rojewski at intel.com
Thu Jul 18 21:11:13 CEST 2019


On 2019-07-17 12:56, Lucas Stach wrote:
>   static const struct fsl_sai_soc_data fsl_sai_vf610_data = {
>   	.use_imx_pcm = false,
> +	.has_version_registers = false,
>   	.fifo_depth = 32,
>   };
>   
>   static const struct fsl_sai_soc_data fsl_sai_imx6sx_data = {
>   	.use_imx_pcm = true,
> +	.has_version_registers = false,
>   	.fifo_depth = 32,
>   };
>   
> +static const struct fsl_sai_soc_data fsl_sai_imx8m_data = {
> +	.use_imx_pcm = true,
> +	.has_version_registers = true,
> +	.fifo_depth = 128,
> +};
> +
>   static const struct of_device_id fsl_sai_ids[] = {
>   	{ .compatible = "fsl,vf610-sai", .data = &fsl_sai_vf610_data },
>   	{ .compatible = "fsl,imx6sx-sai", .data = &fsl_sai_imx6sx_data },
>   	{ .compatible = "fsl,imx6ul-sai", .data = &fsl_sai_imx6sx_data },
> +	{ .compatible = "fsl,imx8mq-sai", .data = &fsl_sai_imx8m_data },
>   	{ /* sentinel */ }
>   };

These datas are populating quite rapidly. If you're planning for adding 
more (and/ or appending additional fields), declaring helper macro could 
prove useful.

Czarek


More information about the Alsa-devel mailing list