Message ID | 20221115022423.6437-7-wangweidong.a@awinic.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | ASoC: codecs: Add Awinic AW883XX audio amplifier driver | expand |
On 15/11/2022 03:24, wangweidong.a@awinic.com wrote: > From: Weidong Wang <wangweidong.a@awinic.com> > > Modified the Makefile and Kconfig to compile aw883xx > > Signed-off-by: Weidong Wang <wangweidong.a@awinic.com> > --- > sound/soc/codecs/Kconfig | 10 ++++++++++ > sound/soc/codecs/Makefile | 7 +++++++ > 2 files changed, 17 insertions(+) 1. Where is patch 5? 2. Subject: missing spaces. 3. This should be squashed with previous. There is no point to have commits adding dead code, therefore this one as a separate commit does not make sense. Best regards, Krzysztof
Hi, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on broonie-sound/for-next] [also build test WARNING on linus/master v6.1-rc6 next-20221121] [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/wangweidong-a-awinic-com/ASoC-codecs-Add-i2c-and-codec-registration-for-aw883xx-and-their-associated-operation-functions/20221115-112427 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next patch link: https://lore.kernel.org/r/20221115022423.6437-7-wangweidong.a%40awinic.com patch subject: [PATCH V4 6/6] ASoC:codecs:aw883xx corresponds to the modified Makefile and Kconfig config: mips-randconfig-r033-20221120 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project af8c49dc1ec44339d915d988ffe0f38da68ca0e7) 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 # install mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/c8a570919d7c94b5fc8891f6ec05a3721bb7dc89 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review wangweidong-a-awinic-com/ASoC-codecs-Add-i2c-and-codec-registration-for-aw883xx-and-their-associated-operation-functions/20221115-112427 git checkout c8a570919d7c94b5fc8891f6ec05a3721bb7dc89 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash sound/soc/codecs/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <lkp@intel.com> All warnings (new ones prefixed by >>): >> sound/soc/codecs/aw883xx/aw883xx.c:1784:34: warning: unused variable 'aw883xx_dt_match' [-Wunused-const-variable] static const struct of_device_id aw883xx_dt_match[] = { ^ 1 warning generated. -- >> sound/soc/codecs/aw883xx/aw883xx_bin_parse.c:1021:5: warning: stack frame size (1272) exceeds limit (1024) in 'aw883xx_dev_cfg_load' [-Wframe-larger-than] int aw883xx_dev_cfg_load(struct aw_device *aw_dev, struct aw_container *aw_cfg) ^ 368/1272 (28.93%) spills, 904/1272 (71.07%) variables 1 warning generated. vim +/aw883xx_dt_match +1784 sound/soc/codecs/aw883xx/aw883xx.c 1550e93e1c1d0d Weidong Wang 2022-11-15 1783 1550e93e1c1d0d Weidong Wang 2022-11-15 @1784 static const struct of_device_id aw883xx_dt_match[] = { 1550e93e1c1d0d Weidong Wang 2022-11-15 1785 {.compatible = "awinic,aw883xx_smartpa"}, 1550e93e1c1d0d Weidong Wang 2022-11-15 1786 {}, 1550e93e1c1d0d Weidong Wang 2022-11-15 1787 }; 1550e93e1c1d0d Weidong Wang 2022-11-15 1788
diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index 7022e6286e6c..f14e0a78acd4 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig @@ -54,6 +54,7 @@ config SND_SOC_ALL_CODECS imply SND_SOC_ALC5623 imply SND_SOC_ALC5632 imply SND_SOC_AW8738 + imply SND_SOC_AW883XX imply SND_SOC_BT_SCO imply SND_SOC_BD28623 imply SND_SOC_CQ0093VC @@ -2161,4 +2162,13 @@ config SND_SOC_LPASS_TX_MACRO select SND_SOC_LPASS_MACRO_COMMON tristate "Qualcomm TX Macro in LPASS(Low Power Audio SubSystem)" +config SND_SOC_AW883XX + tristate "Soc Audio for awinic aw883xx series" + depends on I2C + help + this option enables support for aw883xx series Smart PA. + The Awinic AW883XX is an I2S/TDM input, high efficiency + digital Smart K audio amplifier with an integrated 10V + smart boost convert. + endmenu diff --git a/sound/soc/codecs/Makefile b/sound/soc/codecs/Makefile index 9170ee1447dd..858ca24ad398 100644 --- a/sound/soc/codecs/Makefile +++ b/sound/soc/codecs/Makefile @@ -357,6 +357,11 @@ snd-soc-tas2780-objs := tas2780.o # Mux snd-soc-simple-mux-objs := simple-mux.o +snd_soc_aw883xx-objs := aw883xx/aw883xx.o \ + aw883xx/aw883xx_init.o \ + aw883xx/aw883xx_device.o \ + aw883xx/aw883xx_bin_parse.o \ + obj-$(CONFIG_SND_SOC_88PM860X) += snd-soc-88pm860x.o obj-$(CONFIG_SND_SOC_AB8500_CODEC) += snd-soc-ab8500-codec.o obj-$(CONFIG_SND_SOC_AC97_CODEC) += snd-soc-ac97.o @@ -719,3 +724,5 @@ obj-$(CONFIG_SND_SOC_LPASS_TX_MACRO) += snd-soc-lpass-tx-macro.o # Mux obj-$(CONFIG_SND_SOC_SIMPLE_MUX) += snd-soc-simple-mux.o + +obj-$(CONFIG_SND_SOC_AW883XX) +=snd_soc_aw883xx.o