[alsa-devel] [asoc:topic/topology 1/1] sound/soc/soc-topology.c:1985:33: error: 'SND_SOC_TPLG_DAI_CLK_GATE_GATED' undeclared; did you mean 'SND_SOC_TPLG_DAPM_AIF_OUT'?

kbuild test robot fengguang.wu at intel.com
Tue Feb 20 15:13:02 CET 2018


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/topology
head:   bdb86c40e8c5d2abe2ec7be964d621c1b7c27081
commit: bdb86c40e8c5d2abe2ec7be964d621c1b7c27081 [1/1] ASoC: topology: Add missing clock gating parameter when parsing hw_configs
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout bdb86c40e8c5d2abe2ec7be964d621c1b7c27081
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   sound/soc/soc-topology.c: In function 'set_link_hw_format':
>> sound/soc/soc-topology.c:1985:33: error: 'SND_SOC_TPLG_DAI_CLK_GATE_GATED' undeclared (first use in this function); did you mean 'SND_SOC_TPLG_DAPM_AIF_OUT'?
      if (hw_config->clock_gated == SND_SOC_TPLG_DAI_CLK_GATE_GATED)
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                    SND_SOC_TPLG_DAPM_AIF_OUT
   sound/soc/soc-topology.c:1985:33: note: each undeclared identifier is reported only once for each function it appears in
>> sound/soc/soc-topology.c:1988:5: error: 'SND_SOC_TPLG_DAI_CLK_GATE_CONT' undeclared (first use in this function); did you mean 'SND_SOC_TPLG_DAI_CLK_GATE_GATED'?
        SND_SOC_TPLG_DAI_CLK_GATE_CONT)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        SND_SOC_TPLG_DAI_CLK_GATE_GATED

vim +1985 sound/soc/soc-topology.c

  1959	
  1960	/**
  1961	 * set_link_hw_format - Set the HW audio format of the physical DAI link.
  1962	 * @link: &snd_soc_dai_link which should be updated
  1963	 * @cfg: physical link configs.
  1964	 *
  1965	 * Topology context contains a list of supported HW formats (configs) and
  1966	 * a default format ID for the physical link. This function will use this
  1967	 * default ID to choose the HW format to set the link's DAI format for init.
  1968	 */
  1969	static void set_link_hw_format(struct snd_soc_dai_link *link,
  1970				struct snd_soc_tplg_link_config *cfg)
  1971	{
  1972		struct snd_soc_tplg_hw_config *hw_config;
  1973		unsigned char bclk_master, fsync_master;
  1974		unsigned char invert_bclk, invert_fsync;
  1975		int i;
  1976	
  1977		for (i = 0; i < cfg->num_hw_configs; i++) {
  1978			hw_config = &cfg->hw_config[i];
  1979			if (hw_config->id != cfg->default_hw_config_id)
  1980				continue;
  1981	
  1982			link->dai_fmt = hw_config->fmt & SND_SOC_DAIFMT_FORMAT_MASK;
  1983	
  1984			/* clock gating */
> 1985			if (hw_config->clock_gated == SND_SOC_TPLG_DAI_CLK_GATE_GATED)
  1986				link->dai_fmt |= SND_SOC_DAIFMT_GATED;
  1987			else if (hw_config->clock_gated ==
> 1988				 SND_SOC_TPLG_DAI_CLK_GATE_CONT)
  1989				link->dai_fmt |= SND_SOC_DAIFMT_CONT;
  1990	
  1991			/* clock signal polarity */
  1992			invert_bclk = hw_config->invert_bclk;
  1993			invert_fsync = hw_config->invert_fsync;
  1994			if (!invert_bclk && !invert_fsync)
  1995				link->dai_fmt |= SND_SOC_DAIFMT_NB_NF;
  1996			else if (!invert_bclk && invert_fsync)
  1997				link->dai_fmt |= SND_SOC_DAIFMT_NB_IF;
  1998			else if (invert_bclk && !invert_fsync)
  1999				link->dai_fmt |= SND_SOC_DAIFMT_IB_NF;
  2000			else
  2001				link->dai_fmt |= SND_SOC_DAIFMT_IB_IF;
  2002	
  2003			/* clock masters */
  2004			bclk_master = hw_config->bclk_master;
  2005			fsync_master = hw_config->fsync_master;
  2006			if (!bclk_master && !fsync_master)
  2007				link->dai_fmt |= SND_SOC_DAIFMT_CBM_CFM;
  2008			else if (bclk_master && !fsync_master)
  2009				link->dai_fmt |= SND_SOC_DAIFMT_CBS_CFM;
  2010			else if (!bclk_master && fsync_master)
  2011				link->dai_fmt |= SND_SOC_DAIFMT_CBM_CFS;
  2012			else
  2013				link->dai_fmt |= SND_SOC_DAIFMT_CBS_CFS;
  2014		}
  2015	}
  2016	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 63077 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180220/11ecab9d/attachment-0001.bin>


More information about the Alsa-devel mailing list