From: Takashi Iwai Subject: Re: [RFC v2 3/3] ALSA: hda: add hda controller to hda Date: Wed, 25 Mar 2015 09:31:22 +0100 Message-ID: References: <1427263299-14707-1-git-send-email-vinod.koul@intel.com> <1427263299-14707-4-git-send-email-vinod.koul@intel.com> <20150325080141.GG32683@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 (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id DC51F265191 for ; Wed, 25 Mar 2015 09:31:23 +0100 (CET) In-Reply-To: <20150325080141.GG32683@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: Vinod Koul Cc: jeeja.kp@intel.com, alsa-devel@alsa-project.org, lgirdwood@gmail.com List-Id: alsa-devel@alsa-project.org At Wed, 25 Mar 2015 13:31:41 +0530, Vinod Koul wrote: > > On Wed, Mar 25, 2015 at 08:05:21AM +0100, Takashi Iwai wrote: > > At Wed, 25 Mar 2015 11:31:39 +0530, > > Vinod Koul wrote: > > > > > > From: Jeeja KP > > > > > > This adds hdac_controller into hda core. > > > > > > Signed-off-by: Jeeja KP > > > Signed-off-by: Vinod Koul > > > > Now the question is whether we need all codes. > > For example, the bus reset isn't needed for Intel chips but it's a > > workaround for old AMD chips. Also, polling and single_cmd fallbacks > > are also for buggy chips, and I don't think we'd need them for SKL. > I dont have a reason to think this is required > > > > The rirb_error flag can be removed and converted to the normal error > > code propagation with the new code. It's there just because the old > > interface didn't give the error code in get_response op. And, of > > course, there are superfluous DSP loader for CA0132... > okay, but the DSP loader code would be bought in for us. We need to use that > to load code for the DSP. I was planning to send that out after this Ah, if it's usable for you guys, then it's good to keep / reorg the code. > > You can find some code I wrote in a couple of weeks ago in > > test/hda-dev2 branch of sound-unstable git tree. I rebased it on top > > of hda-regmap branch now, so it's mostly clean. There you can find > > the subset of HDA controller codes that should be enough for a clean > > controller driver implementation. > > > > I don't mean that mine is necessarily the best. But my point is that > > we don't have to copy the whole in sound/hda. Rather start from a > > smaller and mandatory subset for the new driver, then integrate this > > into the existing legacy driver. > > Okay sounds okay to me. The current code set has lots of legacy so deciding > which bits are required and which are not will take a while for us! Thanks > for pointing them out. I will take the code from unstable on top of this > series and see what else do we need to do. Note that the commit is incomplete, lacking the whole description, etc. But you can grasp the idea behind it, at least. > One question I have is regarding conventions to be adopted, do we need > hdac_xxx everywhere, since I though hdac stands for hda codec. It's hda "core". I didn't want to have too lengthy names as a prefix. Takashi