ASoC: SOF: Intel: Add missing include file hdac_hda.h
Subsystems (3)
PATCH 1/1 ASoC: SOF: Intel: Add missing include file hdac_hda.h
Building with SND_SOC_SOF_HDA_AUDIO_CODEC fails:
sound/soc/sof/intel/hda-bus.c: In function sof_hda_bus_init:sound/soc/sof/intel/hda-bus.c:16:25: error: implicit declaration of function
snd_soc_hdac_hda_get_ops; did you mean snd_soc_jack_add_gpiods? [-Werror=implicit-function-declaration] #define sof_hda_ext_ops snd_soc_hdac_hda_get_ops()
--- sound/soc/sof/intel/hda-bus.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/sof/intel/hda-bus.c +1 -0
@@ -13,6 +13,7 @@#include "hda.h" #if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC ) +#include "../../../soc/codecs/hdac_hda.h" #define sof_hda_ext_ops snd_soc_hdac_hda_get_ops()#else #define sof_hda_ext_ops NULL
Signature · 1 line
2.7.4
Quoted 11 lines · YueHaibing
Building with
SND_SOC_SOF_HDA_AUDIO_CODECfails:
sound/soc/sof/intel/hda-bus.c: In functionsof_hda_bus_init:sound/soc/sof/intel/hda-bus.c:16:25: error: implicit declaration of function
snd_soc_hdac_hda_get_ops; did you meansnd_soc_jack_add_gpiods? [-Werror=implicit-function-declaration] #definesof_hda_ext_opssnd_soc_hdac_hda_get_ops()Reported-by Hulk Robot <[email protected]>Fixes d4ff1b3917a5 ('ASoC: SOF: Intel: Initialize hdaudio bus properly")Signed-off-by YueHaibing <[email protected]>
Damn, it seems another oversight.
And now the inclusion in sound/soc/sof/intel/hda.c is superfluous, too, so we should just move like
sound/soc/sof/intel/hda-bus.c +3 -0
@@ -11,6 +11,9 @@#include <sound/hdaudio.h> #include "../sof-priv.h" #include "hda.h" +#if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC ) +#include "../../codecs/hdac_hda.h" +#endif #if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC )#define sof_hda_ext_ops snd_soc_hdac_hda_get_ops()
sound/soc/sof/intel/hda.c +0 -3
@@ -23,9 +23,6 @@#include <sound/sof/xtensa.h> #include "../ops.h" #include "hda.h" -#if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC ) -#include "../../codecs/hdac_hda.h" -#endif #if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA )#include <sound/soc-acpi-intel-match.h>
Could you check whether this works instead?
BTW, the inclusion of "../../codecs/hdac_hdac.h" is very ugly... In general if a header file is referred from another driver, it should be in a more public place under include/sound. If any, we can create a subdirectory like include/sound/codecs.
thanks,
Takashi
Quoted 49 lines · Takashi Iwai
Quoted 11 lines · YueHaibing
Building with
SND_SOC_SOF_HDA_AUDIO_CODECfails:
sound/soc/sof/intel/hda-bus.c: In functionsof_hda_bus_init:sound/soc/sof/intel/hda-bus.c:16:25: error: implicit declaration of function
snd_soc_hdac_hda_get_ops; did you meansnd_soc_jack_add_gpiods? [-Werror=implicit-function-declaration] #definesof_hda_ext_opssnd_soc_hdac_hda_get_ops()Reported-by Hulk Robot <[email protected]>Fixes d4ff1b3917a5 ('ASoC: SOF: Intel: Initialize hdaudio bus properly")Signed-off-by YueHaibing <[email protected]>Damn, it seems another oversight.
And now the inclusion in
sound/soc/sof/intel/hda.cis superfluous, too, so we should just move likesound/soc/sof/intel/hda-bus.c +3
-0@@ -11,6 +11,9 @@#include <sound/hdaudio.h> #include "../sof-priv.h" #include "hda.h" +#if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC ) +#include "../../codecs/hdac_hda.h" +#endif #if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC )#define sof_hda_ext_ops snd_soc_hdac_hda_get_ops()sound/soc/sof/intel/hda.c +0
-3@@ -23,9 +23,6 @@#include <sound/sof/xtensa.h> #include "../ops.h" #include "hda.h" -#if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC ) -#include "../../codecs/hdac_hda.h" -#endif #if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA )#include <sound/soc-acpi-intel-match.h>
Quoted 1 line
Could you check whether this works instead?
It works well, I can send v2 using this, Thanks!
Quoted 7 lines
BTW, the inclusion of "
../../codecs/hdac_hdac.h" is very ugly... In general if a header file is referred from another driver, it should be in a more public place underinclude/sound. If any, we can create a subdirectory likeinclude/sound/codecs.
Yes, this can be done in another patch.
Quoted 7 lines
thanks,
Takashi
.
PATCH v2 1/1 ASoC: SOF: Intel: Add missing include file hdac_hda.h
In reply to YueHaibingBuilding with SND_SOC_SOF_HDA_AUDIO_CODEC fails:
sound/soc/sof/intel/hda-bus.c: In function sof_hda_bus_init:sound/soc/sof/intel/hda-bus.c:16:25: error: implicit declaration of function
snd_soc_hdac_hda_get_ops; did you mean snd_soc_jack_add_gpiods? [-Werror=implicit-function-declaration] #define sof_hda_ext_ops snd_soc_hdac_hda_get_ops()
---
v2: remove unused include from hda.c
--- sound/soc/sof/intel/hda-bus.c | 1 + sound/soc/sof/intel/hda.c | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-)
sound/soc/sof/intel/hda-bus.c +1 -0
@@ -13,6 +13,7 @@#include "hda.h" #if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC ) +#include "../../codecs/hdac_hda.h" #define sof_hda_ext_ops snd_soc_hdac_hda_get_ops()#else #define sof_hda_ext_ops NULL
sound/soc/sof/intel/hda.c +0 -3
@@ -23,9 +23,6 @@#include <sound/sof/xtensa.h> #include "../ops.h" #include "hda.h" -#if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC ) -#include "../../codecs/hdac_hda.h" -#endif #if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA )#include <sound/soc-acpi-intel-match.h>
Signature · 1 line
2.7.4
Mark Brown
maintainerApplied "ASoC: SOF: Intel: Add missing include file hdac_hda.h" to the asoc tree
The patch
ASoC: SOF: Intel: Add missing include file hdac_hda.h
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
a62bd63893027bfa32fccbba0e0ac067824c362cMon Sep 17 00:00:00 2001
From: YueHaibing <[email protected]>
Date: Fri, 9 Aug 2019 19:01:00 +0800
Subject: [PATCH] ASoC: SOF: Intel: Add missing include file hdac_hda.h
Building with SND_SOC_SOF_HDA_AUDIO_CODEC fails:
sound/soc/sof/intel/hda-bus.c: In function sof_hda_bus_init:sound/soc/sof/intel/hda-bus.c:16:25: error: implicit declaration of function
snd_soc_hdac_hda_get_ops; did you mean snd_soc_jack_add_gpiods? [-Werror=implicit-function-declaration] #define sof_hda_ext_ops snd_soc_hdac_hda_get_ops()
--- sound/soc/sof/intel/hda-bus.c | 1 + sound/soc/sof/intel/hda.c | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-)
sound/soc/sof/intel/hda-bus.c +1 -0
@@ -13,6 +13,7 @@#include "hda.h" #if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC ) +#include "../../codecs/hdac_hda.h" #define sof_hda_ext_ops snd_soc_hdac_hda_get_ops()#else #define sof_hda_ext_ops NULL
sound/soc/sof/intel/hda.c +0 -3
@@ -23,9 +23,6 @@#include <sound/sof/xtensa.h> #include "../ops.h" #include "hda.h" -#if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC ) -#include "../../codecs/hdac_hda.h" -#endif #if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA )#include <sound/soc-acpi-intel-match.h>
Signature · 1 line
2.20.1
Quoted 11 lines · YueHaibing
Building with
SND_SOC_SOF_HDA_AUDIO_CODECfails:
sound/soc/sof/intel/hda-bus.c: In functionsof_hda_bus_init:sound/soc/sof/intel/hda-bus.c:16:25: error: implicit declaration of function
snd_soc_hdac_hda_get_ops; did you meansnd_soc_jack_add_gpiods? [-Werror=implicit-function-declaration] #definesof_hda_ext_opssnd_soc_hdac_hda_get_ops()Reported-by Hulk Robot <[email protected]>Suggested-by Takashi Iwai <[email protected]>Fixes d4ff1b3917a5 ('ASoC: SOF: Intel: Initialize hdaudio bus properly")
^
Use " consistently for both opening and closing quotes.
Quoted 1 line
Signed-off-by YueHaibing <[email protected]>
thanks,
Takashi
Quoted 38 lines
---
v2: remove unused include fromhda.c--- sound/soc/sof/intel/hda-bus.c | 1 + sound/soc/sof/intel/hda.c | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-)sound/soc/sof/intel/hda-bus.c +1
-0@@ -13,6 +13,7 @@#include "hda.h" #if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC ) +#include "../../codecs/hdac_hda.h" #define sof_hda_ext_ops snd_soc_hdac_hda_get_ops()#else #define sof_hda_ext_ops NULLsound/soc/sof/intel/hda.c +0
-3@@ -23,9 +23,6 @@#include <sound/sof/xtensa.h> #include "../ops.h" #include "hda.h" -#if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC ) -#include "../../codecs/hdac_hda.h" -#endif #if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA )#include <sound/soc-acpi-intel-match.h> Signature · 1 line
2.7.4
Quoted 14 lines · Takashi Iwai
Quoted 11 lines · YueHaibing
Building with
SND_SOC_SOF_HDA_AUDIO_CODECfails:
sound/soc/sof/intel/hda-bus.c: In functionsof_hda_bus_init:sound/soc/sof/intel/hda-bus.c:16:25: error: implicit declaration of function
snd_soc_hdac_hda_get_ops; did you meansnd_soc_jack_add_gpiods? [-Werror=implicit-function-declaration] #definesof_hda_ext_opssnd_soc_hdac_hda_get_ops()Reported-by Hulk Robot <[email protected]>Suggested-by Takashi Iwai <[email protected]>Fixes d4ff1b3917a5 ('ASoC: SOF: Intel: Initialize hdaudio bus properly")
Quoted 6 lines
^Use " consistently for both opening and closing quotes.
Quoted 1 line
Signed-off-by YueHaibing <[email protected]>Reviewed-by Takashi Iwai <[email protected]>
Actually I'm going to take this again on top of topic/hda-bus-ops-cleanup branch of my tree, so Mark, feel free to pull onto yours again.
Sorry for the mess!
Takashi
Mark Brown
maintainerQuoted 7 lines · Takashi Iwai
Quoted 1 line · Takashi Iwai
Reviewed-by Takashi Iwai <[email protected]>Actually I'm going to take this again on top of topic/hda-bus-ops-cleanup branch of my tree, so Mark, feel free to pull onto yours again.
I think I already applied it locally.
Quoted 11 lines · Mark Brown
Quoted 7 lines · Takashi Iwai
Quoted 1 line · Takashi Iwai
Reviewed-by Takashi Iwai <[email protected]>Actually I'm going to take this again on top of topic/hda-bus-ops-cleanup branch of my tree, so Mark, feel free to pull onto yours again.
I think I already applied it locally.
OK, thanks. This kind of small fix is fine to be applied doubly :)
Takashi