All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Cheng-Yi Chiang <cychiang@chromium.org>, linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, Mark Brown <broonie@kernel.org>,
	Taniya Das <tdas@codeaurora.org>,
	Rohit kumar <rohitkr@codeaurora.org>,
	Banajit Goswami <bgoswami@codeaurora.org>,
	Patrick Lai <plai@codeaurora.org>, Andy Gross <agross@kernel.org>,
	Bjorn Andersson <bjorn.andersson@linaro.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Rob Herring <robh+dt@kernel.org>
Subject: Re: [PATCH v7 3/3] ASoC: qcom: sc7180: Add machine driver for sound card registration
Date: Mon, 7 Sep 2020 20:08:48 +0800	[thread overview]
Message-ID: <202009072032.9yLwcLu0%lkp@intel.com> (raw)
In-Reply-To: <20200907100039.1731457-4-cychiang@chromium.org>

[-- Attachment #1: Type: text/plain, Size: 3908 bytes --]

Hi Cheng-Yi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on asoc/for-next]
[also build test ERROR on next-20200903]
[cannot apply to linux/master sound/for-next rockchip/for-next linus/master v5.9-rc4]
[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]

url:    https://github.com/0day-ci/linux/commits/Cheng-Yi-Chiang/Add-documentation-and-machine-driver-for-SC7180-sound-card/20200907-180250
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.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
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2 

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

All errors (new ones prefixed by >>):

   sound/soc/qcom/sc7180.c: In function 'sc7180_snd_startup':
>> sound/soc/qcom/sc7180.c:144:7: error: 'HDMI' undeclared (first use in this function)
     144 |  case HDMI:
         |       ^~~~
   sound/soc/qcom/sc7180.c:144:7: note: each undeclared identifier is reported only once for each function it appears in
   sound/soc/qcom/sc7180.c: In function 'sc7180_snd_shutdown':
   sound/soc/qcom/sc7180.c:172:7: error: 'HDMI' undeclared (first use in this function)
     172 |  case HDMI:
         |       ^~~~

# https://github.com/0day-ci/linux/commit/54ab0f3cb3682429fc199d9b30572f67a967b30b
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Cheng-Yi-Chiang/Add-documentation-and-machine-driver-for-SC7180-sound-card/20200907-180250
git checkout 54ab0f3cb3682429fc199d9b30572f67a967b30b
vim +/HDMI +144 sound/soc/qcom/sc7180.c

   101	
   102	static int sc7180_snd_startup(struct snd_pcm_substream *substream)
   103	{
   104		struct snd_soc_pcm_runtime *rtd = substream->private_data;
   105		struct snd_soc_card *card = rtd->card;
   106		struct sc7180_snd_data *data = snd_soc_card_get_drvdata(card);
   107		struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0);
   108		struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0);
   109		int ret;
   110	
   111		switch (cpu_dai->id) {
   112		case MI2S_PRIMARY:
   113			if (++data->pri_mi2s_clk_count == 1) {
   114				snd_soc_dai_set_sysclk(cpu_dai,
   115						       LPASS_MCLK0,
   116						       DEFAULT_MCLK_RATE,
   117						       SNDRV_PCM_STREAM_PLAYBACK);
   118			}
   119	
   120			snd_soc_dai_set_fmt(codec_dai,
   121					    SND_SOC_DAIFMT_CBS_CFS |
   122					    SND_SOC_DAIFMT_NB_NF |
   123					    SND_SOC_DAIFMT_I2S);
   124	
   125			/* Configure PLL1 for codec */
   126			ret = snd_soc_dai_set_pll(codec_dai, 0, RT5682_PLL1_S_MCLK,
   127						  DEFAULT_MCLK_RATE, RT5682_PLL1_FREQ);
   128			if (ret) {
   129				dev_err(rtd->dev, "can't set codec pll: %d\n", ret);
   130				return ret;
   131			}
   132	
   133			/* Configure sysclk for codec */
   134			ret = snd_soc_dai_set_sysclk(codec_dai, RT5682_SCLK_S_PLL1,
   135						     RT5682_PLL1_FREQ,
   136						     SND_SOC_CLOCK_IN);
   137			if (ret)
   138				dev_err(rtd->dev, "snd_soc_dai_set_sysclk err = %d\n",
   139					ret);
   140	
   141			break;
   142		case MI2S_SECONDARY:
   143			break;
 > 144		case HDMI:
   145			break;
   146		default:
   147			dev_err(rtd->dev, "%s: invalid dai id 0x%x\n", __func__,
   148				cpu_dai->id);
   149			return -EINVAL;
   150		}
   151		return 0;
   152	}
   153	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 57205 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v7 3/3] ASoC: qcom: sc7180: Add machine driver for sound card registration
Date: Mon, 07 Sep 2020 20:08:48 +0800	[thread overview]
Message-ID: <202009072032.9yLwcLu0%lkp@intel.com> (raw)
In-Reply-To: <20200907100039.1731457-4-cychiang@chromium.org>

[-- Attachment #1: Type: text/plain, Size: 4009 bytes --]

Hi Cheng-Yi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on asoc/for-next]
[also build test ERROR on next-20200903]
[cannot apply to linux/master sound/for-next rockchip/for-next linus/master v5.9-rc4]
[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]

url:    https://github.com/0day-ci/linux/commits/Cheng-Yi-Chiang/Add-documentation-and-machine-driver-for-SC7180-sound-card/20200907-180250
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.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
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2 

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

All errors (new ones prefixed by >>):

   sound/soc/qcom/sc7180.c: In function 'sc7180_snd_startup':
>> sound/soc/qcom/sc7180.c:144:7: error: 'HDMI' undeclared (first use in this function)
     144 |  case HDMI:
         |       ^~~~
   sound/soc/qcom/sc7180.c:144:7: note: each undeclared identifier is reported only once for each function it appears in
   sound/soc/qcom/sc7180.c: In function 'sc7180_snd_shutdown':
   sound/soc/qcom/sc7180.c:172:7: error: 'HDMI' undeclared (first use in this function)
     172 |  case HDMI:
         |       ^~~~

# https://github.com/0day-ci/linux/commit/54ab0f3cb3682429fc199d9b30572f67a967b30b
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Cheng-Yi-Chiang/Add-documentation-and-machine-driver-for-SC7180-sound-card/20200907-180250
git checkout 54ab0f3cb3682429fc199d9b30572f67a967b30b
vim +/HDMI +144 sound/soc/qcom/sc7180.c

   101	
   102	static int sc7180_snd_startup(struct snd_pcm_substream *substream)
   103	{
   104		struct snd_soc_pcm_runtime *rtd = substream->private_data;
   105		struct snd_soc_card *card = rtd->card;
   106		struct sc7180_snd_data *data = snd_soc_card_get_drvdata(card);
   107		struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0);
   108		struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0);
   109		int ret;
   110	
   111		switch (cpu_dai->id) {
   112		case MI2S_PRIMARY:
   113			if (++data->pri_mi2s_clk_count == 1) {
   114				snd_soc_dai_set_sysclk(cpu_dai,
   115						       LPASS_MCLK0,
   116						       DEFAULT_MCLK_RATE,
   117						       SNDRV_PCM_STREAM_PLAYBACK);
   118			}
   119	
   120			snd_soc_dai_set_fmt(codec_dai,
   121					    SND_SOC_DAIFMT_CBS_CFS |
   122					    SND_SOC_DAIFMT_NB_NF |
   123					    SND_SOC_DAIFMT_I2S);
   124	
   125			/* Configure PLL1 for codec */
   126			ret = snd_soc_dai_set_pll(codec_dai, 0, RT5682_PLL1_S_MCLK,
   127						  DEFAULT_MCLK_RATE, RT5682_PLL1_FREQ);
   128			if (ret) {
   129				dev_err(rtd->dev, "can't set codec pll: %d\n", ret);
   130				return ret;
   131			}
   132	
   133			/* Configure sysclk for codec */
   134			ret = snd_soc_dai_set_sysclk(codec_dai, RT5682_SCLK_S_PLL1,
   135						     RT5682_PLL1_FREQ,
   136						     SND_SOC_CLOCK_IN);
   137			if (ret)
   138				dev_err(rtd->dev, "snd_soc_dai_set_sysclk err = %d\n",
   139					ret);
   140	
   141			break;
   142		case MI2S_SECONDARY:
   143			break;
 > 144		case HDMI:
   145			break;
   146		default:
   147			dev_err(rtd->dev, "%s: invalid dai id 0x%x\n", __func__,
   148				cpu_dai->id);
   149			return -EINVAL;
   150		}
   151		return 0;
   152	}
   153	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 57205 bytes --]

  reply	other threads:[~2020-09-07 17:50 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-07 10:00 [PATCH v7 0/3] Add documentation and machine driver for SC7180 sound card Cheng-Yi Chiang
2020-09-07 10:00 ` Cheng-Yi Chiang
2020-09-07 10:00 ` Cheng-Yi Chiang
2020-09-07 10:00 ` Cheng-Yi Chiang
2020-09-07 10:00 ` Cheng-Yi Chiang
2020-09-07 10:00 ` [PATCH v7 1/3] ASoC: hdmi-codec: Use set_jack ops to set jack Cheng-Yi Chiang
2020-09-07 10:00   ` Cheng-Yi Chiang
2020-09-07 10:00   ` Cheng-Yi Chiang
2020-09-07 10:00   ` Cheng-Yi Chiang
2020-09-07 10:00   ` Cheng-Yi Chiang
2020-09-07 10:00 ` [PATCH v7 2/3] ASoC: qcom: dt-bindings: Add sc7180 machine bindings Cheng-Yi Chiang
2020-09-07 10:00   ` Cheng-Yi Chiang
2020-09-07 10:00   ` Cheng-Yi Chiang
2020-09-07 10:00   ` Cheng-Yi Chiang
2020-09-07 10:00   ` Cheng-Yi Chiang
2020-09-08 20:33   ` Rob Herring
2020-09-08 20:33     ` Rob Herring
2020-09-08 20:33     ` Rob Herring
2020-09-08 20:33     ` Rob Herring
2020-09-08 20:33     ` Rob Herring
2020-09-09  9:23     ` Cheng-yi Chiang
2020-09-09  9:23       ` Cheng-yi Chiang
2020-09-09  9:23       ` Cheng-yi Chiang
2020-09-09  9:23       ` Cheng-yi Chiang
2020-09-09  9:23       ` Cheng-yi Chiang
2020-09-09 10:19       ` Cheng-yi Chiang
2020-09-09 10:19         ` Cheng-yi Chiang
2020-09-09 10:19         ` Cheng-yi Chiang
2020-09-09 10:19         ` Cheng-yi Chiang
2020-09-09 10:19         ` Cheng-yi Chiang
2020-09-09 17:49       ` Rob Herring
2020-09-09 17:49         ` Rob Herring
2020-09-09 17:49         ` Rob Herring
2020-09-09 17:49         ` Rob Herring
2020-09-09 17:49         ` Rob Herring
2020-09-10  2:10         ` Cheng-yi Chiang
2020-09-10  2:10           ` Cheng-yi Chiang
2020-09-10  2:10           ` Cheng-yi Chiang
2020-09-10  2:10           ` Cheng-yi Chiang
2020-09-10  2:10           ` Cheng-yi Chiang
2020-09-10 11:02         ` Mark Brown
2020-09-10 11:02           ` Mark Brown
2020-09-10 11:02           ` Mark Brown
2020-09-10 11:02           ` Mark Brown
2020-09-10 11:02           ` Mark Brown
2020-09-07 10:00 ` [PATCH v7 3/3] ASoC: qcom: sc7180: Add machine driver for sound card registration Cheng-Yi Chiang
2020-09-07 10:00   ` Cheng-Yi Chiang
2020-09-07 10:00   ` Cheng-Yi Chiang
2020-09-07 10:00   ` Cheng-Yi Chiang
2020-09-07 10:00   ` Cheng-Yi Chiang
2020-09-07 12:08   ` kernel test robot [this message]
2020-09-07 12:08     ` kernel test robot

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=202009072032.9yLwcLu0%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=agross@kernel.org \
    --cc=bgoswami@codeaurora.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=broonie@kernel.org \
    --cc=cychiang@chromium.org \
    --cc=kbuild-all@lists.01.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=plai@codeaurora.org \
    --cc=robh+dt@kernel.org \
    --cc=rohitkr@codeaurora.org \
    --cc=tdas@codeaurora.org \
    /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 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.