From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre-Louis Bossart Subject: Re: [PATCH v3 1/2] ASoC: Intel: bytcht_es8316: fix HID handling Date: Thu, 11 Jan 2018 15:56:53 -0600 Message-ID: <0a56d149-5045-df4b-1489-93d902698426@linux.intel.com> References: <20180111195209.5809-1-pierre-louis.bossart@linux.intel.com> <20180111195209.5809-2-pierre-louis.bossart@linux.intel.com> <1515701530.7000.932.camel@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by alsa0.perex.cz (Postfix) with ESMTP id 7953E266F50 for ; Thu, 11 Jan 2018 22:56:59 +0100 (CET) In-Reply-To: <1515701530.7000.932.camel@linux.intel.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Andy Shevchenko , alsa-devel@alsa-project.org Cc: tiwai@suse.de, vinod.koul@intel.com, broonie@kernel.org, jeremy@jcline.org, liam.r.girdwood@linux.intel.com List-Id: alsa-devel@alsa-project.org 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; >