[morimoto:sound-2022-07-04-v1 15/23] sound/soc/intel/avs/boards/nau8825.c:279:17: error: no member named 'stream_active' in 'struct snd_soc_dai'

From: kernel test robot
Date: Thu Jul 14 2022 - 06:32:18 EST


tree: https://github.com/morimoto/linux sound-2022-07-04-v1
head: e9efd77b37adcddf8f910f34dd0df06be9d896cb
commit: 2aa8bfec7e0ff4ab531a688f8fd43150ad78ae23 [15/23] ASoC: count activity via TX/RX base instead of Playback/Capture.
config: mips-randconfig-r011-20220714 (https://download.01.org/0day-ci/archive/20220714/202207141847.favaONji-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 5e61b9c556267086ef9b743a0b57df302eef831b)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mipsel-linux-gnu
# https://github.com/morimoto/linux/commit/2aa8bfec7e0ff4ab531a688f8fd43150ad78ae23
git remote add morimoto https://github.com/morimoto/linux
git fetch --no-tags morimoto sound-2022-07-04-v1
git checkout 2aa8bfec7e0ff4ab531a688f8fd43150ad78ae23
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash sound/soc/atmel/ sound/soc/codecs/ sound/soc/fsl/ sound/soc/intel/avs/ sound/soc/mxs/ sound/soc/qcom/qdsp6/ sound/soc/samsung/ sound/soc/ti/

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

All errors (new ones prefixed by >>):

>> sound/soc/intel/avs/boards/nau8825.c:279:17: error: no member named 'stream_active' in 'struct snd_soc_dai'
if (codec_dai->stream_active[SNDRV_PCM_STREAM_PLAYBACK] &&
~~~~~~~~~ ^
1 error generated.


vim +279 sound/soc/intel/avs/boards/nau8825.c

32ee40b5590081 Cezary Rojewski 2022-05-11 268
32ee40b5590081 Cezary Rojewski 2022-05-11 269 static int avs_card_resume_post(struct snd_soc_card *card)
32ee40b5590081 Cezary Rojewski 2022-05-11 270 {
32ee40b5590081 Cezary Rojewski 2022-05-11 271 struct snd_soc_dai *codec_dai = snd_soc_card_get_codec_dai(card, SKL_NUVOTON_CODEC_DAI);
32ee40b5590081 Cezary Rojewski 2022-05-11 272 struct snd_soc_jack *jack = snd_soc_card_get_drvdata(card);
32ee40b5590081 Cezary Rojewski 2022-05-11 273
32ee40b5590081 Cezary Rojewski 2022-05-11 274 if (!codec_dai) {
32ee40b5590081 Cezary Rojewski 2022-05-11 275 dev_err(card->dev, "Codec dai not found\n");
32ee40b5590081 Cezary Rojewski 2022-05-11 276 return -EINVAL;
32ee40b5590081 Cezary Rojewski 2022-05-11 277 }
32ee40b5590081 Cezary Rojewski 2022-05-11 278
32ee40b5590081 Cezary Rojewski 2022-05-11 @279 if (codec_dai->stream_active[SNDRV_PCM_STREAM_PLAYBACK] &&
32ee40b5590081 Cezary Rojewski 2022-05-11 280 codec_dai->playback_widget->active)
32ee40b5590081 Cezary Rojewski 2022-05-11 281 snd_soc_dai_set_sysclk(codec_dai, NAU8825_CLK_FLL_FS, 0, SND_SOC_CLOCK_IN);
32ee40b5590081 Cezary Rojewski 2022-05-11 282
32ee40b5590081 Cezary Rojewski 2022-05-11 283 return avs_card_set_jack(card, jack);
32ee40b5590081 Cezary Rojewski 2022-05-11 284 }
32ee40b5590081 Cezary Rojewski 2022-05-11 285

:::::: The code at line 279 was first introduced by commit
:::::: 32ee40b5590081a6b38a55e4ab16b47085f93afe ASoC: Intel: avs: Add nau8825 machine board

:::::: TO: Cezary Rojewski <cezary.rojewski@xxxxxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://01.org/lkp