modules: Log when creating.
Easier to spot the log of single entity.
This commit is contained in:
parent
a574c42d7c
commit
6b9b141ac8
3 changed files with 6 additions and 0 deletions
|
|
@ -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.");
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue