From: Takashi Iwai Subject: Re: [RFC v3 06/11] ASoC: hdac_hda: add ASoC based HDA codec driver Date: Thu, 21 Dec 2017 17:44:56 +0100 Message-ID: References: <85DFEED57DC57344B2483EF7BF8CB60579ADB65F@BGSMSX104.gar.corp.intel.com> <85DFEED57DC57344B2483EF7BF8CB60579ADCE9A@BGSMSX104.gar.corp.intel.com> <85DFEED57DC57344B2483EF7BF8CB60579ADD339@BGSMSX104.gar.corp.intel.com> <85DFEED57DC57344B2483EF7BF8CB60579ADD712@BGSMSX104.gar.corp.intel.com> <85DFEED57DC57344B2483EF7BF8CB60579ADD8AC@BGSMSX104.gar.corp.intel.com> <20171220102625.GB17890@sirena.org.uk> <85DFEED57DC57344B2483EF7BF8CB60579ADE906@BGSMSX104.gar.corp.intel.com> <85DFEED57DC57344B2483EF7BF8CB60579ADF4DE@BGSMSX104.gar.corp.intel.com> <85DFEED57DC57344B2483EF7BF8CB60579ADF577@BGSMSX104.gar.corp.intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 4F455266BBC for ; Thu, 21 Dec 2017 17:44:57 +0100 (CET) In-Reply-To: <85DFEED57DC57344B2483EF7BF8CB60579ADF577@BGSMSX104.gar.corp.intel.com> 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" Cc: "alsa-devel@alsa-project.org" , "Koul, Vinod" , "pierre-louis.bossart@linux.intel.com" , "liam.r.girdwood@linux.intel.com" , Patches Audio , Mark Brown List-Id: alsa-devel@alsa-project.org On Thu, 21 Dec 2017 17:39:10 +0100, Ughreja, Rakesh A wrote: > > > > >-----Original Message----- > >From: Takashi Iwai [mailto:tiwai@suse.de] > >Sent: Thursday, December 21, 2017 9:18 PM > >To: Ughreja, Rakesh A > >Cc: Mark Brown ; alsa-devel@alsa-project.org; Koul, Vinod > >; pierre-louis.bossart@linux.intel.com; > >liam.r.girdwood@linux.intel.com; Patches Audio > >Subject: Re: [alsa-devel] [RFC v3 06/11] ASoC: hdac_hda: add ASoC based HDA > >codec driver > > >> > >> Let me know if this is the right way to go. I can send you the full series > >> once you are okay with the direction. > > > >Yes, this is a sort of idea I had. > >My original thought was to have an extra ops in hdac_bus, and refer > >directly there instead of setting in each hda_codec object. Not coded > >yet, so I can't judge which one is better. Maybe you can actually > >quick-try and test differences. > > Let me try that out and will move to hdac_bus if I don't run into any > practical issues. > > > > >But still an open question is where to hook. You've put the branch at > >the very beginning of each probe/remove, that is, completely replacing > >the whole probe/remove callbacks. Meanwhile, the legacy codec driver > >still expects the legacy hda_codec object handling, so keeping more > >common stuff would make sense. That is, if we do switching at the > >beginning, the rest should just compose the same helper functions in > >slightly different ways. Or we share most parts of probe/remove in > >both legacy and asoc but branch off after some later point in the > >probe/remove functions. > > I think I am wrong in doing the above. I was thinking that I cannot do > all those steps done in the probe before the snd_soc_codec probe gets > called. > > After looking at the code again after your comments, It looks like > I can call all these before the card is registered by the machine driver. > > Is that right understanding ? same thing is happening in legacy > driver also. The card is registered at the end. So I will just skip that step. Well, I'm not 100% sure about the ordering, so we just need trying. > >In anyway, a whole patchset would be helpful so that I can give it a > >try, too. But maybe I'll have little time tomorrow and a few days > >thereafter due to vacation. > > Sure, will send you the series tomorrow by correcting few more things. OK, thanks. Takashi