11 Jan
2018
11 Jan
'18
10:56 p.m.
On 1/11/18 2:12 PM, Andy Shevchenko wrote:
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.
it'll go away in all machine drivers with the next cleanup (addition of a helper)
- int ret = 0;