summaryrefslogtreecommitdiffstats
path: root/include/sound/soc-topology.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-08-19 18:31:54 +0200
committerTakashi Iwai <tiwai@suse.de>2015-08-19 18:31:54 +0200
commite24b6c03a17b20fb6473b3679f7423fae5731d05 (patch)
treec2e82d3223248b2e71253e5b035c2ea38d4a8d76 /include/sound/soc-topology.h
parent59a51a6b4b94ed6a11279b78a547e22d4b194c70 (diff)
parent8c90503bf246bebb48caa5590d41df755ba08550 (diff)
downloadlinux-stable-e24b6c03a17b20fb6473b3679f7423fae5731d05.tar.gz
linux-stable-e24b6c03a17b20fb6473b3679f7423fae5731d05.tar.bz2
linux-stable-e24b6c03a17b20fb6473b3679f7423fae5731d05.zip
Merge tag 'asoc-v4.2-disable-topology' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Disable topology support for v4.2 The topology code merged in the v4.2 merge window introduced a new ABI which was believed to be suitable for use but subsequently additional work by the developers of this feature have revealed some problems that need to be addressed. In order to allow this to be done without having to support the initial ABI add Kconfig to disable the build and also add some #error statements to the UAPI header so users can't use them.
Diffstat (limited to 'include/sound/soc-topology.h')
-rw-r--r--include/sound/soc-topology.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/sound/soc-topology.h b/include/sound/soc-topology.h
index 865a141b118b..427bc41df3ae 100644
--- a/include/sound/soc-topology.h
+++ b/include/sound/soc-topology.h
@@ -141,6 +141,8 @@ struct snd_soc_tplg_ops {
int io_ops_count;
};
+#ifdef CONFIG_SND_SOC_TOPOLOGY
+
/* gets a pointer to data from the firmware block header */
static inline const void *snd_soc_tplg_get_data(struct snd_soc_tplg_hdr *hdr)
{
@@ -165,4 +167,14 @@ int snd_soc_tplg_widget_bind_event(struct snd_soc_dapm_widget *w,
const struct snd_soc_tplg_widget_events *events, int num_events,
u16 event_type);
+#else
+
+static inline int snd_soc_tplg_component_remove(struct snd_soc_component *comp,
+ u32 index)
+{
+ return 0;
+}
+
+#endif
+
#endif