All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2018-03-20  7:20 kbuild test robot
  2018-03-20  9:22 ` Kuninori Morimoto
  0 siblings, 1 reply; 3+ messages in thread
From: kbuild test robot @ 2018-03-20  7:20 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: alsa-devel, Mark Brown, kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3837 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 63103 bytes --]

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [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
  2018-03-20  7:20 [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 kbuild test robot
@ 2018-03-20  9:22 ` Kuninori Morimoto
  2018-03-21  1:41   ` Mark Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Kuninori Morimoto @ 2018-03-20  9:22 UTC (permalink / raw)
  To: kbuild test robot; +Cc: alsa-devel, Mark Brown, kbuild-all


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")

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [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
  2018-03-20  9:22 ` Kuninori Morimoto
@ 2018-03-21  1:41   ` Mark Brown
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Brown @ 2018-03-21  1:41 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: alsa-devel, kbuild test robot, kbuild-all


[-- Attachment #1.1: Type: text/plain, Size: 258 bytes --]

On Tue, Mar 20, 2018 at 09:22:50AM +0000, Kuninori Morimoto wrote:

> I think topic/amd want to based on topic/hda-sync-power.
> But, it seems this branch was removed ??

That topic rings no bells at all...   I certainly didn't deliberately
remove anything.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-21  1:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-20  7:20 [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 kbuild test robot
2018-03-20  9:22 ` Kuninori Morimoto
2018-03-21  1:41   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.