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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B4050EB64DA for ; Fri, 30 Jun 2023 17:00:26 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id CD90183A; Fri, 30 Jun 2023 18:59:33 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz CD90183A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1688144423; bh=kJUcYfTUHDV1l9ZO+lxeeTi4hIA3N2MMxaNF57SiJTk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=DQ21JWP2OMbul4B0nEtjw3ojh2FQjw5J1iExgD7mSCA0CrxXLFx04MaZpPs7TQdeb EbzBqLxpjWUrXh6KWKe8Wy64SJUUhDywjtxfwFKfPlBoyK+bGw1wpblpwPX6GxZB8a /+sRgLXYtK3zyeGJlWzROxZebVPPayB567yuld9s= Received: by alsa1.perex.cz (Postfix, from userid 50401) id C4573F8027B; Fri, 30 Jun 2023 18:59:09 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 4A73EF80246; Fri, 30 Jun 2023 18:59:09 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id BDFC1F80246; Fri, 30 Jun 2023 18:59:03 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 754F5F80169 for ; Fri, 30 Jun 2023 18:58:48 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 754F5F80169 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=UyN+GRZ+ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688144331; x=1719680331; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=kJUcYfTUHDV1l9ZO+lxeeTi4hIA3N2MMxaNF57SiJTk=; b=UyN+GRZ+870fy2Epz48rN4qkvC2Qvps7XJ6poLLFlfm2oT6euI4qjWBq PlckvHo+K8RMFJJzN2ZeBBoG1lWATC59jRCYAgzpvtspv+bL0Nr2J4aOB ThZOHCRrAdNvZqeZzru3infRdXFqslmP+qDC+x3MeveoLYKiTEQf1eTuY iAUO480QcL1FTL0rUz0fl+O1SUtItVGgGYqfeY+dv4FhTRPmT1KmReFc7 rTqLwodnBFy8sy5rebc2LJpFeI5wsglgfusTNEoTMBBq/+dkF8k6/CqgL EwLf+KGy9rWGq19r/pdxSGKRskKQyndBDnH6W8Cqfs8CUy6aT8MQEYebH A==; X-IronPort-AV: E=McAfee;i="6600,9927,10757"; a="361292413" X-IronPort-AV: E=Sophos;i="6.01,171,1684825200"; d="scan'208";a="361292413" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2023 09:58:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10757"; a="747480979" X-IronPort-AV: E=Sophos;i="6.01,171,1684825200"; d="scan'208";a="747480979" Received: from lkp-server01.sh.intel.com (HELO 783282924a45) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 30 Jun 2023 09:58:36 -0700 Received: from kbuild by 783282924a45 with local (Exim 4.96) (envelope-from ) id 1qFHS7-000FAr-1Y; Fri, 30 Jun 2023 16:58:35 +0000 Date: Sat, 1 Jul 2023 00:58:12 +0800 From: kernel test robot To: Zhu Ning , alsa-devel@alsa-project.org, broonie@kernel.org Cc: oe-kbuild-all@lists.linux.dev, pierre-louis.bossart@linux.intel.com, tiwai@suse.com, amadeuszx.slawinski@linux.intel.com, Zhu Ning Subject: Re: [PATCH] ASoC: codecs: es8326: Fix power-up sequence Message-ID: <202307010058.iE2OHDes-lkp@intel.com> References: <20230630072515.49382-1-zhuning0077@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230630072515.49382-1-zhuning0077@gmail.com> Message-ID-Hash: 3VHX5FHNSEQAWGFY7MWZLXHRA6Z5XCEL X-Message-ID-Hash: 3VHX5FHNSEQAWGFY7MWZLXHRA6Z5XCEL X-MailFrom: lkp@intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Hi Zhu, kernel test robot noticed the following build errors: [auto build test ERROR on broonie-sound/for-next] [also build test ERROR on tiwai-sound/for-next tiwai-sound/for-linus linus/master v6.4 next-20230630] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Zhu-Ning/ASoC-codecs-es8326-Fix-power-up-sequence/20230630-152707 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next patch link: https://lore.kernel.org/r/20230630072515.49382-1-zhuning0077%40gmail.com patch subject: [PATCH] ASoC: codecs: es8326: Fix power-up sequence config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230701/202307010058.iE2OHDes-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce: (https://download.01.org/0day-ci/archive/20230701/202307010058.iE2OHDes-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202307010058.iE2OHDes-lkp@intel.com/ All errors (new ones prefixed by >>): sound/soc/codecs/es8326.c: In function 'es8326_resume': >> sound/soc/codecs/es8326.c:713:61: error: 'ES8326_MUTE_MASK' undeclared (first use in this function); did you mean 'ES8326_MIC_SEL_MASK'? 713 | regmap_update_bits(es8326->regmap, ES8326_DAC_MUTE, ES8326_MUTE_MASK, | ^~~~~~~~~~~~~~~~ | ES8326_MIC_SEL_MASK sound/soc/codecs/es8326.c:713:61: note: each undeclared identifier is reported only once for each function it appears in >> sound/soc/codecs/es8326.c:714:28: error: 'ES8326_MUTE' undeclared (first use in this function); did you mean 'ES8326_FMT'? 714 | ES8326_MUTE); | ^~~~~~~~~~~ | ES8326_FMT >> sound/soc/codecs/es8326.c:719:15: error: 'struct es8326_priv' has no member named 'version' 719 | es8326->version = reg; | ^~ vim +713 sound/soc/codecs/es8326.c 644 645 static int es8326_resume(struct snd_soc_component *component) 646 { 647 struct es8326_priv *es8326 = snd_soc_component_get_drvdata(component); 648 unsigned int reg; 649 650 regcache_cache_only(es8326->regmap, false); 651 regcache_sync(es8326->regmap); 652 653 /* reset register value to default */ 654 regmap_write(es8326->regmap, ES8326_CSM_I2C_STA, 0x01); 655 usleep_range(1000, 3000); 656 regmap_write(es8326->regmap, ES8326_CSM_I2C_STA, 0x00); 657 /* reset internal state */ 658 regmap_write(es8326->regmap, ES8326_RESET, 0x1f); 659 regmap_write(es8326->regmap, ES8326_VMIDSEL, 0x0E); 660 regmap_write(es8326->regmap, ES8326_HPJACK_TIMER, 0x88); 661 /* set headphone default type and detect pin */ 662 regmap_write(es8326->regmap, ES8326_HPDET_TYPE, 0x81 | 663 ES8326_HP_DET_SRC_PIN9); 664 regmap_write(es8326->regmap, ES8326_CLK_RESAMPLE, 0x05); 665 666 /* set internal oscillator as clock source of headpone cp */ 667 regmap_write(es8326->regmap, ES8326_CLK_DIV_CPC, 0x84); 668 regmap_write(es8326->regmap, ES8326_CLK_CTL, ES8326_CLK_ON); 669 /* clock manager reset release */ 670 regmap_write(es8326->regmap, ES8326_RESET, 0x17); 671 /* set headphone detection as half scan mode */ 672 regmap_write(es8326->regmap, ES8326_HP_MISC, 0x08); 673 regmap_write(es8326->regmap, ES8326_PULLUP_CTL, 0x02); 674 675 /* enable headphone driver */ 676 regmap_write(es8326->regmap, ES8326_HP_DRIVER, 0xa7); 677 regmap_write(es8326->regmap, ES8326_HP_DRIVER_REF, 0xa3); 678 regmap_write(es8326->regmap, ES8326_HP_DRIVER_REF, 0xb3); 679 regmap_write(es8326->regmap, ES8326_HP_DRIVER, 0xa1); 680 681 regmap_write(es8326->regmap, ES8326_CLK_INV, 0x00); 682 regmap_write(es8326->regmap, ES8326_CLK_VMIDS1, 0xc4); 683 regmap_write(es8326->regmap, ES8326_CLK_VMIDS2, 0x81); 684 regmap_write(es8326->regmap, ES8326_CLK_CAL_TIME, 0x00); 685 686 /* turn off headphone out */ 687 regmap_write(es8326->regmap, ES8326_HP_CAL, 0x00); 688 /* set ADC and DAC in low power mode */ 689 regmap_write(es8326->regmap, ES8326_ANA_LP, 0xf0); 690 691 /* force micbias on */ 692 regmap_write(es8326->regmap, ES8326_ANA_MICBIAS, 0x4f); 693 regmap_write(es8326->regmap, ES8326_SYS_BIAS, 0x08); 694 regmap_write(es8326->regmap, ES8326_ANA_VSEL, 0x7F); 695 /* select vdda as micbias source */ 696 regmap_write(es8326->regmap, ES8326_VMIDLOW, 0x23); 697 /* set dac dsmclip = 1 */ 698 regmap_write(es8326->regmap, ES8326_DAC_DSM, 0x08); 699 regmap_write(es8326->regmap, ES8326_DAC_VPPSCALE, 0x15); 700 701 regmap_write(es8326->regmap, ES8326_INT_SOURCE, 0x0c); 702 regmap_write(es8326->regmap, ES8326_INTOUT_IO, 703 es8326->interrupt_clk); 704 regmap_write(es8326->regmap, ES8326_SDINOUT1_IO, 705 (ES8326_IO_DMIC_CLK << ES8326_SDINOUT1_SHIFT)); 706 regmap_write(es8326->regmap, ES8326_SDINOUT23_IO, ES8326_IO_INPUT); 707 708 regmap_write(es8326->regmap, ES8326_ANA_PDN, 0x3b); 709 regmap_write(es8326->regmap, ES8326_RESET, ES8326_CSM_ON); 710 regmap_update_bits(es8326->regmap, ES8326_PGAGAIN, ES8326_MIC_SEL_MASK, 711 ES8326_MIC1_SEL); 712 > 713 regmap_update_bits(es8326->regmap, ES8326_DAC_MUTE, ES8326_MUTE_MASK, > 714 ES8326_MUTE); 715 716 regmap_write(es8326->regmap, ES8326_HPDET_TYPE, 0x80 | 717 ES8326_HP_DET_SRC_PIN9 | es8326->jack_pol); 718 regmap_read(es8326->regmap, ES8326_CHIP_VERSION, ®); > 719 es8326->version = reg; 720 es8326_irq(es8326->irq, es8326); 721 return 0; 722 } 723 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki