Content-Type: multipart/mixed; boundary="===============4907406181592688613==" MIME-Version: 1.0 From: Luca Ceresoli To: kbuild-all@lists.01.org Subject: Re: [PATCH 7/8] ASoC: codecs: Add RK3308 internal audio codec driver Date: Thu, 08 Sep 2022 17:33:23 +0200 Message-ID: <20220908173323.3981a056@booty> In-Reply-To: <202209082103.F4ICyyHT-lkp@intel.com> List-Id: --===============4907406181592688613== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hello Dan, On Thu, 8 Sep 2022 16:35:19 +0300 Dan Carpenter wrote: > Hi, > = > https://git-scm.com/docs/git-format-patch#_base_tree_information] > = > url: https://github.com/intel-lab-lkp/linux/commits/luca-ceresoli-boot= lin-com/Add-support-for-the-internal-RK3308-audio-codec/20220907-222555 > base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git= for-next > config: arc-randconfig-m031-20220908 (https://download.01.org/0day-ci/arc= hive/20220908/202209082103.F4ICyyHT-lkp(a)intel.com/config) > compiler: arceb-elf-gcc (GCC) 12.1.0 > = > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot > Reported-by: Dan Carpenter > = > smatch warnings: > sound/soc/codecs/rk3308_codec.c:748 rk3308_set_dai_fmt() error: uninitial= ized symbol 'is_master'. > sound/soc/codecs/rk3308_codec.c:998 rk3308_codec_digital_fadeout() warn: = always true condition '(l_dgain >=3D (0 << 0)) =3D> (0-u32max >=3D 0)' > sound/soc/codecs/rk3308_codec.c:998 rk3308_codec_digital_fadeout() warn: = always true condition '(l_dgain >=3D (0 << 0)) =3D> (0-u32max >=3D 0)' > = > vim +/is_master +748 sound/soc/codecs/rk3308_codec.c > = > 786c160ad64ae5 Luca Ceresoli 2022-09-07 680 static int rk3308_set_dai_f= mt(struct snd_soc_dai *codec_dai, > 786c160ad64ae5 Luca Ceresoli 2022-09-07 681 unsigned int fmt) > 786c160ad64ae5 Luca Ceresoli 2022-09-07 682 { > 786c160ad64ae5 Luca Ceresoli 2022-09-07 683 struct snd_soc_component *= component =3D codec_dai->component; > 786c160ad64ae5 Luca Ceresoli 2022-09-07 684 struct rk3308_codec_priv *= rk3308 =3D snd_soc_component_get_drvdata(component); > 786c160ad64ae5 Luca Ceresoli 2022-09-07 685 const unsigned int inv_bit= s =3D fmt & SND_SOC_DAIFMT_INV_MASK; > 786c160ad64ae5 Luca Ceresoli 2022-09-07 686 const bool inv_bitclk =3D > 786c160ad64ae5 Luca Ceresoli 2022-09-07 687 (inv_bits & SND_SOC_DAIFM= T_IB_IF) || > 786c160ad64ae5 Luca Ceresoli 2022-09-07 688 (inv_bits & SND_SOC_DAIFM= T_IB_NF); > 786c160ad64ae5 Luca Ceresoli 2022-09-07 689 const bool inv_frmclk =3D > 786c160ad64ae5 Luca Ceresoli 2022-09-07 690 (inv_bits & SND_SOC_DAIFM= T_IB_IF) || > 786c160ad64ae5 Luca Ceresoli 2022-09-07 691 (inv_bits & SND_SOC_DAIFM= T_NB_IF); > 786c160ad64ae5 Luca Ceresoli 2022-09-07 692 = > 786c160ad64ae5 Luca Ceresoli 2022-09-07 693 unsigned int adc_aif1 =3D = 0, adc_aif2 =3D 0, dac_aif1 =3D 0, dac_aif2 =3D 0; > 786c160ad64ae5 Luca Ceresoli 2022-09-07 694 int grp, is_master; > = > is_master needs to be initialized to false. Fixed both, and also made is_master a bool for clarity. Changes queued for v2. Thank you. -- = Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --===============4907406181592688613==--