* [morimoto:sound-cleanup-2026-02-27 64/71] sound/soc/mediatek/mt6797/mt6797-dai-pcm.c:188:12: error: expected ';' at end of declaration
@ 2026-02-27 6:45 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-27 6:45 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: llvm, oe-kbuild-all
tree: https://github.com/morimoto/linux sound-cleanup-2026-02-27
head: 70fac1227b8f4cff541671ddd98131030be53492
commit: 0d2fc26b6b9e1b6dbf496f2e231460cdcae63f24 [64/71] move struct dai
config: arm64-randconfig-003-20260227 (https://download.01.org/0day-ci/archive/20260227/202602271436.slKE97Pg-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 9a109fbb6e184ec9bcce10615949f598f4c974a9)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260227/202602271436.slKE97Pg-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602271436.slKE97Pg-lkp@intel.com/
All errors (new ones prefixed by >>):
>> sound/soc/mediatek/mt6797/mt6797-dai-pcm.c:188:12: error: expected ';' at end of declaration
188 | int dai_id snd_soc_dai_id(dai);
| ^
| ;
1 error generated.
vim +188 sound/soc/mediatek/mt6797/mt6797-dai-pcm.c
179
180 /* dai ops */
181 static int mtk_dai_pcm_hw_params(struct snd_pcm_substream *substream,
182 struct snd_pcm_hw_params *params,
183 struct snd_soc_dai *dai)
184 {
185 struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
186 struct snd_soc_dapm_widget *p = snd_soc_dai_stream_widget_get_playback(dai);
187 struct snd_soc_dapm_widget *c = snd_soc_dai_stream_widget_get_capture(dai);
> 188 int dai_id snd_soc_dai_id(dai);
189 unsigned int rate = params_rate(params);
190 unsigned int rate_reg = mt6797_rate_transform(afe->dev, rate, dai_id);
191 unsigned int pcm_con = 0;
192
193 dev_dbg(afe->dev, "%s(), id %d, stream %d, rate %d, rate_reg %d, widget active p %d, c %d\n",
194 __func__,
195 dai_id,
196 substream->stream,
197 rate,
198 rate_reg,
199 p->active,
200 c->active);
201
202 if (p->active || c->active)
203 return 0;
204
205 switch (dai_id) {
206 case MT6797_DAI_PCM_1:
207 pcm_con |= AUD_BCLK_OUT_INV_NO_INVERSE << PCM_BCLK_OUT_INV_SFT;
208 pcm_con |= AUD_TX_LCH_RPT_NO_REPEAT << PCM_TX_LCH_RPT_SFT;
209 pcm_con |= AUD_VBT_16K_MODE_DISABLE << PCM_VBT_16K_MODE_SFT;
210 pcm_con |= AUD_EXT_MODEM_SELECT_INTERNAL << PCM_EXT_MODEM_SFT;
211 pcm_con |= 0 << PCM_SYNC_LENGTH_SFT;
212 pcm_con |= AUD_PCM_ONE_BCK_CYCLE_SYNC << PCM_SYNC_TYPE_SFT;
213 pcm_con |= AUD_BT_MODE_DUAL_MIC_ON_TX << PCM_BT_MODE_SFT;
214 pcm_con |= AUD_PCM_AFIFO_AFIFO << PCM_BYP_ASRC_SFT;
215 pcm_con |= AUD_PCM_CLOCK_SLAVE_MODE << PCM_SLAVE_SFT;
216 pcm_con |= rate_reg << PCM_MODE_SFT;
217 pcm_con |= AUD_PCM_FMT_PCM_MODE_B << PCM_FMT_SFT;
218
219 regmap_update_bits(afe->regmap, PCM_INTF_CON1,
220 0xfffffffe, pcm_con);
221 break;
222 case MT6797_DAI_PCM_2:
223 pcm_con |= AUD_TX_LCH_RPT_NO_REPEAT << PCM2_TX_LCH_RPT_SFT;
224 pcm_con |= AUD_VBT_16K_MODE_DISABLE << PCM2_VBT_16K_MODE_SFT;
225 pcm_con |= AUD_BT_MODE_DUAL_MIC_ON_TX << PCM2_BT_MODE_SFT;
226 pcm_con |= AUD_PCM_AFIFO_AFIFO << PCM2_AFIFO_SFT;
227 pcm_con |= AUD_PCM_WLEN_PCM_32_BCK_CYCLES << PCM2_WLEN_SFT;
228 pcm_con |= rate_reg << PCM2_MODE_SFT;
229 pcm_con |= AUD_PCM_FMT_PCM_MODE_B << PCM2_FMT_SFT;
230
231 regmap_update_bits(afe->regmap, PCM2_INTF_CON,
232 0xfffffffe, pcm_con);
233 break;
234 default:
235 dev_warn(afe->dev, "%s(), id %d not support\n",
236 __func__, dai_id);
237 return -EINVAL;
238 }
239
240 return 0;
241 }
242
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-02-27 6:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-27 6:45 [morimoto:sound-cleanup-2026-02-27 64/71] sound/soc/mediatek/mt6797/mt6797-dai-pcm.c:188:12: error: expected ';' at end of declaration kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox