ucm: add possibility to skip the UCM card completely (Linked)

We have a requirement to "hide" some hardware drivers, because
other (main) UCM configuration will refer them.

This patch use special error codes to notify the upper layers
to skip the module loading.

BugLink: https://github.com/alsa-project/alsa-ucm-conf/issues/30
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2020-06-07 18:25:41 +02:00 committed by Tanu Kaskinen
parent b72724369b
commit c1a7e3c59d
6 changed files with 54 additions and 10 deletions

View file

@ -30,6 +30,11 @@ typedef struct pa_module pa_module;
#include <pulsecore/core.h>
enum {
PA_MODULE_ERR_UNSPECIFIED = 1,
PA_MODULE_ERR_SKIP = 2
};
struct pa_module {
pa_core *core;
char *name, *argument;