All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 802/5720] sound/soc/samsung/s3c24xx-i2s.c:173:14: error: 'SND_SOC_DAIFMT_BC_CFC' undeclared; did you mean 'SND_SOC_DAIFMT_BC_FC'?
@ 2022-06-26 21:33 kernel test robot
  2022-06-27  1:46   ` Souptick Joarder
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2022-06-26 21:33 UTC (permalink / raw)
  To: Charles Keepax; +Cc: kbuild-all, Linux Memory Management List, Mark Brown

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   2f9cb3d3bd73fc2225d66aa8fcffb632ed3eb235
commit: 0b491c7c1b2555ef08285fd49a8567f2f9f34ff8 [802/5720] ASoC: samsung: Update to use set_fmt_new callback
config: arm-randconfig-r003-20220627
compiler: arm-linux-gnueabi-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=0b491c7c1b2555ef08285fd49a8567f2f9f34ff8
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 0b491c7c1b2555ef08285fd49a8567f2f9f34ff8
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash sound/soc/samsung/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   sound/soc/samsung/s3c24xx-i2s.c: In function 's3c24xx_i2s_set_fmt':
>> sound/soc/samsung/s3c24xx-i2s.c:173:14: error: 'SND_SOC_DAIFMT_BC_CFC' undeclared (first use in this function); did you mean 'SND_SOC_DAIFMT_BC_FC'?
     173 |         case SND_SOC_DAIFMT_BC_CFC:
         |              ^~~~~~~~~~~~~~~~~~~~~
         |              SND_SOC_DAIFMT_BC_FC
   sound/soc/samsung/s3c24xx-i2s.c:173:14: note: each undeclared identifier is reported only once for each function it appears in


vim +173 sound/soc/samsung/s3c24xx-i2s.c

   160	
   161	/*
   162	 * Set S3C24xx I2S DAI format
   163	 */
   164	static int s3c24xx_i2s_set_fmt(struct snd_soc_dai *cpu_dai,
   165			unsigned int fmt)
   166	{
   167		u32 iismod;
   168	
   169		iismod = readl(s3c24xx_i2s.regs + S3C2410_IISMOD);
   170		pr_debug("hw_params r: IISMOD: %x \n", iismod);
   171	
   172		switch (fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) {
 > 173		case SND_SOC_DAIFMT_BC_CFC:
   174			iismod |= S3C2410_IISMOD_SLAVE;
   175			break;
   176		case SND_SOC_DAIFMT_BP_FP:
   177			iismod &= ~S3C2410_IISMOD_SLAVE;
   178			break;
   179		default:
   180			return -EINVAL;
   181		}
   182	
   183		switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
   184		case SND_SOC_DAIFMT_LEFT_J:
   185			iismod |= S3C2410_IISMOD_MSB;
   186			break;
   187		case SND_SOC_DAIFMT_I2S:
   188			iismod &= ~S3C2410_IISMOD_MSB;
   189			break;
   190		default:
   191			return -EINVAL;
   192		}
   193	
   194		writel(iismod, s3c24xx_i2s.regs + S3C2410_IISMOD);
   195		pr_debug("hw_params w: IISMOD: %x \n", iismod);
   196	
   197		return 0;
   198	}
   199	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-27  1:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-26 21:33 [linux-next:master 802/5720] sound/soc/samsung/s3c24xx-i2s.c:173:14: error: 'SND_SOC_DAIFMT_BC_CFC' undeclared; did you mean 'SND_SOC_DAIFMT_BC_FC'? kernel test robot
2022-06-27  1:46 ` Souptick Joarder
2022-06-27  1:46   ` Souptick Joarder

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.