diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-08-09 19:01:00 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-08-09 14:56:05 +0200 |
commit | 40073a9d53eac3f3ebf569aa9afd61301eff9190 (patch) | |
tree | d28ff902055f8612fde72bdc5c2a289ee37562dd /sound/soc/sof/intel/hda-bus.c | |
parent | fe4010667741df8c8d6bef1780ec34ebf43cf007 (diff) | |
download | linux-40073a9d53eac3f3ebf569aa9afd61301eff9190.tar.bz2 |
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: 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>
Diffstat (limited to 'sound/soc/sof/intel/hda-bus.c')
-rw-r--r-- | sound/soc/sof/intel/hda-bus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/sof/intel/hda-bus.c b/sound/soc/sof/intel/hda-bus.c index 0caec3a070d3..1d2babdda9dd 100644 --- a/sound/soc/sof/intel/hda-bus.c +++ b/sound/soc/sof/intel/hda-bus.c @@ -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 |