From: Pierre-Louis Bossart Subject: Re: [PATCH v1 5/9] ALSA: hda - split snd_hda_codec_new function Date: Mon, 26 Feb 2018 12:14:11 -0700 Message-ID: References: <1519373550-2545-1-git-send-email-rakesh.a.ughreja@intel.com> <1519373550-2545-6-git-send-email-rakesh.a.ughreja@intel.com> <96204f32-54ea-baaa-c3ed-94774f7728c5@linux.intel.com> <85DFEED57DC57344B2483EF7BF8CB60579B29AC2@BGSMSX104.gar.corp.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 54F6126763F for ; Tue, 27 Feb 2018 02:49:17 +0100 (CET) In-Reply-To: <85DFEED57DC57344B2483EF7BF8CB60579B29AC2@BGSMSX104.gar.corp.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: "Ughreja, Rakesh A" , "alsa-devel@alsa-project.org" , "broonie@kernel.org" , "tiwai@suse.de" , "liam.r.girdwood@linux.intel.com" Cc: "Koul, Vinod" , Patches Audio List-Id: alsa-devel@alsa-project.org On 2/26/18 1:28 AM, Ughreja, Rakesh A wrote: > > >> -----Original Message----- >> From: Pierre-Louis Bossart [mailto:pierre-louis.bossart@linux.intel.com] >> Sent: Friday, February 23, 2018 10:20 PM >> To: Ughreja, Rakesh A ; alsa-devel@alsa- >> project.org; broonie@kernel.org; tiwai@suse.de; >> liam.r.girdwood@linux.intel.com >> Cc: Koul, Vinod ; Patches Audio >> >> Subject: Re: [PATCH v1 5/9] ALSA: hda - split snd_hda_codec_new function >> >> On 2/23/18 2:12 AM, Rakesh Ughreja wrote: >>> Split snd_hda_codec_new into two separate functions. >>> snd_hda_codec_device_init allocates memory and registers with bus. >>> snd_hda_codec_device_new initialializes the fields and performs >>> snd_device_new. This enables reuse of legacy HDA codec drivers as ASoC >>> codec drivers. >>> >>> In addition mark some functions with EXPORT_SYMBOL_GPL so that it can be >>> called by ASoC codec drivers. >> >> I don't get the commit message. >> You first say that we can now reuse legacy HDaudio codec drivers in an >> ASoC framework, then say that there will be additional ASoC codec >> drivers? Why would we do this, it seems like a contradicting goal? >> > > Yes, its misleading, so correcting the line as, > > In addition mark some functions with EXPORT_SYMBOL_GPL so that it can be > called by ASoC wrapper around the legacy HDA driver (hdac_hda). Still confusing. You are both reusing codec drivers and defining a wrapper, so are you reusing parts of the codec drivers only?