From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6D4CC32772 for ; Tue, 16 Aug 2022 06:53:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230515AbiHPGx3 (ORCPT ); Tue, 16 Aug 2022 02:53:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230360AbiHPGxF (ORCPT ); Tue, 16 Aug 2022 02:53:05 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7481108F8C for ; Mon, 15 Aug 2022 19:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660615604; x=1692151604; h=date:from:to:cc:subject:message-id:mime-version; bh=HxxJrI/Fb5CKLVfy2twRhZgBCc0lxjpliE9lfbI3s3Y=; b=EQfJJHk/fGQ25B9WlPj43xmIBLCgWUEaPdSjsEEfLDVeGDeQPBAiK2za H84C7kItFMomg6t7aCPQn0XmkErfLkwOW4EduEKLNV+SSDeqtHT5x//SI IrO9LsTugZjuS3I11No67lpemX03BUAXtxhARf1Tb+fikees99EH6UV0I aTdRCk2v8gDxLUdZA9O3IhyHHyh/DSElDHYJ4BUpde1IL91khqAmMhutz N6tuY6dbshMpzklzrBnpo6mz3UX00Chbt9eDKqxCe8LumEC68b4Pijp+I lAUx9hvnrMPXfnLiIfErGnq5bLCLlBHUnwWgTsJqVDwxQ4qQ50GjOsWOM w==; X-IronPort-AV: E=McAfee;i="6400,9594,10440"; a="318093766" X-IronPort-AV: E=Sophos;i="5.93,239,1654585200"; d="scan'208";a="318093766" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2022 19:06:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,239,1654585200"; d="scan'208";a="934703100" Received: from lkp-server02.sh.intel.com (HELO 3d2a4d02a2a9) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 15 Aug 2022 19:06:43 -0700 Received: from kbuild by 3d2a4d02a2a9 with local (Exim 4.96) (envelope-from ) id 1oNlyc-0001MT-1x; Tue, 16 Aug 2022 02:06:42 +0000 Date: Tue, 16 Aug 2022 10:06:39 +0800 From: kernel test robot To: Martin =?utf-8?Q?Povi=C5=A1er?= Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Hector Martin Subject: [asahilinux:bits/070-audio 12/16] sound/soc/codecs/cs42l84.c:264:10: error: 'const struct snd_soc_component_driver' has no member named 'non_legacy_dai_naming'; did you mean 'legacy_dai_naming'? Message-ID: <202208161054.LMFYfZyf-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://github.com/AsahiLinux/linux bits/070-audio head: 54b20e361303307d4ed9f2903ad7b1f41caf8bea commit: 597396968a38d331432d796f7071670c61e5170f [12/16] wip: ASoC: cs42l84: Start new codec driver config: m68k-randconfig-r014-20220815 (https://download.01.org/0day-ci/archive/20220816/202208161054.LMFYfZyf-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 12.1.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://github.com/AsahiLinux/linux/commit/597396968a38d331432d796f7071670c61e5170f git remote add asahilinux https://github.com/AsahiLinux/linux git fetch --no-tags asahilinux bits/070-audio git checkout 597396968a38d331432d796f7071670c61e5170f # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash sound/soc/codecs/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): >> sound/soc/codecs/cs42l84.c:244:5: warning: no previous prototype for 'cs42l84_component_probe' [-Wmissing-prototypes] 244 | int cs42l84_component_probe(struct snd_soc_component *component) | ^~~~~~~~~~~~~~~~~~~~~~~ >> sound/soc/codecs/cs42l84.c:264:10: error: 'const struct snd_soc_component_driver' has no member named 'non_legacy_dai_naming'; did you mean 'legacy_dai_naming'? 264 | .non_legacy_dai_naming = 1, | ^~~~~~~~~~~~~~~~~~~~~ | legacy_dai_naming sound/soc/codecs/cs42l84.c: In function 'cs42l84_pll_config': >> sound/soc/codecs/cs42l84.c:328:17: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration] 328 | FIELD_PREP(CS42L84_ASP_FSYNC_CTL2_BCLK_PERIOD_LO, fsync & 0x7f)); | ^~~~~~~~~~ sound/soc/codecs/cs42l84.c: At top level: sound/soc/codecs/cs42l84.c:983:34: warning: 'cs42l84_of_match' defined but not used [-Wunused-const-variable=] 983 | static const struct of_device_id cs42l84_of_match[] = { | ^~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +264 sound/soc/codecs/cs42l84.c 243 > 244 int cs42l84_component_probe(struct snd_soc_component *component) 245 { 246 snd_soc_component_update_bits(component, CS42L84_ASP_CTL, 247 CS42L84_ASP_CTL_TDM_MODE, 0); 248 snd_soc_component_update_bits(component, CS42L84_HP_VOL_CTL, 249 CS42L84_HP_VOL_CTL_SOFT | CS42L84_HP_VOL_CTL_ZERO_CROSS, 250 CS42L84_HP_VOL_CTL_ZERO_CROSS); 251 252 return 0; 253 } 254 255 static const struct snd_soc_component_driver soc_component_dev_cs42l84 = { 256 .probe = cs42l84_component_probe, 257 .controls = cs42l84_snd_controls, 258 .num_controls = ARRAY_SIZE(cs42l84_snd_controls), 259 .dapm_widgets = cs42l84_dapm_widgets, 260 .num_dapm_widgets = ARRAY_SIZE(cs42l84_dapm_widgets), 261 .dapm_routes = cs42l84_audio_map, 262 .num_dapm_routes = ARRAY_SIZE(cs42l84_audio_map), 263 .endianness = 1, > 264 .non_legacy_dai_naming = 1, 265 }; 266 267 struct cs42l84_pll_params { 268 u32 bclk; 269 u8 mclk_src_sel; 270 u8 bclk_prediv; 271 u8 pll_div_int; 272 u32 pll_div_frac; 273 u8 pll_mode; 274 u8 pll_divout; 275 u32 mclk_int; 276 }; 277 278 /* 279 * Common PLL Settings for given BCLK 280 */ 281 static const struct cs42l84_pll_params pll_ratio_table[] = { 282 { 3072000, 1, 0, 0x40, 0x000000, 0x03, 0x10, 12288000}, 283 { 6144000, 1, 1, 0x40, 0x000000, 0x03, 0x10, 12288000}, 284 { 12288000, 0, 0, 0, 0, 0, 0, 12288000}, 285 { 24576000, 1, 3, 0x40, 0x000000, 0x03, 0x10, 12288000}, 286 }; 287 288 static int cs42l84_pll_config(struct snd_soc_component *component) 289 { 290 struct cs42l84_private *cs42l84 = snd_soc_component_get_drvdata(component); 291 int i; 292 u32 clk; 293 u32 fsync; 294 295 clk = cs42l84->bclk; 296 297 /* Don't reconfigure if there is an audio stream running */ 298 if (cs42l84->stream_use) { 299 if (pll_ratio_table[cs42l84->pll_config].bclk == clk) 300 return 0; 301 else 302 return -EBUSY; 303 } 304 305 for (i = 0; i < ARRAY_SIZE(pll_ratio_table); i++) { 306 if (pll_ratio_table[i].bclk == clk) { 307 cs42l84->pll_config = i; 308 break; 309 } 310 } 311 312 if (i == ARRAY_SIZE(pll_ratio_table)) 313 return -EINVAL; 314 315 /* Set up the LRCLK */ 316 fsync = clk / cs42l84->srate; 317 if (((fsync * cs42l84->srate) != clk) 318 || ((fsync % 2) != 0)) { 319 dev_err(component->dev, 320 "Unsupported bclk %d/sample rate %d\n", 321 clk, cs42l84->srate); 322 return -EINVAL; 323 } 324 325 /* Set the LRCLK period */ 326 snd_soc_component_update_bits(component, CS42L84_ASP_FSYNC_CTL2, 327 CS42L84_ASP_FSYNC_CTL2_BCLK_PERIOD_LO, > 328 FIELD_PREP(CS42L84_ASP_FSYNC_CTL2_BCLK_PERIOD_LO, fsync & 0x7f)); 329 snd_soc_component_update_bits(component, CS42L84_ASP_FSYNC_CTL3, 330 CS42L84_ASP_FSYNC_CTL3_BCLK_PERIOD_HI, 331 FIELD_PREP(CS42L84_ASP_FSYNC_CTL3_BCLK_PERIOD_HI, fsync >> 7)); 332 333 /* Save what the MCLK will be */ 334 switch (pll_ratio_table[i].mclk_int) { 335 case 12000000: 336 cs42l84->pll_mclk_f = CS42L84_CCM_CTL1_MCLK_F_12MHZ; 337 break; 338 case 12288000: 339 cs42l84->pll_mclk_f = CS42L84_CCM_CTL1_MCLK_F_12_288KHZ; 340 break; 341 case 24000000: 342 cs42l84->pll_mclk_f = CS42L84_CCM_CTL1_MCLK_F_24MHZ; 343 break; 344 case 24576000: 345 cs42l84->pll_mclk_f = CS42L84_CCM_CTL1_MCLK_F_24_576KHZ; 346 break; 347 } 348 349 if (pll_ratio_table[i].mclk_src_sel) { 350 /* Configure PLL */ 351 snd_soc_component_update_bits(component, 352 CS42L84_CCM_CTL3, CS42L84_CCM_CTL3_REFCLK_DIV, 353 FIELD_PREP(CS42L84_CCM_CTL3_REFCLK_DIV, pll_ratio_table[i].bclk_prediv)); 354 snd_soc_component_write(component, 355 CS42L84_PLL_DIV_INT, 356 pll_ratio_table[i].pll_div_int); 357 snd_soc_component_write(component, 358 CS42L84_PLL_DIV_FRAC0, 359 pll_ratio_table[i].pll_div_frac); 360 snd_soc_component_write(component, 361 CS42L84_PLL_DIV_FRAC1, 362 pll_ratio_table[i].pll_div_frac >> 8); 363 snd_soc_component_write(component, 364 CS42L84_PLL_DIV_FRAC2, 365 pll_ratio_table[i].pll_div_frac >> 16); 366 snd_soc_component_update_bits(component, 367 CS42L84_PLL_CTL1, CS42L84_PLL_CTL1_MODE, 368 FIELD_PREP(CS42L84_PLL_CTL1_MODE, pll_ratio_table[i].pll_mode)); 369 snd_soc_component_write(component, 370 CS42L84_PLL_DIVOUT, 371 pll_ratio_table[i].pll_divout); 372 373 snd_soc_component_update_bits(component, 374 CS42L84_PLL_CTL1, CS42L84_PLL_CTL1_EN, 375 CS42L84_PLL_CTL1_EN); 376 } 377 378 return 0; 379 } 380 -- 0-DAY CI Kernel Test Service https://01.org/lkp