Commit 40073a9d authored by YueHaibing's avatar YueHaibing Committed by Takashi Iwai

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()
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Suggested-by: default avatarTakashi Iwai <tiwai@suse.de>
Fixes: d4ff1b39 ("ASoC: SOF: Intel: Initialize hdaudio bus properly")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent fe401066
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include "hda.h" #include "hda.h"
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC) #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() #define sof_hda_ext_ops snd_soc_hdac_hda_get_ops()
#else #else
#define sof_hda_ext_ops NULL #define sof_hda_ext_ops NULL
......
...@@ -23,9 +23,6 @@ ...@@ -23,9 +23,6 @@
#include <sound/sof/xtensa.h> #include <sound/sof/xtensa.h>
#include "../ops.h" #include "../ops.h"
#include "hda.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) #if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA)
#include <sound/soc-acpi-intel-match.h> #include <sound/soc-acpi-intel-match.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment