ASoC: SOF: Intel: Add missing include file hdac_hda.h
authorYueHaibing <yuehaibing@huawei.com>
Fri, 9 Aug 2019 11:01:00 +0000 (19:01 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 9 Aug 2019 12:56:05 +0000 (14:56 +0200)
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()

Reported-by: Hulk Robot <hulkci@huawei.com>
Suggested-by: Takashi Iwai <tiwai@suse.de>
Fixes: d4ff1b3917a5 ("ASoC: SOF: Intel: Initialize hdaudio bus properly")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/sof/intel/hda-bus.c
sound/soc/sof/intel/hda.c

index 0caec3a070d3de988850c236697b0276f8f1593f..1d2babdda9dd94fa186aa1737174314ff38de27c 100644 (file)
@@ -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
index 7ca27000c34d13641ddb385bb3580a678f433bdc..dd6c8ad62b3e3cb4c361b0493035d92674c82510 100644 (file)
@@ -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>