]> git.alsa-project.org Git - alsa-lib.git/commitdiff
fix build with --disable-ucm
authorJaroslav Kysela <perex@perex.cz>
Mon, 28 Jun 2021 10:08:53 +0000 (12:08 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 28 Jun 2021 10:13:56 +0000 (12:13 +0200)
Link: https://mailman.alsa-project.org/pipermail/alsa-devel/2021-June/186729.html
Reported-by: Michael Forney <mforney@mforney.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
include/local.h

index 4e7d88a0ecac55f14cd1e8127f9e570b3f2a9973..7cfcec53dd5deec67efd3c7560679028850cb751 100644 (file)
@@ -374,6 +374,8 @@ int _snd_config_load_with_include(snd_config_t *config, snd_input_t *in,
 void *INTERNAL(snd_dlopen)(const char *name, int mode, char *errbuf, size_t errbuflen);
 #endif
 
+#ifdef BUILD_UCM
+
 const char *uc_mgr_alibcfg_by_device(snd_config_t **config, const char *name);
 
 static inline int _snd_is_ucm_device(const char *name)
@@ -381,4 +383,12 @@ static inline int _snd_is_ucm_device(const char *name)
        return name && name[0] == '_' && name[1] == 'u' && name[2] == 'c' && name[3] == 'm';
 }
 
+#else
+
+static inline const char *uc_mgr_alibcfg_by_device(snd_config_t **config, const char *name) { return NULL; }
+static inline int _snd_is_ucm_device(const char *name) { return 0; }
+
+
+#endif
+
 #endif