From: kernel test robot <lkp@intel.com>
To: jiebing chen via B4 Relay
<devnull+jiebing.chen.amlogic.com@kernel.org>,
Jerome Brunet <jbrunet@baylibre.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Kevin Hilman <khilman@baylibre.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-sound@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-amlogic@lists.infradead.org,
jiebing chen <jiebing.chen@amlogic.com>
Subject: Re: [PATCH 2/3] ASoC: meson: s4:support for the on-chip audio
Date: Tue, 14 Jan 2025 17:09:37 +0800 [thread overview]
Message-ID: <202501141658.tM15P1iG-lkp@intel.com> (raw)
In-Reply-To: <20250113-audio_drvier-v1-2-8c14770f38a0@amlogic.com>
Hi jiebing,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 6ecd20965bdc21b265a0671ccf36d9ad8043f5ab]
url: https://github.com/intel-lab-lkp/linux/commits/jiebing-chen-via-B4-Relay/ASoC-dt-bindings-Add-Amlogic-S4-audio/20250113-143911
base: 6ecd20965bdc21b265a0671ccf36d9ad8043f5ab
patch link: https://lore.kernel.org/r/20250113-audio_drvier-v1-2-8c14770f38a0%40amlogic.com
patch subject: [PATCH 2/3] ASoC: meson: s4:support for the on-chip audio
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20250114/202501141658.tM15P1iG-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250114/202501141658.tM15P1iG-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/202501141658.tM15P1iG-lkp@intel.com/
All warnings (new ones prefixed by >>):
sound/soc/meson/s4-tocodec-control.c: In function 'aml_tocodec_sel_set':
>> sound/soc/meson/s4-tocodec-control.c:151:15: warning: unused variable 'clk_name' [-Wunused-variable]
151 | char *clk_name;
| ^~~~~~~~
vim +/clk_name +151 sound/soc/meson/s4-tocodec-control.c
137
138 static int aml_tocodec_sel_set(struct snd_soc_dapm_widget *w)
139 {
140 struct snd_soc_dai *be;
141 struct axg_tdm_stream *stream;
142 struct axg_tdm_iface *iface;
143 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
144 struct toacodec *priv = snd_soc_component_get_drvdata(component);
145 unsigned int tdm_id = TDM_A_PAD;
146 const char *dai_widget_name;
147 struct snd_soc_dapm_path *p;
148 unsigned int lane = 0;
149 unsigned int val = 0;
150 struct clk *sclk, *mclk;
> 151 char *clk_name;
152 int mclk_id, sclk_id;
153
154 be = tocodec_tdm_get_ahead_be(w);
155 if (!be) {
156 dev_err(component->dev, "%s not find the be\n", __func__);
157 return -EINVAL;
158 }
159 stream = snd_soc_dai_dma_data_get_playback(be);
160 if (!stream) {
161 dev_err(component->dev, "%s not find the stream\n", __func__);
162 return -EINVAL;
163 }
164 /*we like to use dai id, but it is fixed val*/
165 dai_widget_name = be->stream[SNDRV_PCM_STREAM_PLAYBACK].widget->name;
166 if (strstr(dai_widget_name, "TDM_A"))
167 tdm_id = TDM_A_PAD;
168 else if (strstr(dai_widget_name, "TDM_B"))
169 tdm_id = TDM_B_PAD;
170 else if (strstr(dai_widget_name, "TDM_C"))
171 tdm_id = TDM_C_PAD;
172 snd_soc_dapm_widget_for_each_source_path(w, p) {
173 if (p->connect && p->name) {
174 lane = aml_simple_strtoull(p->name);
175 val = lane + tdm_id * S4_LANE_OFFSET;
176 regmap_field_write(priv->field_dat_sel, val);
177 }
178 }
179 iface = stream->iface;
180 mclk = iface->mclk;
181 sclk = iface->sclk;
182 mclk_id = aml_get_clk_id(__clk_get_name(mclk));
183 sclk_id = aml_get_clk_id(__clk_get_name(sclk));
184 regmap_field_write(priv->field_mclk_sel, mclk_id);
185 regmap_field_write(priv->field_bclk_sel, sclk_id);
186 regmap_field_write(priv->field_lrclk_sel, sclk_id);
187
188 return 0;
189 }
190
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: jiebing chen via B4 Relay
<devnull+jiebing.chen.amlogic.com@kernel.org>,
Jerome Brunet <jbrunet@baylibre.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Kevin Hilman <khilman@baylibre.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-sound@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-amlogic@lists.infradead.org,
jiebing chen <jiebing.chen@amlogic.com>
Subject: Re: [PATCH 2/3] ASoC: meson: s4:support for the on-chip audio
Date: Tue, 14 Jan 2025 17:09:37 +0800 [thread overview]
Message-ID: <202501141658.tM15P1iG-lkp@intel.com> (raw)
In-Reply-To: <20250113-audio_drvier-v1-2-8c14770f38a0@amlogic.com>
Hi jiebing,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 6ecd20965bdc21b265a0671ccf36d9ad8043f5ab]
url: https://github.com/intel-lab-lkp/linux/commits/jiebing-chen-via-B4-Relay/ASoC-dt-bindings-Add-Amlogic-S4-audio/20250113-143911
base: 6ecd20965bdc21b265a0671ccf36d9ad8043f5ab
patch link: https://lore.kernel.org/r/20250113-audio_drvier-v1-2-8c14770f38a0%40amlogic.com
patch subject: [PATCH 2/3] ASoC: meson: s4:support for the on-chip audio
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20250114/202501141658.tM15P1iG-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250114/202501141658.tM15P1iG-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/202501141658.tM15P1iG-lkp@intel.com/
All warnings (new ones prefixed by >>):
sound/soc/meson/s4-tocodec-control.c: In function 'aml_tocodec_sel_set':
>> sound/soc/meson/s4-tocodec-control.c:151:15: warning: unused variable 'clk_name' [-Wunused-variable]
151 | char *clk_name;
| ^~~~~~~~
vim +/clk_name +151 sound/soc/meson/s4-tocodec-control.c
137
138 static int aml_tocodec_sel_set(struct snd_soc_dapm_widget *w)
139 {
140 struct snd_soc_dai *be;
141 struct axg_tdm_stream *stream;
142 struct axg_tdm_iface *iface;
143 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
144 struct toacodec *priv = snd_soc_component_get_drvdata(component);
145 unsigned int tdm_id = TDM_A_PAD;
146 const char *dai_widget_name;
147 struct snd_soc_dapm_path *p;
148 unsigned int lane = 0;
149 unsigned int val = 0;
150 struct clk *sclk, *mclk;
> 151 char *clk_name;
152 int mclk_id, sclk_id;
153
154 be = tocodec_tdm_get_ahead_be(w);
155 if (!be) {
156 dev_err(component->dev, "%s not find the be\n", __func__);
157 return -EINVAL;
158 }
159 stream = snd_soc_dai_dma_data_get_playback(be);
160 if (!stream) {
161 dev_err(component->dev, "%s not find the stream\n", __func__);
162 return -EINVAL;
163 }
164 /*we like to use dai id, but it is fixed val*/
165 dai_widget_name = be->stream[SNDRV_PCM_STREAM_PLAYBACK].widget->name;
166 if (strstr(dai_widget_name, "TDM_A"))
167 tdm_id = TDM_A_PAD;
168 else if (strstr(dai_widget_name, "TDM_B"))
169 tdm_id = TDM_B_PAD;
170 else if (strstr(dai_widget_name, "TDM_C"))
171 tdm_id = TDM_C_PAD;
172 snd_soc_dapm_widget_for_each_source_path(w, p) {
173 if (p->connect && p->name) {
174 lane = aml_simple_strtoull(p->name);
175 val = lane + tdm_id * S4_LANE_OFFSET;
176 regmap_field_write(priv->field_dat_sel, val);
177 }
178 }
179 iface = stream->iface;
180 mclk = iface->mclk;
181 sclk = iface->sclk;
182 mclk_id = aml_get_clk_id(__clk_get_name(mclk));
183 sclk_id = aml_get_clk_id(__clk_get_name(sclk));
184 regmap_field_write(priv->field_mclk_sel, mclk_id);
185 regmap_field_write(priv->field_bclk_sel, sclk_id);
186 regmap_field_write(priv->field_lrclk_sel, sclk_id);
187
188 return 0;
189 }
190
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-01-14 9:12 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-13 6:35 [PATCH 0/3] Add support for S4 audio jiebing chen
2025-01-13 6:35 ` jiebing chen via B4 Relay
2025-01-13 6:35 ` jiebing chen via B4 Relay
2025-01-13 6:35 ` [PATCH 1/3] ASoC: dt-bindings: Add Amlogic " jiebing chen
2025-01-13 6:35 ` jiebing chen via B4 Relay
2025-01-13 6:35 ` jiebing chen via B4 Relay
2025-01-13 7:19 ` Rob Herring (Arm)
2025-01-13 7:19 ` Rob Herring (Arm)
2025-01-13 6:35 ` [PATCH 2/3] ASoC: meson: s4:support for the on-chip audio jiebing chen
2025-01-13 6:35 ` jiebing chen via B4 Relay
2025-01-13 6:35 ` jiebing chen via B4 Relay
2025-01-13 14:31 ` Jerome Brunet
2025-01-13 14:31 ` Jerome Brunet
2025-01-14 8:16 ` Jiebing Chen
2025-01-14 8:16 ` Jiebing Chen
2025-01-14 11:20 ` Jiebing Chen
2025-01-14 11:20 ` Jiebing Chen
2025-01-14 14:05 ` Jerome Brunet
2025-01-14 14:05 ` Jerome Brunet
2025-01-15 2:56 ` Jiebing Chen
2025-01-15 2:56 ` Jiebing Chen
2025-01-15 8:36 ` Jerome Brunet
2025-01-15 8:36 ` Jerome Brunet
2025-01-15 10:36 ` Jiebing Chen
2025-01-15 10:36 ` Jiebing Chen
2025-01-15 11:47 ` Jiebing Chen
2025-01-15 11:47 ` Jiebing Chen
2025-01-15 12:09 ` Jiebing Chen
2025-01-15 12:09 ` Jiebing Chen
2025-01-14 11:29 ` Jerome Brunet
2025-01-14 11:29 ` Jerome Brunet
2025-01-14 12:41 ` Jiebing Chen
2025-01-14 12:41 ` Jiebing Chen
2025-01-14 9:09 ` kernel test robot [this message]
2025-01-14 9:09 ` kernel test robot
2025-01-13 6:35 ` [PATCH 3/3] arm64: dts: amlogic: Add Amlogic S4 Audio jiebing chen
2025-01-13 6:35 ` jiebing chen via B4 Relay
2025-01-13 6:35 ` jiebing chen via B4 Relay
2025-01-13 14:50 ` Jerome Brunet
2025-01-13 14:50 ` Jerome Brunet
2025-01-14 8:52 ` Jiebing Chen
2025-01-14 8:52 ` Jiebing Chen
2025-01-14 11:16 ` Jerome Brunet
2025-01-14 11:16 ` Jerome Brunet
2025-01-14 12:34 ` Jiebing Chen
2025-01-14 12:34 ` Jiebing Chen
2025-01-14 14:15 ` Jerome Brunet
2025-01-14 14:15 ` Jerome Brunet
2025-01-15 3:38 ` Jiebing Chen
2025-01-15 3:38 ` Jiebing Chen
2025-01-15 6:16 ` Jiebing Chen
2025-01-15 6:16 ` Jiebing Chen
2025-01-15 8:43 ` Jerome Brunet
2025-01-15 8:43 ` Jerome Brunet
2025-01-15 9:56 ` Jiebing Chen
2025-01-15 9:56 ` Jiebing Chen
2025-01-13 15:26 ` [PATCH 0/3] Add support for S4 audio Rob Herring (Arm)
2025-01-13 15:26 ` Rob Herring (Arm)
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=202501141658.tM15P1iG-lkp@intel.com \
--to=lkp@intel.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=devnull+jiebing.chen.amlogic.com@kernel.org \
--cc=jbrunet@baylibre.com \
--cc=jiebing.chen@amlogic.com \
--cc=khilman@baylibre.com \
--cc=krzk@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=neil.armstrong@linaro.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=perex@perex.cz \
--cc=robh@kernel.org \
--cc=tiwai@suse.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 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.