[alsa-devel] [PATCH v3 1/2] ASoC: Intel: bytcht_es8316: fix HID handling

Andy Shevchenko andriy.shevchenko at linux.intel.com
Thu Jan 11 21:12:10 CET 2018


On Thu, 2018-01-11 at 13:52 -0600, Pierre-Louis Bossart wrote:
> Same problem as with previous machine drivers, the codec dai
> uses a hard-coded name of "i2c-ESSX8316:00" but ACPI provides
> "i2c-ESSX8316:01" in some systems.

>  static int snd_byt_cht_es8316_mc_probe(struct platform_device *pdev)
>  {
> -	int ret = 0;
>  	struct byt_cht_es8316_private *priv;
> +	struct snd_soc_acpi_mach *mach;
> +	const char *i2c_name = NULL;
> +	int dai_index = 0;

> +	int i;

A nit: unsigned int will look more natural here.

> +	int ret = 0;

-- 
Andy Shevchenko <andriy.shevchenko at linux.intel.com>
Intel Finland Oy


More information about the Alsa-devel mailing list