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

Daniel Baluta daniel.baluta at gmail.com
Thu Jul 18 21:22:54 CEST 2019


On Thu, Jul 18, 2019 at 10:12 PM Cezary Rojewski
<cezary.rojewski at intel.com> wrote:
>
> 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 */ }
> >   };
>

Hi Czarek,

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

There would be definitely more fields inside *_data structures. Anyhow,
not sure what do you mean by declaring a helper macro.

Can you provide an example and how would that be helpful?

thanks,
Daniel.


More information about the Alsa-devel mailing list