mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
fix build with --disable-ucm
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>
This commit is contained in:
parent
7ba3f888d0
commit
f4f29d42be
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue