From: kernel test robot <lkp@intel.com>
To: Igor Prusov <ivprusov@salutedevices.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-sound@vger.kernel.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
kernel@salutedevices.com, prusovigor@gmail.com,
David Yang <yangxiaohua@everest-semi.com>,
Martin Kurbanov <mmkurbanov@salutedevices.com>
Subject: Re: [PATCH v2 2/2] ASoC: codecs: add ES7243E ADC driver
Date: Sat, 21 Sep 2024 20:59:47 +0800 [thread overview]
Message-ID: <202409212032.P6kjCapX-lkp@intel.com> (raw)
In-Reply-To: <20240920-es7243e-adc-v2-2-0be019735b81@salutedevices.com>
Hi Igor,
kernel test robot noticed the following build errors:
[auto build test ERROR on baeb9a7d8b60b021d907127509c44507539c15e5]
url: https://github.com/intel-lab-lkp/linux/commits/Igor-Prusov/ASoC-dt-bindings-Add-Everest-ES7243E/20240920-235246
base: baeb9a7d8b60b021d907127509c44507539c15e5
patch link: https://lore.kernel.org/r/20240920-es7243e-adc-v2-2-0be019735b81%40salutedevices.com
patch subject: [PATCH v2 2/2] ASoC: codecs: add ES7243E ADC driver
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20240921/202409212032.P6kjCapX-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240921/202409212032.P6kjCapX-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/202409212032.P6kjCapX-lkp@intel.com/
All errors (new ones prefixed by >>):
sound/soc/codecs/es7243e.c: In function 'es7243e_set_dai_fmt':
>> sound/soc/codecs/es7243e.c:252:27: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration]
252 | sdpfmt |= FIELD_PREP(ES7243E_SDP_FMT, 0);
| ^~~~~~~~~~
vim +/FIELD_PREP +252 sound/soc/codecs/es7243e.c
239
240 static int es7243e_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
241 {
242 struct snd_soc_component *component = dai->component;
243 unsigned int sdpfmt = 0;
244 unsigned int clk2 = 0;
245 bool is_dsp = false;
246 bool invert_lrck = false;
247 int ret;
248
249 /* Set protocol of the serial data port */
250 switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
251 case SND_SOC_DAIFMT_I2S:
> 252 sdpfmt |= FIELD_PREP(ES7243E_SDP_FMT, 0);
253 break;
254 case SND_SOC_DAIFMT_LEFT_J:
255 sdpfmt |= FIELD_PREP(ES7243E_SDP_FMT, 1);
256 break;
257 case SND_SOC_DAIFMT_DSP_A:
258 sdpfmt |= FIELD_PREP(ES7243E_SDP_FMT, 3);
259 is_dsp = true;
260 break;
261 case SND_SOC_DAIFMT_DSP_B:
262 sdpfmt |= FIELD_PREP(ES7243E_SDP_FMT, 3);
263 is_dsp = true;
264 break;
265 default:
266 return -EINVAL;
267 }
268
269 /* Set LR and BCLK polarity */
270 switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
271 case SND_SOC_DAIFMT_NB_NF:
272 clk2 |= FIELD_PREP(ES7243E_CLK2_BCLK_INV, 0);
273 sdpfmt |= FIELD_PREP(ES7243E_SDP_LRP, 0);
274 break;
275 case SND_SOC_DAIFMT_IB_IF:
276 clk2 |= FIELD_PREP(ES7243E_CLK2_BCLK_INV, 1);
277 sdpfmt |= FIELD_PREP(ES7243E_SDP_LRP, 1);
278 invert_lrck = true;
279 break;
280 case SND_SOC_DAIFMT_IB_NF:
281 clk2 |= FIELD_PREP(ES7243E_CLK2_BCLK_INV, 1);
282 sdpfmt |= FIELD_PREP(ES7243E_SDP_LRP, 0);
283 break;
284 case SND_SOC_DAIFMT_NB_IF:
285 clk2 |= FIELD_PREP(ES7243E_CLK2_BCLK_INV, 0);
286 sdpfmt |= FIELD_PREP(ES7243E_SDP_LRP, 1);
287 invert_lrck = true;
288 break;
289 default:
290 return -EINVAL;
291 }
292
293 /* Inverted LRCK is not available in DSP mode. */
294 if (is_dsp && invert_lrck)
295 return -EINVAL;
296
297 ret = snd_soc_component_update_bits(component, ES7243E_CLK2,
298 ES7243E_CLK2_BCLK_INV, clk2);
299 if (ret < 0)
300 return ret;
301
302 return snd_soc_component_update_bits(component, ES7243E_SDP,
303 ES7243E_SDP_LRP, sdpfmt);
304 }
305
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-09-21 13:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-20 15:41 [PATCH v2 0/2] Add ES7243E ADC driver Igor Prusov
2024-09-20 15:41 ` [PATCH v2 1/2] ASoC: dt-bindings: Add Everest ES7243E Igor Prusov
2024-09-24 12:31 ` Mark Brown
2024-09-20 15:41 ` [PATCH v2 2/2] ASoC: codecs: add ES7243E ADC driver Igor Prusov
2024-09-21 12:59 ` kernel test robot [this message]
2024-09-21 17:38 ` kernel test robot
2024-09-21 21:34 ` kernel test robot
2024-09-24 12:24 ` Mark Brown
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=202409212032.P6kjCapX-lkp@intel.com \
--to=lkp@intel.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=ivprusov@salutedevices.com \
--cc=kernel@salutedevices.com \
--cc=krzk@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=mmkurbanov@salutedevices.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=perex@perex.cz \
--cc=prusovigor@gmail.com \
--cc=robh@kernel.org \
--cc=tiwai@suse.com \
--cc=yangxiaohua@everest-semi.com \
/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