[alsa-devel] [asoc:for-5.3 34/45] sound/soc/mediatek/common/mtk-afe-fe-dai.c:268:2: error: too few arguments to function 'mtk_regmap_update_bits'
kbuild test robot
lkp at intel.com
Mon May 20 05:04:12 CEST 2019
Hi Shunli,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.3
head: bfa8130f50a63563eae10ef933fe01b50b3e87a0
commit: 1628fc3f47717fc3c8d9cd5fd6c7bc7d3796927d [34/45] ASoC: Mediatek: add memory interface data align
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 1628fc3f47717fc3c8d9cd5fd6c7bc7d3796927d
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
sound/soc/mediatek/common/mtk-afe-fe-dai.c: In function 'mtk_afe_fe_prepare':
>> sound/soc/mediatek/common/mtk-afe-fe-dai.c:268:2: error: too few arguments to function 'mtk_regmap_update_bits'
mtk_regmap_update_bits(afe->regmap, memif->data->hd_align_reg,
^~~~~~~~~~~~~~~~~~~~~~
sound/soc/mediatek/common/mtk-afe-fe-dai.c:19:12: note: declared here
static int mtk_regmap_update_bits(struct regmap *map, int reg,
^~~~~~~~~~~~~~~~~~~~~~
vim +/mtk_regmap_update_bits +268 sound/soc/mediatek/common/mtk-afe-fe-dai.c
236
237 int mtk_afe_fe_prepare(struct snd_pcm_substream *substream,
238 struct snd_soc_dai *dai)
239 {
240 struct snd_soc_pcm_runtime *rtd = substream->private_data;
241 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
242 struct mtk_base_afe_memif *memif = &afe->memif[rtd->cpu_dai->id];
243 int hd_audio = 0;
244 int hd_align = 1;
245
246 /* set hd mode */
247 switch (substream->runtime->format) {
248 case SNDRV_PCM_FORMAT_S16_LE:
249 hd_audio = 0;
250 break;
251 case SNDRV_PCM_FORMAT_S32_LE:
252 hd_audio = 1;
253 hd_align = 1;
254 break;
255 case SNDRV_PCM_FORMAT_S24_LE:
256 hd_audio = 1;
257 hd_align = 0;
258 break;
259 default:
260 dev_err(afe->dev, "%s() error: unsupported format %d\n",
261 __func__, substream->runtime->format);
262 break;
263 }
264
265 mtk_regmap_update_bits(afe->regmap, memif->data->hd_reg,
266 1, hd_audio, memif->data->hd_shift);
267
> 268 mtk_regmap_update_bits(afe->regmap, memif->data->hd_align_reg,
269 memif->data->hd_align_mshift,
270 hd_align ? memif->data->hd_align_mshift : 0);
271
272 return 0;
273 }
274 EXPORT_SYMBOL_GPL(mtk_afe_fe_prepare);
275
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 68435 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20190520/2563b326/attachment-0001.gz>
More information about the Alsa-devel
mailing list