[alsa-devel] [asoc:for-4.18 50/211] sound//soc/soc-topology.c:1776:27: error: 'snd_soc_new_compress' undeclared
kbuild test robot
lkp at intel.com
Tue May 22 07:44:42 CEST 2018
Hi Liam,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-4.18
head: a6f933f63f2ffdb211dbf203dd9750449af000d3
commit: 5db6aab6f36f7560dc95f7ca340d5632b7a3be6a [50/211] ASoC: topology: Add support for compressed PCMs
config: x86_64-randconfig-s2-05221211 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
git checkout 5db6aab6f36f7560dc95f7ca340d5632b7a3be6a
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
sound//soc/soc-topology.c: In function 'soc_tplg_dai_create':
>> sound//soc/soc-topology.c:1776:27: error: 'snd_soc_new_compress' undeclared (first use in this function)
dai_drv->compress_new = snd_soc_new_compress;
^~~~~~~~~~~~~~~~~~~~
sound//soc/soc-topology.c:1776:27: note: each undeclared identifier is reported only once for each function it appears in
vim +/snd_soc_new_compress +1776 sound//soc/soc-topology.c
1746
1747 static int soc_tplg_dai_create(struct soc_tplg *tplg,
1748 struct snd_soc_tplg_pcm *pcm)
1749 {
1750 struct snd_soc_dai_driver *dai_drv;
1751 struct snd_soc_pcm_stream *stream;
1752 struct snd_soc_tplg_stream_caps *caps;
1753 int ret;
1754
1755 dai_drv = kzalloc(sizeof(struct snd_soc_dai_driver), GFP_KERNEL);
1756 if (dai_drv == NULL)
1757 return -ENOMEM;
1758
1759 if (strlen(pcm->dai_name))
1760 dai_drv->name = kstrdup(pcm->dai_name, GFP_KERNEL);
1761 dai_drv->id = pcm->dai_id;
1762
1763 if (pcm->playback) {
1764 stream = &dai_drv->playback;
1765 caps = &pcm->caps[SND_SOC_TPLG_STREAM_PLAYBACK];
1766 set_stream_info(stream, caps);
1767 }
1768
1769 if (pcm->capture) {
1770 stream = &dai_drv->capture;
1771 caps = &pcm->caps[SND_SOC_TPLG_STREAM_CAPTURE];
1772 set_stream_info(stream, caps);
1773 }
1774
1775 if (pcm->compress)
> 1776 dai_drv->compress_new = snd_soc_new_compress;
1777
1778 /* pass control to component driver for optional further init */
1779 ret = soc_tplg_dai_load(tplg, dai_drv, pcm, NULL);
1780 if (ret < 0) {
1781 dev_err(tplg->comp->dev, "ASoC: DAI loading failed\n");
1782 kfree(dai_drv);
1783 return ret;
1784 }
1785
1786 dai_drv->dobj.index = tplg->index;
1787 dai_drv->dobj.ops = tplg->ops;
1788 dai_drv->dobj.type = SND_SOC_DOBJ_PCM;
1789 list_add(&dai_drv->dobj.list, &tplg->comp->dobj_list);
1790
1791 /* register the DAI to the component */
1792 return snd_soc_register_dai(tplg->comp, dai_drv);
1793 }
1794
---
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: 31444 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180522/9a40d4fe/attachment-0001.bin>
More information about the Alsa-devel
mailing list