From: kernel test robot <lkp@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [morimoto:sound-cleanup-2026-02-27 64/71] sound/soc/mediatek/mt6797/mt6797-dai-pcm.c:188:12: error: expected ';' at end of declaration
Date: Fri, 27 Feb 2026 14:45:13 +0800 [thread overview]
Message-ID: <202602271436.slKE97Pg-lkp@intel.com> (raw)
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
reply other threads:[~2026-02-27 6:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202602271436.slKE97Pg-lkp@intel.com \
--to=lkp@intel.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox