summaryrefslogtreecommitdiffstats
path: root/polyp/module-alsa-source.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/module-alsa-source.c')
-rw-r--r--polyp/module-alsa-source.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/polyp/module-alsa-source.c b/polyp/module-alsa-source.c
index 56eb1455..67e38a1d 100644
--- a/polyp/module-alsa-source.c
+++ b/polyp/module-alsa-source.c
@@ -46,6 +46,8 @@ PA_MODULE_DESCRIPTION("ALSA Source")
PA_MODULE_VERSION(PACKAGE_VERSION)
PA_MODULE_USAGE("source_name=<name for the source> device=<ALSA device> format=<sample format> channels=<number of channels> rate=<sample rate> fragments=<number of fragments> fragment_size=<fragment size>")
+#define PA_TYPEID_ALSA PA_TYPEID_MAKE('A', 'L', 'S', 'A')
+
struct userdata {
snd_pcm_t *pcm_handle;
struct pa_source *source;
@@ -203,7 +205,7 @@ int pa__init(struct pa_core *c, struct pa_module*m) {
goto fail;
}
- u->source = pa_source_new(c, pa_modargs_get_value(ma, "source_name", DEFAULT_SOURCE_NAME), 0, &ss);
+ u->source = pa_source_new(c, PA_TYPEID_ALSA, pa_modargs_get_value(ma, "source_name", DEFAULT_SOURCE_NAME), 0, &ss);
assert(u->source);
u->source->userdata = u;