All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Vinod Koul <vinod.koul@intel.com>
Cc: jeeja.kp@intel.com, alsa-devel@alsa-project.org, lgirdwood@gmail.com
Subject: Re: [RFC v2 3/3] ALSA: hda: add hda controller to hda
Date: Wed, 25 Mar 2015 09:31:22 +0100	[thread overview]
Message-ID: <s5hy4mlfpgl.wl-tiwai@suse.de> (raw)
In-Reply-To: <20150325080141.GG32683@intel.com>

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 <jeeja.kp@intel.com>
> > > 
> > > This adds hdac_controller into hda core.
> > > 
> > > Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
> > > Signed-off-by: Vinod Koul <vinod.koul@intel.com>
> > 
> > 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

  reply	other threads:[~2015-03-25  8:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-25  6:01 [RFC v2 0/3] ALSA: hda: add hda controller to hda core Vinod Koul
2015-03-25  6:01 ` [RFC v2 1/3] ALSA: hda: add HDA_MAX_CODECS Vinod Koul
2015-03-25  6:48   ` Takashi Iwai
2015-03-25  7:51     ` Vinod Koul
2015-03-25  6:01 ` [RFC v2 2/3] ALSA: hda: move common hda controller register defines up Vinod Koul
2015-03-25  6:01 ` [RFC v2 3/3] ALSA: hda: add hda controller to hda Vinod Koul
2015-03-25  7:05   ` Takashi Iwai
2015-03-25  8:01     ` Vinod Koul
2015-03-25  8:31       ` Takashi Iwai [this message]
2015-03-25 10:52         ` Vinod Koul

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hy4mlfpgl.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=jeeja.kp@intel.com \
    --cc=lgirdwood@gmail.com \
    --cc=vinod.koul@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.