linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sound/soc/intel/boards/hda_dsp_common.c:76: undefined reference to `snd_hda_codec_build_controls'
@ 2020-02-06  5:29 kbuild test robot
  2020-02-06  7:54 ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: kbuild test robot @ 2020-02-06  5:29 UTC (permalink / raw)
  To: Kai Vehmanen
  Cc: kbuild-all, linux-kernel, Mark Brown, Takashi Iwai, Pierre-Louis Bossart

[-- Attachment #1: Type: text/plain, Size: 2643 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4c7d00ccf40db99bfb7bd1857bcbf007275704d8
commit: 7de9a47c8971bdec07cc9a62e948382003c5908f ASoC: Intel: skl-hda-dsp-generic: use snd-hda-codec-hdmi
date:   3 months ago
config: i386-randconfig-e003-20200206 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
        git checkout 7de9a47c8971bdec07cc9a62e948382003c5908f
        # save the attached .config to linux build tree
        make ARCH=i386 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   ld: sound/soc/intel/boards/hda_dsp_common.o: in function `hda_dsp_hdmi_build_controls':
>> sound/soc/intel/boards/hda_dsp_common.c:76: undefined reference to `snd_hda_codec_build_controls'

vim +76 sound/soc/intel/boards/hda_dsp_common.c

    36	
    37	#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
    38	/*
    39	 * Search card topology and register HDMI PCM related controls
    40	 * to codec driver.
    41	 */
    42	int hda_dsp_hdmi_build_controls(struct snd_soc_card *card,
    43					struct snd_soc_component *comp)
    44	{
    45		struct hdac_hda_priv *hda_pvt;
    46		struct hda_codec *hcodec;
    47		struct snd_pcm *spcm;
    48		struct hda_pcm *hpcm;
    49		int err = 0, i = 0;
    50	
    51		if (!comp)
    52			return -EINVAL;
    53	
    54		hda_pvt = snd_soc_component_get_drvdata(comp);
    55		hcodec = &hda_pvt->codec;
    56	
    57		list_for_each_entry(hpcm, &hcodec->pcm_list_head, list) {
    58			spcm = hda_dsp_hdmi_pcm_handle(card, i);
    59			if (spcm) {
    60				hpcm->pcm = spcm;
    61				hpcm->device = spcm->device;
    62				dev_dbg(card->dev,
    63					"%s: mapping HDMI converter %d to PCM %d (%p)\n",
    64					__func__, i, hpcm->device, spcm);
    65			} else {
    66				hpcm->pcm = 0;
    67				hpcm->device = SNDRV_PCM_INVALID_DEVICE;
    68				dev_warn(card->dev,
    69					 "%s: no PCM in topology for HDMI converter %d\n\n",
    70					 __func__, i);
    71			}
    72			i++;
    73		}
    74		snd_hdac_display_power(hcodec->core.bus,
    75				       HDA_CODEC_IDX_CONTROLLER, true);
  > 76		err = snd_hda_codec_build_controls(hcodec);
    77		if (err < 0)
    78			dev_err(card->dev, "unable to create controls %d\n", err);
    79		snd_hdac_display_power(hcodec->core.bus,
    80				       HDA_CODEC_IDX_CONTROLLER, false);
    81	
    82		return err;
    83	}
    84	

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 42351 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-06 18:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-06  5:29 sound/soc/intel/boards/hda_dsp_common.c:76: undefined reference to `snd_hda_codec_build_controls' kbuild test robot
2020-02-06  7:54 ` Takashi Iwai
2020-02-06 16:55   ` Pierre-Louis Bossart
2020-02-06 18:01     ` Pierre-Louis Bossart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).