Skip to content

Commit e24b6c0

Browse files
committed
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.
2 parents 59a51a6 + 8c90503 commit e24b6c0

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

include/sound/soc-topology.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ struct snd_soc_tplg_ops {
141141
int io_ops_count;
142142
};
143143

144+
#ifdef CONFIG_SND_SOC_TOPOLOGY
145+
144146
/* gets a pointer to data from the firmware block header */
145147
static inline const void *snd_soc_tplg_get_data(struct snd_soc_tplg_hdr *hdr)
146148
{
@@ -165,4 +167,14 @@ int snd_soc_tplg_widget_bind_event(struct snd_soc_dapm_widget *w,
165167
const struct snd_soc_tplg_widget_events *events, int num_events,
166168
u16 event_type);
167169

170+
#else
171+
172+
static inline int snd_soc_tplg_component_remove(struct snd_soc_component *comp,
173+
u32 index)
174+
{
175+
return 0;
176+
}
177+
178+
#endif
179+
168180
#endif

include/uapi/sound/asoc.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
#include <linux/types.h>
1919
#include <sound/asound.h>
2020

21+
#ifndef __KERNEL__
22+
#error This API is an early revision and not enabled in the current
23+
#error kernel release, it will be enabled in a future kernel version
24+
#error with incompatible changes to what is here.
25+
#endif
26+
2127
/*
2228
* Maximum number of channels topology kcontrol can represent.
2329
*/

sound/soc/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ config SND_SOC_GENERIC_DMAENGINE_PCM
3030
bool
3131
select SND_DMAENGINE_PCM
3232

33+
config SND_SOC_TOPOLOGY
34+
bool
35+
3336
# All the supported SoCs
3437
source "sound/soc/adi/Kconfig"
3538
source "sound/soc/atmel/Kconfig"

sound/soc/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
snd-soc-core-objs := soc-core.o soc-dapm.o soc-jack.o soc-cache.o soc-utils.o
22
snd-soc-core-objs += soc-pcm.o soc-compress.o soc-io.o soc-devres.o soc-ops.o
3+
4+
ifneq ($(CONFIG_SND_SOC_TOPOLOGY),)
35
snd-soc-core-objs += soc-topology.o
6+
endif
47

58
ifneq ($(CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM),)
69
snd-soc-core-objs += soc-generic-dmaengine-pcm.o

0 commit comments

Comments
 (0)