[alsa-devel] [PATCH] ASoC: rt5670: set platform data by dmi

Mark Brown broonie at kernel.org
Fri Dec 12 20:35:58 CET 2014


On Fri, Dec 12, 2014 at 04:06:07PM +0800, Bard Liao wrote:

> +static const struct dmi_system_id dmi_platform_data[] __initconst = {
> +	{
> +		.ident = "Intel Braswell",

> +	if (dmi_check_system(dmi_platform_data)) {
> +		rt5670->pdata.dmic_en = true;
> +		rt5670->pdata.dmic1_data_pin = RT5670_DMIC_DATA_IN2P;
> +		rt5670->pdata.jd_mode = 1;
> +	}

This table is called dmi_platform_data but really it seems to be a list
of machine IDs to use for this Braswell reference design so it should
have a name refelecting that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20141212/b8b6cbc4/attachment.sig>


More information about the Alsa-devel mailing list