Re: [PATCH] ASoC: rt722-sdca: Add a control to support CAE firmware update

kernel test robot <[email protected]>
Newsgroups org.alsa-project.alsa-devel,dev.linux.lists.llvm,dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
Hi,

kernel test robot noticed the following build errors:

[auto build test ERROR on broonie-sound/for-next]
[also build test ERROR on linus/master v7.1-rc3 next-20260508]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/jack-yu-realtek-com/ASoC-rt722-sdca-Add-a-control-to-support-CAE-firmware-update/20260515-191729
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
patch link:    https://lore.kernel.org/r/20260515091643.3038701-1-jack.yu%40realtek.com
patch subject: [PATCH] ASoC: rt722-sdca: Add a control to support CAE firmware update
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260516/[email protected]/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260516/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> sound/soc/codecs/rt722-sdca.c:571:7: error: call to undeclared function 'snd_soc_component_get_bias_level'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     571 |                 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) {
         |                     ^
   sound/soc/codecs/rt722-sdca.c:571:7: note: did you mean 'snd_soc_component_set_bias_level'?
   include/sound/soc-component.h:326:5: note: 'snd_soc_component_set_bias_level' declared here
     326 | int snd_soc_component_set_bias_level(struct snd_soc_component *component,
         |     ^
   1 error generated.


vim +/snd_soc_component_get_bias_level +571 sound/soc/codecs/rt722-sdca.c

   555	
   556	static int rt722_cae_update_put(struct snd_kcontrol *kcontrol,
   557					 struct snd_ctl_elem_value *ucontrol)
   558	{
   559		struct snd_soc_component *component = snd_kcontrol_chip(kcontrol);
   560		struct rt722_sdca_priv *rt722 = snd_soc_component_get_drvdata(component);
   561		int ret, changed = 0;
   562	
   563		if (!rt722->hw_init)
   564			return 0;
   565	
   566		ret = pm_runtime_resume_and_get(component->dev);
   567		if (ret < 0 && ret != -EACCES)
   568			return ret;
   569	
   570		if (ucontrol->value.integer.value[0]) {
 > 571			if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) {
   572				ret = rt722_cae_load(rt722);
   573				if (ret)
   574					dev_err(component->dev, "CAE load failed: %d\n", ret);
   575				else
   576					changed = 1;
   577			}
   578		} else {
   579			if (rt722->cae_update_done) {
   580				rt722->cae_update_done = 0;
   581				changed = 1;
   582			}
   583		}
   584	
   585		pm_runtime_mark_last_busy(component->dev);
   586		pm_runtime_put_autosuspend(component->dev);
   587	
   588		return changed;
   589	}
   590	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.