diff options
| -rw-r--r-- | include/sound/soc-topology.h | 12 | ||||
| -rw-r--r-- | sound/soc/Kconfig | 3 | ||||
| -rw-r--r-- | sound/soc/Makefile | 3 |
3 files changed, 18 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 { | |||
| 141 | int io_ops_count; | 141 | int io_ops_count; |
| 142 | }; | 142 | }; |
| 143 | 143 | ||
| 144 | #ifdef CONFIG_SND_SOC_TOPOLOGY | ||
| 145 | |||
| 144 | /* gets a pointer to data from the firmware block header */ | 146 | /* gets a pointer to data from the firmware block header */ |
| 145 | static inline const void *snd_soc_tplg_get_data(struct snd_soc_tplg_hdr *hdr) | 147 | static inline const void *snd_soc_tplg_get_data(struct snd_soc_tplg_hdr *hdr) |
| 146 | { | 148 | { |
| @@ -165,4 +167,14 @@ int snd_soc_tplg_widget_bind_event(struct snd_soc_dapm_widget *w, | |||
| 165 | const struct snd_soc_tplg_widget_events *events, int num_events, | 167 | const struct snd_soc_tplg_widget_events *events, int num_events, |
| 166 | u16 event_type); | 168 | u16 event_type); |
| 167 | 169 | ||
| 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 | |||
| 168 | #endif | 180 | #endif |
diff --git a/sound/soc/Kconfig b/sound/soc/Kconfig index 2ae9619443d1..1d651b8a8957 100644 --- a/sound/soc/Kconfig +++ b/sound/soc/Kconfig | |||
| @@ -30,6 +30,9 @@ config SND_SOC_GENERIC_DMAENGINE_PCM | |||
| 30 | bool | 30 | bool |
| 31 | select SND_DMAENGINE_PCM | 31 | select SND_DMAENGINE_PCM |
| 32 | 32 | ||
| 33 | config SND_SOC_TOPOLOGY | ||
| 34 | bool | ||
| 35 | |||
| 33 | # All the supported SoCs | 36 | # All the supported SoCs |
| 34 | source "sound/soc/adi/Kconfig" | 37 | source "sound/soc/adi/Kconfig" |
| 35 | source "sound/soc/atmel/Kconfig" | 38 | source "sound/soc/atmel/Kconfig" |
diff --git a/sound/soc/Makefile b/sound/soc/Makefile index e189903fabf4..669648b41d30 100644 --- a/sound/soc/Makefile +++ b/sound/soc/Makefile | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | snd-soc-core-objs := soc-core.o soc-dapm.o soc-jack.o soc-cache.o soc-utils.o | 1 | snd-soc-core-objs := soc-core.o soc-dapm.o soc-jack.o soc-cache.o soc-utils.o |
| 2 | snd-soc-core-objs += soc-pcm.o soc-compress.o soc-io.o soc-devres.o soc-ops.o | 2 | 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),) | ||
| 3 | snd-soc-core-objs += soc-topology.o | 5 | snd-soc-core-objs += soc-topology.o |
| 6 | endif | ||
| 4 | 7 | ||
| 5 | ifneq ($(CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM),) | 8 | ifneq ($(CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM),) |
| 6 | snd-soc-core-objs += soc-generic-dmaengine-pcm.o | 9 | snd-soc-core-objs += soc-generic-dmaengine-pcm.o |
