[alsa-devel] [asoc:topic/amd 2/7] sound/soc//amd/acp-da7219-max98357a.c:79:22: error: passing argument 1 of 'da7219_aad_jack_det' from incompatible pointer type
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/amd head: c88d311533563e6dadc244930a36125d592f5ec5 commit: 9a60cde2dd63e10b421e87e1397641304dd1ef13 [2/7] ASoC: amd: acp-da7219-max98357: replace codec to component config: x86_64-allmodconfig (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce: git checkout 9a60cde2dd63e10b421e87e1397641304dd1ef13 # save the attached .config to linux build tree make ARCH=x86_64
All errors (new ones prefixed by >>):
sound/soc//amd/acp-da7219-max98357a.c: In function 'cz_da7219_init':
sound/soc//amd/acp-da7219-max98357a.c:79:22: error: passing argument 1 of 'da7219_aad_jack_det' from incompatible pointer type [-Werror=incompatible-pointer-types]
da7219_aad_jack_det(component, &cz_jack); ^~~~~~~~~ In file included from sound/soc//amd/acp-da7219-max98357a.c:38:0: sound/soc//amd/../codecs/da7219-aad.h:209:6: note: expected 'struct snd_soc_codec *' but argument is of type 'struct snd_soc_component *' void da7219_aad_jack_det(struct snd_soc_codec *codec, struct snd_soc_jack *jack); ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors
sparse warnings: (new ones prefixed by >>)
sound/soc/amd/acp-da7219-max98357a.c:79:29: sparse: incorrect type in argument 1 (different base types) @@ expected struct snd_soc_codec *codec @@ got strustruct snd_soc_codec *codec @@
sound/soc/amd/acp-da7219-max98357a.c:79:29: expected struct snd_soc_codec *codec sound/soc/amd/acp-da7219-max98357a.c:79:29: got struct snd_soc_component *component sound/soc/amd/acp-da7219-max98357a.c: In function 'cz_da7219_init': sound/soc/amd/acp-da7219-max98357a.c:79:22: error: passing argument 1 of 'da7219_aad_jack_det' from incompatible pointer type [-Werror=incompatible-pointer-types] da7219_aad_jack_det(component, &cz_jack); ^~~~~~~~~ In file included from sound/soc/amd/acp-da7219-max98357a.c:38:0: sound/soc/amd/../codecs/da7219-aad.h:209:6: note: expected 'struct snd_soc_codec *' but argument is of type 'struct snd_soc_component *' void da7219_aad_jack_det(struct snd_soc_codec *codec, struct snd_soc_jack *jack); ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors
vim +/da7219_aad_jack_det +79 sound/soc//amd/acp-da7219-max98357a.c
45 46 static int cz_da7219_init(struct snd_soc_pcm_runtime *rtd) 47 { 48 int ret; 49 struct snd_soc_card *card = rtd->card; 50 struct snd_soc_dai *codec_dai = rtd->codec_dai; 51 struct snd_soc_component *component = codec_dai->component; 52 53 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name); 54 55 ret = snd_soc_dai_set_sysclk(codec_dai, DA7219_CLKSRC_MCLK, 56 CZ_PLAT_CLK, SND_SOC_CLOCK_IN); 57 if (ret < 0) { 58 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret); 59 return ret; 60 } 61 62 ret = snd_soc_dai_set_pll(codec_dai, 0, DA7219_SYSCLK_PLL, 63 CZ_PLAT_CLK, MCLK_RATE); 64 if (ret < 0) { 65 dev_err(rtd->dev, "can't set codec pll: %d\n", ret); 66 return ret; 67 } 68 69 ret = snd_soc_card_jack_new(card, "Headset Jack", 70 SND_JACK_HEADPHONE | SND_JACK_MICROPHONE | 71 SND_JACK_BTN_0 | SND_JACK_BTN_1 | 72 SND_JACK_BTN_2 | SND_JACK_BTN_3, 73 &cz_jack, NULL, 0); 74 if (ret) { 75 dev_err(card->dev, "HP jack creation failed %d\n", ret); 76 return ret; 77 } 78
79 da7219_aad_jack_det(component, &cz_jack);
80 81 return 0; 82 } 83
--- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Hi Mark
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/amd head: c88d311533563e6dadc244930a36125d592f5ec5 commit: 9a60cde2dd63e10b421e87e1397641304dd1ef13 [2/7] ASoC: amd: acp-da7219-max98357: replace codec to component config: x86_64-allmodconfig (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce: git checkout 9a60cde2dd63e10b421e87e1397641304dd1ef13 # save the attached .config to linux build tree make ARCH=x86_64
I think topic/amd want to based on topic/hda-sync-power. But, it seems this branch was removed ?? I couldn't find which branch is the latest, but we need
4510112217116d97df02121d3e1442858efb4897 ("ASoC: hdac_hdmi/nau8825/rt286/rt298/rt5663/da7219: replace codec to component")
participants (3)
-
kbuild test robot
-
Kuninori Morimoto
-
Mark Brown