[alsa-devel] [asoc:topic/topology 1/2] sound/soc/soc-topology.c:1572:19: error: implicit declaration of function 'snd_pcm_rate_range_to_bits'

kbuild test robot fengguang.wu at intel.com
Mon Feb 15 23:24:56 CET 2016


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/topology
head:   acfc7d46cddcf71cf18772bbe8717b84eac5f672
commit: 64527e8a352968bda529f01df1c9dd5fe581ff04 [1/2] ASoC: topology: Add FE DAIs dynamically
config: i386-allmodconfig (attached as .config)
reproduce:
        git checkout 64527e8a352968bda529f01df1c9dd5fe581ff04
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   sound/soc/soc-topology.c: In function 'soc_tplg_dai_create':
>> sound/soc/soc-topology.c:1572:19: error: implicit declaration of function 'snd_pcm_rate_range_to_bits' [-Werror=implicit-function-declaration]
      stream->rates = snd_pcm_rate_range_to_bits(caps->rate_min,
                      ^
   sound/soc/soc-topology.c: At top level:
   sound/soc/soc-topology.c:249:31: warning: 'get_dobj_type' defined but not used [-Wunused-function]
    static enum snd_soc_dobj_type get_dobj_type(struct snd_soc_tplg_hdr *hdr,
                                  ^
   cc1: some warnings being treated as errors

vim +/snd_pcm_rate_range_to_bits +1572 sound/soc/soc-topology.c

  1566			stream = &dai_drv->playback;
  1567			caps = &pcm->caps[SND_SOC_TPLG_STREAM_PLAYBACK];
  1568	
  1569			stream->stream_name = kstrdup(caps->name, GFP_KERNEL);
  1570			stream->channels_min = caps->channels_min;
  1571			stream->channels_max = caps->channels_max;
> 1572			stream->rates = snd_pcm_rate_range_to_bits(caps->rate_min,
  1573								caps->rate_max);
  1574			stream->formats = caps->formats;
  1575		}

---
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/octet-stream
Size: 53452 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20160216/2ff74b3e/attachment-0001.obj>


More information about the Alsa-devel mailing list