[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190809095550.71040-1-yuehaibing@huawei.com>
Date: Fri, 9 Aug 2019 17:55:50 +0800
From: YueHaibing <yuehaibing@...wei.com>
To: <perex@...ex.cz>, <tiwai@...e.com>, <broonie@...nel.org>,
<lgirdwood@...il.com>, <pierre-louis.bossart@...ux.intel.com>,
<yang.jie@...ux.intel.com>
CC: <linux-kernel@...r.kernel.org>, <alsa-devel@...a-project.org>,
YueHaibing <yuehaibing@...wei.com>
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()
Reported-by: Hulk Robot <hulkci@...wei.com>
Fixes: d4ff1b3917a5 ('ASoC: SOF: Intel: Initialize hdaudio bus properly")
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
---
sound/soc/sof/intel/hda-bus.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/sof/intel/hda-bus.c b/sound/soc/sof/intel/hda-bus.c
index 0caec3a..e28a9c4 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 "../../../soc/codecs/hdac_hda.h"
#define sof_hda_ext_ops snd_soc_hdac_hda_get_ops()
#else
#define sof_hda_ext_ops NULL
--
2.7.4
Powered by blists - more mailing lists