modules: Log when creating.

Easier to spot the log of single entity.
This commit is contained in:
Juho Hämäläinen 2019-11-13 10:57:43 +02:00
parent a574c42d7c
commit 6b9b141ac8
3 changed files with 6 additions and 0 deletions

View file

@ -1068,6 +1068,8 @@ pa_sink *pa_droid_sink_new(pa_module *m,
pa_assert(ma);
pa_assert(driver);
pa_log_info("Create new droid-sink");
deferred_volume = m->core->deferred_volume;
if (pa_modargs_get_value_boolean(ma, "deferred_volume", &deferred_volume) < 0) {
pa_log("Failed to parse deferred_volume argument.");

View file

@ -538,6 +538,8 @@ pa_source *pa_droid_source_new(pa_module *m,
pa_assert(ma);
pa_assert(driver);
pa_log_info("Create new droid-source");
/* When running under card use hw module name for source by default. */
if (am)
module_id = am->inputs->module->name;

View file

@ -711,6 +711,8 @@ int pa__init(pa_module *m) {
pa_assert(m);
pa_log_info("Create new droid-card");
if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
pa_log("Failed to parse module arguments.");
goto fail;