[alsa-devel] [asoc:topic/rt5514 12/12] sound/soc/codecs/rt5514.c:343:11: error: implicit declaration of function 'rt5514_spi_burst_write'

kbuild test robot fengguang.wu at intel.com
Thu Aug 24 13:05:15 CEST 2017


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/rt5514
head:   d18420b0a0b8f8f51f55fc654b2e0eb86d8b41d7
commit: d18420b0a0b8f8f51f55fc654b2e0eb86d8b41d7 [12/12] ASoC: rt5514: expose Hotword Model control
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout d18420b0a0b8f8f51f55fc654b2e0eb86d8b41d7
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   sound/soc/codecs/rt5514.c: In function 'rt5514_dsp_voice_wake_up_put':
>> sound/soc/codecs/rt5514.c:343:11: error: implicit declaration of function 'rt5514_spi_burst_write' [-Werror=implicit-function-declaration]
        ret = rt5514_spi_burst_write(0x4ff80000,
              ^~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/rt5514_spi_burst_write +343 sound/soc/codecs/rt5514.c

   297	
   298	static int rt5514_dsp_voice_wake_up_put(struct snd_kcontrol *kcontrol,
   299			struct snd_ctl_elem_value *ucontrol)
   300	{
   301		struct snd_soc_component *component = snd_kcontrol_chip(kcontrol);
   302		struct rt5514_priv *rt5514 = snd_soc_component_get_drvdata(component);
   303		struct snd_soc_codec *codec = rt5514->codec;
   304		const struct firmware *fw = NULL;
   305		int ret = 0;
   306	
   307		if (ucontrol->value.integer.value[0] == rt5514->dsp_enabled)
   308			return 0;
   309	
   310		if (snd_soc_codec_get_bias_level(codec) == SND_SOC_BIAS_OFF) {
   311			rt5514->dsp_enabled = ucontrol->value.integer.value[0];
   312	
   313			if (rt5514->dsp_enabled) {
   314				rt5514_enable_dsp_prepare(rt5514);
   315	
   316				request_firmware(&fw, RT5514_FIRMWARE1, codec->dev);
   317				if (fw) {
   318	#if IS_ENABLED(CONFIG_SND_SOC_RT5514_SPI)
   319					rt5514_spi_burst_write(0x4ff60000, fw->data,
   320						((fw->size/8)+1)*8);
   321	#else
   322					dev_err(codec->dev, "There is no SPI driver for"
   323						" loading the firmware\n");
   324	#endif
   325					release_firmware(fw);
   326					fw = NULL;
   327				}
   328	
   329				request_firmware(&fw, RT5514_FIRMWARE2, codec->dev);
   330				if (fw) {
   331	#if IS_ENABLED(CONFIG_SND_SOC_RT5514_SPI)
   332					rt5514_spi_burst_write(0x4ffc0000, fw->data,
   333						((fw->size/8)+1)*8);
   334	#else
   335					dev_err(codec->dev, "There is no SPI driver for"
   336						" loading the firmware\n");
   337	#endif
   338					release_firmware(fw);
   339					fw = NULL;
   340				}
   341	
   342				if (rt5514->model_buf && rt5514->model_len) {
 > 343					ret = rt5514_spi_burst_write(0x4ff80000,
   344						rt5514->model_buf,
   345						((rt5514->model_len / 8) + 1) * 8);
   346					if (ret) {
   347						dev_err(codec->dev,
   348							"Model load failed %d\n", ret);
   349						return ret;
   350					}
   351				} else {
   352					request_firmware(&fw, RT5514_FIRMWARE3,
   353							 codec->dev);
   354					if (fw) {
   355						rt5514_spi_burst_write(0x4ff80000,
   356							fw->data,
   357							((fw->size/8)+1)*8);
   358						release_firmware(fw);
   359						fw = NULL;
   360					}
   361				}
   362	
   363				/* DSP run */
   364				regmap_write(rt5514->i2c_regmap, 0x18002f00,
   365					0x00055148);
   366			} else {
   367				regmap_multi_reg_write(rt5514->i2c_regmap,
   368					rt5514_i2c_patch, ARRAY_SIZE(rt5514_i2c_patch));
   369				regcache_mark_dirty(rt5514->regmap);
   370				regcache_sync(rt5514->regmap);
   371			}
   372		}
   373	
   374		return 0;
   375	}
   376	

---
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: 51321 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20170824/0b62d5e5/attachment-0001.bin>


More information about the Alsa-devel mailing list