@@ -1569,11 +1569,14 @@ int snd_ctl_open(snd_ctl_t **ctlp, const char *name, int mode)
int err;
assert(ctlp && name);
+#ifdef BUILD_UCM
if (_snd_is_ucm_device(name)) {
name = uc_mgr_alibcfg_by_device(&top, name);
if (name == NULL)
return -ENODEV;
- } else {
+ } else
+#endif
+ {
err = snd_config_update_ref(&top);
if (err < 0)
return err;
@@ -2686,11 +2686,14 @@ int snd_pcm_open(snd_pcm_t **pcmp, const char *name,
int err;
assert(pcmp && name);
+#ifdef BUILD_UCM
if (_snd_is_ucm_device(name)) {
name = uc_mgr_alibcfg_by_device(&top, name);
if (name == NULL)
return -ENODEV;
- } else {
+ } else
+#endif
+ {
err = snd_config_update_ref(&top);
if (err < 0)
return err;
@@ -304,11 +304,14 @@ int snd_rawmidi_open(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp,
int err;
assert((inputp || outputp) && name);
+#ifdef BUILD_UCM
if (_snd_is_ucm_device(name)) {
name = uc_mgr_alibcfg_by_device(&top, name);
if (name == NULL)
return -ENODEV;
- } else {
+ } else
+#endif
+ {
err = snd_config_update_ref(&top);
if (err < 0)
return err;
@@ -978,11 +978,14 @@ int snd_seq_open(snd_seq_t **seqp, const char *name,
int err;
assert(seqp && name);
+#if BUILD_UCM
if (_snd_is_ucm_device(name)) {
name = uc_mgr_alibcfg_by_device(&top, name);
if (name == NULL)
return -ENODEV;
- } else {
+ } else
+#endif
+ {
err = snd_config_update_ref(&top);
if (err < 0)
return err;
@@ -205,11 +205,14 @@ int snd_timer_open(snd_timer_t **timer, const char *name, int mode)
int err;
assert(timer && name);
+#ifdef BUILD_UCM
if (_snd_is_ucm_device(name)) {
name = uc_mgr_alibcfg_by_device(&top, name);
if (name == NULL)
return -ENODEV;
- } else {
+ } else
+#endif
+ {
err = snd_config_update_ref(&top);
if (err < 0)
return err;
A recent change introduced a dependency on ucm to several of the other components, but this was not made conditional on whether BUILD_UCM is enabled. Signed-off-by: Michael Forney <mforney@mforney.org> --- src/control/control.c | 5 ++++- src/pcm/pcm.c | 5 ++++- src/rawmidi/rawmidi.c | 5 ++++- src/seq/seq.c | 5 ++++- src/timer/timer.c | 5 ++++- 5 files changed, 20 insertions(+), 5 deletions(-)