Re: ERROR: "hdac_hdmi_jack_port_init" [sound/soc/intel/boards/snd-soc-sof_rt5682.ko] undefined!

From: Pierre-Louis Bossart
Date: Wed May 29 2019 - 15:04:34 EST


On 5/29/19 12:54 PM, Randy Dunlap wrote:
On 5/28/19 2:54 AM, kbuild test robot wrote:
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cd6c84d8f0cdc911df435bb075ba22ce3c605b07
commit: f70abd75b7c6c04d3219d0b3a0f3f15411b042fb ASoC: Intel: add sof-rt5682 machine driver
date: 4 weeks ago
config: x86_64-randconfig-b005272310-05281357 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
git checkout f70abd75b7c6c04d3219d0b3a0f3f15411b042fb
# save the attached .config to linux build tree
make ARCH=x86_64

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

All errors (new ones prefixed by >>):

ERROR: "hdac_hdmi_jack_port_init" [sound/soc/intel/boards/snd-soc-sof_rt5682.ko] undefined!
ERROR: "hdac_hdmi_jack_init" [sound/soc/intel/boards/snd-soc-sof_rt5682.ko] undefined!

Confirmed on 5.2-rc2.

fixed yesterday by patch "ASoC: Intel: sof-rt5682: fix undefined references with Baytrail-only support", already merged by Mark.


Needs CONFIG_SND_SOC_HDAC_HDMI to be set for those functions to be built.

CONFIG_SND_SOC_SOF_BAYTRAIL=m
CONFIG_SND_SOC_INTEL_SOF_RT5682_MACH=m

CONFIG_SND_SOC_SOF_HDA_COMMON is not set; the "select ... if" in the middle
[<<<<<<<<<<] of this Kconfig entry is preventing SND_SOC_HDAC_HDMI from being set:

if SND_SOC_SOF_HDA_COMMON || SND_SOC_SOF_BAYTRAIL
config SND_SOC_INTEL_SOF_RT5682_MACH
tristate "SOF with rt5682 codec in I2S Mode"
depends on I2C && ACPI
depends on (SND_SOC_SOF_HDA_COMMON && MFD_INTEL_LPSS) ||\
(SND_SOC_SOF_BAYTRAIL && X86_INTEL_LPSS)
select SND_SOC_RT5682
select SND_SOC_DMIC
select SND_SOC_HDAC_HDMI if SND_SOC_SOF_HDA_COMMON <<<<<<<<<<
help
This adds support for ASoC machine driver for SOF platforms
with rt5682 codec.
Say Y if you have such a device.
If unsure select "N".
endif ## SND_SOC_SOF_HDA_COMMON || SND_SOC_SOF_BAYTRAIL