From: kernel test robot <lkp@intel.com>
To: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>,
alsa-devel@alsa-project.org
Cc: oe-kbuild-all@lists.linux.dev, Takashi Iwai <tiwai@suse.de>
Subject: Re: [PATCH 7/7] ALSA: emu10k1: use more existing defines instead of open-coded numbers
Date: Sun, 23 Apr 2023 02:52:49 +0800 [thread overview]
Message-ID: <202304230230.Hzwubvl5-lkp@intel.com> (raw)
In-Reply-To: <20230422161021.1143903-8-oswald.buddenhagen@gmx.de>
Hi Oswald,
kernel test robot noticed the following build errors:
[auto build test ERROR on tiwai-sound/for-next]
[cannot apply to tiwai-sound/for-linus linus/master v6.3-rc7 next-20230421]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Oswald-Buddenhagen/ALSA-emu10k1-comment-updates/20230423-002113
base: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
patch link: https://lore.kernel.org/r/20230422161021.1143903-8-oswald.buddenhagen%40gmx.de
patch subject: [PATCH 7/7] ALSA: emu10k1: use more existing defines instead of open-coded numbers
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20230423/202304230230.Hzwubvl5-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/e9c8b11aa4d8ccd105aba0217ff72e87bad545bf
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Oswald-Buddenhagen/ALSA-emu10k1-comment-updates/20230423-002113
git checkout e9c8b11aa4d8ccd105aba0217ff72e87bad545bf
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 olddefconfig
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304230230.Hzwubvl5-lkp@intel.com/
All errors (new ones prefixed by >>):
sound/pci/emu10k1/p16v.c: In function 'snd_p16v_pcm_prepare_capture':
>> sound/pci/emu10k1/p16v.c:313:38: error: 'A_I2S_CAPTURE_RATE' undeclared (first use in this function); did you mean 'A_I2S_CAPTURE_RATE_MASK'?
313 | snd_emu10k1_ptr_write(emu, A_I2S_CAPTURE_RATE, channel, A_I2S_CAPTURE_44100);
| ^~~~~~~~~~~~~~~~~~
| A_I2S_CAPTURE_RATE_MASK
sound/pci/emu10k1/p16v.c:313:38: note: each undeclared identifier is reported only once for each function it appears in
vim +313 sound/pci/emu10k1/p16v.c
295
296 /* prepare capture callback */
297 static int snd_p16v_pcm_prepare_capture(struct snd_pcm_substream *substream)
298 {
299 struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
300 struct snd_pcm_runtime *runtime = substream->runtime;
301 int channel = substream->pcm->device - emu->p16v_device_offset;
302
303 /*
304 dev_dbg(emu->card->dev, "prepare capture:channel_number=%d, rate=%d, "
305 "format=0x%x, channels=%d, buffer_size=%ld, period_size=%ld, "
306 "frames_to_bytes=%d\n",
307 channel, runtime->rate, runtime->format, runtime->channels,
308 runtime->buffer_size, runtime->period_size,
309 frames_to_bytes(runtime, 1));
310 */
311 switch (runtime->rate) {
312 case 44100:
> 313 snd_emu10k1_ptr_write(emu, A_I2S_CAPTURE_RATE, channel, A_I2S_CAPTURE_44100);
314 break;
315 case 96000:
316 snd_emu10k1_ptr_write(emu, A_I2S_CAPTURE_RATE, channel, A_I2S_CAPTURE_96000);
317 break;
318 case 192000:
319 snd_emu10k1_ptr_write(emu, A_I2S_CAPTURE_RATE, channel, A_I2S_CAPTURE_192000);
320 break;
321 case 48000:
322 default:
323 snd_emu10k1_ptr_write(emu, A_I2S_CAPTURE_RATE, channel, A_I2S_CAPTURE_48000);
324 break;
325 }
326 /* FIXME: Check emu->buffer.size before actually writing to it. */
327 snd_emu10k1_ptr20_write(emu, CAPTURE_FIFO_POINTER, channel, 0);
328 snd_emu10k1_ptr20_write(emu, CAPTURE_DMA_ADDR, channel, runtime->dma_addr);
329 snd_emu10k1_ptr20_write(emu, CAPTURE_BUFFER_SIZE, channel, frames_to_bytes(runtime, runtime->buffer_size) << 16); // buffer size in bytes
330 snd_emu10k1_ptr20_write(emu, CAPTURE_POINTER, channel, 0);
331 //snd_emu10k1_ptr20_write(emu, CAPTURE_SOURCE, 0x0, 0x333300e4); /* Select MIC or Line in */
332 //snd_emu10k1_ptr20_write(emu, EXTENDED_INT_MASK, 0, snd_emu10k1_ptr20_read(emu, EXTENDED_INT_MASK, 0) | (0x110000<<channel));
333
334 return 0;
335 }
336
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
next prev parent reply other threads:[~2023-04-22 18:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-22 16:10 [PATCH 0/7] ALSA: emu10k1: improvements mostly related to #defines Oswald Buddenhagen
2023-04-22 16:10 ` [PATCH 1/7] ALSA: emu10k1: comment updates Oswald Buddenhagen
2023-04-22 16:10 ` [PATCH 2/7] ALSA: emu10k1: fix lineup of EMU_HANA_* defines Oswald Buddenhagen
2023-04-22 16:10 ` [PATCH 3/7] ALSA: emu10k1: eliminate some unused defines Oswald Buddenhagen
2023-04-22 16:10 ` [PATCH 4/7] ALSA: emu10k1: remove some bogus defines Oswald Buddenhagen
2023-04-22 16:10 ` [PATCH 5/7] ALSA: emu10k1: pull in some register definitions from kX-project Oswald Buddenhagen
2023-04-22 16:10 ` [PATCH 6/7] ALSA: emu10k1: fixup DSP defines Oswald Buddenhagen
2023-04-22 16:10 ` [PATCH 7/7] ALSA: emu10k1: use more existing defines instead of open-coded numbers Oswald Buddenhagen
2023-04-22 18:52 ` kernel test robot [this message]
2023-04-23 7:26 ` Takashi Iwai
2023-04-24 13:51 ` Oswald Buddenhagen
2023-04-23 7:27 ` [PATCH 0/7] ALSA: emu10k1: improvements mostly related to #defines Takashi Iwai
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=202304230230.Hzwubvl5-lkp@intel.com \
--to=lkp@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oswald.buddenhagen@gmx.de \
--cc=tiwai@suse.de \
/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