All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Cc: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>,
	alsa-devel@alsa-project.org, daniel.baluta@nxp.com,
	ranjani.sridharan@linux.intel.com, lgirdwood@gmail.com,
	broonie@kernel.org, pierre-louis.bossart@linux.intel.com
Subject: Re: [PATCH v2] ASoC: SOF: Intel: initial support to AlderLake-P
Date: Thu, 14 Jan 2021 15:04:19 +0100	[thread overview]
Message-ID: <s5ho8hrobrw.wl-tiwai@suse.de> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2101141534270.864696@eliteleevi.tm.intel.com>

On Thu, 14 Jan 2021 14:45:10 +0100,
Kai Vehmanen wrote:
> 
> Hi,
> 
> On Thu, 14 Jan 2021, Takashi Iwai wrote:
> 
> > On Thu, 14 Jan 2021 12:55:58 +0100, Kai Vehmanen wrote:
> > > --- a/sound/soc/sof/sof-pci-dev.c
> > > +++ b/sound/soc/sof/sof-pci-dev.c
> [...]
> > > -#if IS_ENABLED(CONFIG_SND_SOC_SOF_TIGERLAKE)
> > > +#if IS_ENABLED(CONFIG_SND_SOC_SOF_TIGERLAKE) || IS_ENABLED(CONFIG_SND_SOC_SOF_ALDERLAKE)
> > >  static const struct sof_dev_desc tgl_desc = {
> > >  	.machines               = snd_soc_acpi_intel_tgl_machines,
> > >  	.alt_machines		= snd_soc_acpi_intel_tgl_sdw_machines,
> > 
> > I guess snd_soc_acpi_intel_tgl_* would be missing even by this patch
> > alone if TIGERLAKE=n and ALDERLAKE=y.
> 
> The ACPI matching tables soc-acpi-intel-match.h are not behind Kconfig 
> ifdefs, so this is ok. I did actually test all the build combinations this 
> time :) and the builds go through.
>  
> > IMO, the easiest fix would be to select CONFIG_SND_SOC_SOF_TIGERLAKE
> > from CONFIG_SND_SOC_SOF_ALDERLAKE forcibly in Kconfig instead.  Then
> > no tweak of ifdef is needed.
> 
> I'd rather keep this here. We may later update sof_dev_desc for ADL and no 
> longer reuse tgl_desc, and then it's easier to cleanup if the #ifdef is 
> only here, close to where the dependency is.
> 
> I too think the ifdefs are too finegrained, so maybe the next step is to 
> just drop these, and/or reduce their number. We can review and discuss 
> this when we refactor sof-pci-dev to address the concern Arnd raised.

Fair enough.  Thanks.


Takashi

  reply	other threads:[~2021-01-14 14:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-14 11:55 [PATCH v2] ASoC: SOF: Intel: initial support to AlderLake-P Kai Vehmanen
2021-01-14 12:21 ` Takashi Iwai
2021-01-14 13:45   ` Kai Vehmanen
2021-01-14 14:04     ` Takashi Iwai [this message]
2021-01-18 16:02 ` Mark Brown

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=s5ho8hrobrw.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=daniel.baluta@nxp.com \
    --cc=guennadi.liakhovetski@linux.intel.com \
    --cc=kai.vehmanen@linux.intel.com \
    --cc=lgirdwood@gmail.com \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=ranjani.sridharan@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 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.