Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Yang Jie <yang.jie@linux.intel.com>
Cc: Vinod Koul <vinod.koul@intel.com>,
	Liam Girdwood <liam.r.girdwood@linux.intel.com>,
	alsa-devel@alsa-project.org, Mark Brown <broonie@kernel.org>
Subject: Re: [PATCH] ASoC: intel: Fix sst-dsp dependency on dw stuff
Date: Tue, 12 Jul 2016 07:31:52 +0200	[thread overview]
Message-ID: <s5hlh17ifqv.wl-tiwai@suse.de> (raw)
In-Reply-To: <57844FB1.4070005@linux.intel.com>

On Tue, 12 Jul 2016 04:02:25 +0200,
Yang Jie wrote:
> 
> On 2016年07月11日 16:39, Takashi Iwai wrote:
> > The recent commit [a92ea59b74e2: ASoC: Intel: sst: only select
> > sst-firmware when DW DMAC is built-in] introduced more strict kconfig
> > dependency (depends on DW_DMAC_CORE=y) for avoiding the build failures
> > due to dependency messes in intel-sst.  This makes, however, it
> > impossible to use this driver with the modularized systems,
> > i.e. typically on Linux distros.
> >
> > The problem addressed in the commit above is that sst_dsp_new() and
> > sst_dsp_free() includes the firmware init / finish that call dw_*()
> > functions.  Thus building it as built-in with DW_DMAC_CORE module
> > results in the missing symbols.
> >
> > However, these sst_dsp functions are basically called only from the
> > drivers that depend on DW_DMAC_CORE already.  That is, once when these
> > functions are split out, the rest can be independent from dw stuff.
> >
> > This patch attempts to solve the issue by the following:
> > - Split sst-dsp stuff into two modules: snd-soc-sst-dsp and
> >    snd-soc-sst-firmware.
> > - Move sst_dsp_new() and sst_dsp_free() to the latter module so that
> >    the former module can be independent from DW_DMAC_CORE.
> > - Add a new kconfig SND_SOC_INTEL_SST_FIRMWARE to select the latter
> >    module by machine drivers.
> >
> > One only remaining pitfall is that each machine driver has to select
> > SND_SOC_INTEL_SST_FIRMWARE carefully depending on DW_DMAC_CORE.
> > This can't be done cleanly due to the restriction of the current
> > kbuild.
> 
> is it good to let SND_SOC_INTEL_SST_FIRMWARE select DW_DMAC_CORE in
> your opinion? That may fix this pitfall, but I am not sure if it is
> comply with convention -- a module should not select another upper
> layer one?

It depends.  But in this case, DW_DMAC_CORE alone won't help to make
it functional.  Thus it might be rather confusing for users.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

      reply	other threads:[~2016-07-12  5:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-11  8:39 [PATCH] ASoC: intel: Fix sst-dsp dependency on dw stuff Takashi Iwai
2016-07-11 17:42 ` Applied "ASoC: intel: Fix sst-dsp dependency on dw stuff" to the asoc tree Mark Brown
2016-07-12  2:02 ` [PATCH] ASoC: intel: Fix sst-dsp dependency on dw stuff Yang Jie
2016-07-12  5:31   ` Takashi Iwai [this message]

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=s5hlh17ifqv.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=liam.r.girdwood@linux.intel.com \
    --cc=vinod.koul@intel.com \
    --cc=yang.jie@linux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox