linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "Arnd Bergmann" <arnd@arndb.de>
Cc: "Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
	<alsa-devel@alsa-project.org>,
	"Guneshwor Singh" <guneshwor.o.singh@intel.com>,
	"Naveen Manohar" <naveen.m@intel.com>,
	"Pankaj Bharadiya" <pankaj.laxminarayan.bharadiya@intel.com>,
	"Rakesh Ughreja" <rakesh.a.ughreja@intel.com>,
	"Sanyog Kale" <sanyog.r.kale@intel.com>,
	"Sriram Periyasamy" <sriramx.periyasamy@intel.com>,
	"Mark Brown" <broonie@kernel.org>,
	"Vinod Koul" <vkoul@kernel.org>,
	"Liam Girdwood" <liam.r.girdwood@linux.intel.com>,
	"Pierre-Louis Bossart" <pierre-louis.bossart@linux.intel.com>,
	"Jie Yang" <yang.jie@linux.intel.com>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [alsa-devel] [PATCH] ASoC: skl: always select SND_SOC_HDAC_HDA
Date: Mon, 05 Nov 2018 16:25:07 +0100	[thread overview]
Message-ID: <s5h1s7z35t8.wl-tiwai@suse.de> (raw)
In-Reply-To: <CAK8P3a0kdUtK_UuSJEPiWPxhdDULmW6RYEzu-Ug7f8VBoeWVog@mail.gmail.com>

On Mon, 05 Nov 2018 16:07:50 +0100,
Arnd Bergmann wrote:
> 
> On 11/5/18, Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
> > On Sun, Nov 04, 2018 at 10:45:17AM -0600, Pierre-Louis Bossart wrote:
> >
> >> So yes indeed we have to add a select HDAC_HDA statement under the
> >> SKYLAKE
> >> config - i just don't know of any other means to say "don't build
> >> HDAC_HDA
> >> as a module when SKYLAKE is buit-in"
> >
> > We have this ("strange") lines over the drivers:
> >
> > config BAR
> > depends on FOO || FOO=n
> >
> > which guarantees that FOO will be not module when BAR is built-in.
> 
> That's what I normally use, but I could not figure this one out.
> One problem is that SND_SOC_ALL_CODECS selects
> SND_SOC_HDAC_HDA, and SND_SOC_ALL_CODECS itself
> may be =m, causing the failure for
> SND_SOC_INTEL_SKL_HDA_DSP_GENERIC_MACH=y.
> 
> It might work with a separate dummy symbol:
> 
> config SND_SOC_HDAC_HDA_FORCE
>          tristate
>          depends on SND_SOC_ALL_CODECS != n
>          default SND_SOC_INTEL_SKYLAKE
>          select SND_SOC_HDAC_HDA
> 
> This would make SND_SOC_HDAC_HDA built-in even
> with SND_SOC_ALL_CODECS=m and
> SND_SOC_INTEL_SKL_HDA_DSP_GENERIC_MACH=n
> 
> It seems a bit ugly, and would need some testing.

The mixture of depends and select is often more confusing, so IMO, we
should align with only select as Pierre's suggestion, in this
particular case.


thanks,

Takashi

  reply	other threads:[~2018-11-05 15:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-02 11:24 [PATCH] ASoC: skl: always select SND_SOC_HDAC_HDA Arnd Bergmann
2018-11-02 14:56 ` Pierre-Louis Bossart
2018-11-02 22:03   ` Arnd Bergmann
2018-11-04 16:45     ` [alsa-devel] " Pierre-Louis Bossart
2018-11-05 13:35       ` Andy Shevchenko
2018-11-05 15:07         ` Arnd Bergmann
2018-11-05 15:25           ` Takashi Iwai [this message]
2018-11-05 17:18             ` Pierre-Louis Bossart
2018-11-05 20:46               ` Andy Shevchenko
2018-11-05 21:19                 ` Arnd Bergmann
2018-11-06 10:10                   ` Andy Shevchenko

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=s5h1s7z35t8.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=arnd@arndb.de \
    --cc=broonie@kernel.org \
    --cc=guneshwor.o.singh@intel.com \
    --cc=liam.r.girdwood@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=naveen.m@intel.com \
    --cc=pankaj.laxminarayan.bharadiya@intel.com \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=rakesh.a.ughreja@intel.com \
    --cc=sanyog.r.kale@intel.com \
    --cc=sriramx.periyasamy@intel.com \
    --cc=vkoul@kernel.org \
    --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;
as well as URLs for NNTP newsgroup(s).