[alsa-devel] [asoc:topic/intel 41/42] sound/soc/intel/boards/bytcr_rt5651.c:325:2: error: implicit declaration of function 'rt5651_set_jack_detect'
kbuild test robot
fengguang.wu at intel.com
Thu Oct 26 22:21:45 CEST 2017
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/intel
head: 2fe30129b0a6a8ddf71c46c8fb4524cb89739bc0
commit: d9f8f9b2f3e2b95875cd59ae5c3276e4662e7513 [41/42] ASoC: intel: byt: Add headset jack
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout d9f8f9b2f3e2b95875cd59ae5c3276e4662e7513
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
sound/soc/intel/boards/bytcr_rt5651.c: In function 'byt_rt5651_init':
>> sound/soc/intel/boards/bytcr_rt5651.c:325:2: error: implicit declaration of function 'rt5651_set_jack_detect' [-Werror=implicit-function-declaration]
rt5651_set_jack_detect(codec, &priv->jack);
^~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/rt5651_set_jack_detect +325 sound/soc/intel/boards/bytcr_rt5651.c
255
256 static int byt_rt5651_init(struct snd_soc_pcm_runtime *runtime)
257 {
258 struct snd_soc_card *card = runtime->card;
259 struct snd_soc_codec *codec = runtime->codec;
260 struct byt_rt5651_private *priv = snd_soc_card_get_drvdata(card);
261 const struct snd_soc_dapm_route *custom_map;
262 int num_routes;
263 int ret;
264
265 card->dapm.idle_bias_off = true;
266
267 switch (BYT_RT5651_MAP(byt_rt5651_quirk)) {
268 case BYT_RT5651_IN1_MAP:
269 custom_map = byt_rt5651_intmic_in1_map;
270 num_routes = ARRAY_SIZE(byt_rt5651_intmic_in1_map);
271 break;
272 case BYT_RT5651_IN2_MAP:
273 custom_map = byt_rt5651_intmic_in2_map;
274 num_routes = ARRAY_SIZE(byt_rt5651_intmic_in2_map);
275 break;
276 default:
277 custom_map = byt_rt5651_intmic_dmic_map;
278 num_routes = ARRAY_SIZE(byt_rt5651_intmic_dmic_map);
279 }
280 ret = snd_soc_dapm_add_routes(&card->dapm, custom_map, num_routes);
281 if (ret)
282 return ret;
283
284 ret = snd_soc_add_card_controls(card, byt_rt5651_controls,
285 ARRAY_SIZE(byt_rt5651_controls));
286 if (ret) {
287 dev_err(card->dev, "unable to add card controls\n");
288 return ret;
289 }
290 snd_soc_dapm_ignore_suspend(&card->dapm, "Headphone");
291 snd_soc_dapm_ignore_suspend(&card->dapm, "Speaker");
292
293 if (byt_rt5651_quirk & BYT_RT5651_MCLK_EN) {
294 /*
295 * The firmware might enable the clock at
296 * boot (this information may or may not
297 * be reflected in the enable clock register).
298 * To change the rate we must disable the clock
299 * first to cover these cases. Due to common
300 * clock framework restrictions that do not allow
301 * to disable a clock that has not been enabled,
302 * we need to enable the clock first.
303 */
304 ret = clk_prepare_enable(priv->mclk);
305 if (!ret)
306 clk_disable_unprepare(priv->mclk);
307
308 if (byt_rt5651_quirk & BYT_RT5651_MCLK_25MHZ)
309 ret = clk_set_rate(priv->mclk, 25000000);
310 else
311 ret = clk_set_rate(priv->mclk, 19200000);
312
313 if (ret)
314 dev_err(card->dev, "unable to set MCLK rate\n");
315 }
316
317 ret = snd_soc_card_jack_new(runtime->card, "Headset",
318 SND_JACK_HEADSET, &priv->jack,
319 bytcr_jack_pins, ARRAY_SIZE(bytcr_jack_pins));
320 if (ret) {
321 dev_err(runtime->dev, "Headset jack creation failed %d\n", ret);
322 return ret;
323 }
324
> 325 rt5651_set_jack_detect(codec, &priv->jack);
326
327 return ret;
328 }
329
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 61839 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20171027/86a865dc/attachment-0001.bin>
More information about the Alsa-devel
mailing list