[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207220827.EvOuOJ6d-lkp@intel.com>
Date: Fri, 22 Jul 2022 08:32:07 +0800
From: kernel test robot <lkp@...el.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [morimoto:sound2-2022-07-21-v2 39/47]
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c:196:8: error: no member named
'playback_widget' in 'struct snd_soc_dai'
tree: https://github.com/morimoto/linux sound2-2022-07-21-v2
head: 9a531dde39dc408ec83ad303735743e9401be154
commit: edfaee6a8d77201fc905f3f4a15b9b7642eefc3c [39/47] ASoC: soc-dai.h: cleanup Playback/Capture data for snd_soc_dai
config: arm64-randconfig-r021-20220721 (https://download.01.org/0day-ci/archive/20220722/202207220827.EvOuOJ6d-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0c1b32717bcffcf8edf95294e98933bd4c1e76ed)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/morimoto/linux/commit/edfaee6a8d77201fc905f3f4a15b9b7642eefc3c
git remote add morimoto https://github.com/morimoto/linux
git fetch --no-tags morimoto sound2-2022-07-21-v2
git checkout edfaee6a8d77201fc905f3f4a15b9b7642eefc3c
# 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=arm64 SHELL=/bin/bash sound/soc/mediatek/mt6797/ sound/soc/mediatek/mt8183/ sound/soc/mediatek/mt8192/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> sound/soc/mediatek/mt6797/mt6797-dai-pcm.c:196:8: error: no member named 'playback_widget' in 'struct snd_soc_dai'
dai->playback_widget->active,
~~~ ^
include/linux/dev_printk.h:163:47: note: expanded from macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
^~~~~~~~~~~
include/linux/dev_printk.h:129:34: note: expanded from macro 'dev_printk'
_dev_printk(level, dev, fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
>> sound/soc/mediatek/mt6797/mt6797-dai-pcm.c:197:8: error: no member named 'capture_widget' in 'struct snd_soc_dai'
dai->capture_widget->active);
~~~ ^
include/linux/dev_printk.h:163:47: note: expanded from macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
^~~~~~~~~~~
include/linux/dev_printk.h:129:34: note: expanded from macro 'dev_printk'
_dev_printk(level, dev, fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c:199:11: error: no member named 'playback_widget' in 'struct snd_soc_dai'
if (dai->playback_widget->active || dai->capture_widget->active)
~~~ ^
sound/soc/mediatek/mt6797/mt6797-dai-pcm.c:199:43: error: no member named 'capture_widget' in 'struct snd_soc_dai'
if (dai->playback_widget->active || dai->capture_widget->active)
~~~ ^
4 errors generated.
--
>> sound/soc/mediatek/mt8183/mt8183-dai-pcm.c:196:8: error: no member named 'playback_widget' in 'struct snd_soc_dai'
dai->playback_widget->active,
~~~ ^
include/linux/dev_printk.h:163:47: note: expanded from macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
^~~~~~~~~~~
include/linux/dev_printk.h:129:34: note: expanded from macro 'dev_printk'
_dev_printk(level, dev, fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
>> sound/soc/mediatek/mt8183/mt8183-dai-pcm.c:197:8: error: no member named 'capture_widget' in 'struct snd_soc_dai'
dai->capture_widget->active);
~~~ ^
include/linux/dev_printk.h:163:47: note: expanded from macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
^~~~~~~~~~~
include/linux/dev_printk.h:129:34: note: expanded from macro 'dev_printk'
_dev_printk(level, dev, fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c:199:11: error: no member named 'playback_widget' in 'struct snd_soc_dai'
if (dai->playback_widget->active || dai->capture_widget->active)
~~~ ^
sound/soc/mediatek/mt8183/mt8183-dai-pcm.c:199:43: error: no member named 'capture_widget' in 'struct snd_soc_dai'
if (dai->playback_widget->active || dai->capture_widget->active)
~~~ ^
4 errors generated.
--
>> sound/soc/mediatek/mt8192/mt8192-dai-pcm.c:286:9: error: no member named 'playback_widget' in 'struct snd_soc_dai'
dai->playback_widget->active,
~~~ ^
include/linux/dev_printk.h:150:67: note: expanded from macro 'dev_info'
dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
_p_func(dev, fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
>> sound/soc/mediatek/mt8192/mt8192-dai-pcm.c:287:9: error: no member named 'capture_widget' in 'struct snd_soc_dai'
dai->capture_widget->active);
~~~ ^
include/linux/dev_printk.h:150:67: note: expanded from macro 'dev_info'
dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
_p_func(dev, fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c:289:11: error: no member named 'playback_widget' in 'struct snd_soc_dai'
if (dai->playback_widget->active || dai->capture_widget->active)
~~~ ^
sound/soc/mediatek/mt8192/mt8192-dai-pcm.c:289:43: error: no member named 'capture_widget' in 'struct snd_soc_dai'
if (dai->playback_widget->active || dai->capture_widget->active)
~~~ ^
4 errors generated.
vim +196 sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
314b355f55b53bc Kai Chieh Chuang 2018-05-31 179
314b355f55b53bc Kai Chieh Chuang 2018-05-31 180 /* dai ops */
314b355f55b53bc Kai Chieh Chuang 2018-05-31 181 static int mtk_dai_pcm_hw_params(struct snd_pcm_substream *substream,
314b355f55b53bc Kai Chieh Chuang 2018-05-31 182 struct snd_pcm_hw_params *params,
314b355f55b53bc Kai Chieh Chuang 2018-05-31 183 struct snd_soc_dai *dai)
314b355f55b53bc Kai Chieh Chuang 2018-05-31 184 {
314b355f55b53bc Kai Chieh Chuang 2018-05-31 185 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
314b355f55b53bc Kai Chieh Chuang 2018-05-31 186 unsigned int rate = params_rate(params);
314b355f55b53bc Kai Chieh Chuang 2018-05-31 187 unsigned int rate_reg = mt6797_rate_transform(afe->dev, rate, dai->id);
314b355f55b53bc Kai Chieh Chuang 2018-05-31 188 unsigned int pcm_con = 0;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 189
314b355f55b53bc Kai Chieh Chuang 2018-05-31 190 dev_dbg(afe->dev, "%s(), id %d, stream %d, rate %d, rate_reg %d, widget active p %d, c %d\n",
314b355f55b53bc Kai Chieh Chuang 2018-05-31 191 __func__,
314b355f55b53bc Kai Chieh Chuang 2018-05-31 192 dai->id,
314b355f55b53bc Kai Chieh Chuang 2018-05-31 193 substream->stream,
314b355f55b53bc Kai Chieh Chuang 2018-05-31 194 rate,
314b355f55b53bc Kai Chieh Chuang 2018-05-31 195 rate_reg,
314b355f55b53bc Kai Chieh Chuang 2018-05-31 @196 dai->playback_widget->active,
314b355f55b53bc Kai Chieh Chuang 2018-05-31 @197 dai->capture_widget->active);
314b355f55b53bc Kai Chieh Chuang 2018-05-31 198
314b355f55b53bc Kai Chieh Chuang 2018-05-31 199 if (dai->playback_widget->active || dai->capture_widget->active)
314b355f55b53bc Kai Chieh Chuang 2018-05-31 200 return 0;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 201
314b355f55b53bc Kai Chieh Chuang 2018-05-31 202 switch (dai->id) {
314b355f55b53bc Kai Chieh Chuang 2018-05-31 203 case MT6797_DAI_PCM_1:
314b355f55b53bc Kai Chieh Chuang 2018-05-31 204 pcm_con |= AUD_BCLK_OUT_INV_NO_INVERSE << PCM_BCLK_OUT_INV_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 205 pcm_con |= AUD_TX_LCH_RPT_NO_REPEAT << PCM_TX_LCH_RPT_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 206 pcm_con |= AUD_VBT_16K_MODE_DISABLE << PCM_VBT_16K_MODE_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 207 pcm_con |= AUD_EXT_MODEM_SELECT_INTERNAL << PCM_EXT_MODEM_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 208 pcm_con |= 0 << PCM_SYNC_LENGTH_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 209 pcm_con |= AUD_PCM_ONE_BCK_CYCLE_SYNC << PCM_SYNC_TYPE_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 210 pcm_con |= AUD_BT_MODE_DUAL_MIC_ON_TX << PCM_BT_MODE_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 211 pcm_con |= AUD_PCM_AFIFO_AFIFO << PCM_BYP_ASRC_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 212 pcm_con |= AUD_PCM_CLOCK_SLAVE_MODE << PCM_SLAVE_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 213 pcm_con |= rate_reg << PCM_MODE_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 214 pcm_con |= AUD_PCM_FMT_PCM_MODE_B << PCM_FMT_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 215
314b355f55b53bc Kai Chieh Chuang 2018-05-31 216 regmap_update_bits(afe->regmap, PCM_INTF_CON1,
314b355f55b53bc Kai Chieh Chuang 2018-05-31 217 0xfffffffe, pcm_con);
314b355f55b53bc Kai Chieh Chuang 2018-05-31 218 break;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 219 case MT6797_DAI_PCM_2:
314b355f55b53bc Kai Chieh Chuang 2018-05-31 220 pcm_con |= AUD_TX_LCH_RPT_NO_REPEAT << PCM2_TX_LCH_RPT_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 221 pcm_con |= AUD_VBT_16K_MODE_DISABLE << PCM2_VBT_16K_MODE_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 222 pcm_con |= AUD_BT_MODE_DUAL_MIC_ON_TX << PCM2_BT_MODE_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 223 pcm_con |= AUD_PCM_AFIFO_AFIFO << PCM2_AFIFO_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 224 pcm_con |= AUD_PCM_WLEN_PCM_32_BCK_CYCLES << PCM2_WLEN_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 225 pcm_con |= rate_reg << PCM2_MODE_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 226 pcm_con |= AUD_PCM_FMT_PCM_MODE_B << PCM2_FMT_SFT;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 227
314b355f55b53bc Kai Chieh Chuang 2018-05-31 228 regmap_update_bits(afe->regmap, PCM2_INTF_CON,
314b355f55b53bc Kai Chieh Chuang 2018-05-31 229 0xfffffffe, pcm_con);
314b355f55b53bc Kai Chieh Chuang 2018-05-31 230 break;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 231 default:
314b355f55b53bc Kai Chieh Chuang 2018-05-31 232 dev_warn(afe->dev, "%s(), id %d not support\n",
314b355f55b53bc Kai Chieh Chuang 2018-05-31 233 __func__, dai->id);
314b355f55b53bc Kai Chieh Chuang 2018-05-31 234 return -EINVAL;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 235 }
314b355f55b53bc Kai Chieh Chuang 2018-05-31 236
314b355f55b53bc Kai Chieh Chuang 2018-05-31 237 return 0;
314b355f55b53bc Kai Chieh Chuang 2018-05-31 238 }
314b355f55b53bc Kai Chieh Chuang 2018-05-31 239
:::::: The code at line 196 was first introduced by commit
:::::: 314b355f55b53bc3cfc0380b46192dafb5893fcb ASoC: mt6797: add PCM interface
:::::: TO: Kai Chieh Chuang <kaichieh.chuang@...iatek.com>
:::::: CC: Mark Brown <broonie@...nel.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists