diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c index 71dfa79..ef37428 100644 --- a/src/modules/alsa/alsa-mixer.c +++ b/src/modules/alsa/alsa-mixer.c @@ -4483,6 +4483,8 @@ static pa_device_port* device_port_alsa_init(pa_hashmap *ports, /* card ports */ pa_hashmap *extra, /* sink/source ports */ pa_core *core) { + pa_log("device_port_alsa_init: name: %s, description: %s", name, description); + pa_device_port *p; pa_assert(path); @@ -4490,6 +4492,7 @@ static pa_device_port* device_port_alsa_init(pa_hashmap *ports, /* card ports */ p = pa_hashmap_get(ports, name); if (!p) { + pa_log("device_port_alsa_init: found %s in ports hashmap", name); pa_alsa_port_data *data; pa_device_port_new_data port_data; @@ -4537,7 +4540,9 @@ void pa_alsa_path_set_add_ports( return; PA_HASHMAP_FOREACH(path, ps->paths, state) { + pa_log("pa_alsa_path_set_add_ports: path %s", path->name); if (!path->settings || !path->settings->next) { + pa_log("pa_alsa_path_set_add_ports: !path->settings || !path->settings->next"); /* If there is no or just one setting we only need a * single entry */ pa_device_port *port = device_port_alsa_init(ports, path->name, @@ -4545,6 +4550,7 @@ void pa_alsa_path_set_add_ports( port->priority = path->priority * 100; } else { + pa_log("pa_alsa_path_set_add_ports: else"); pa_alsa_setting *s; PA_LLIST_FOREACH(s, path->settings) { pa_device_port *port; diff --git a/src/modules/alsa/module-alsa-card.c b/src/modules/alsa/module-alsa-card.c index be982ed..e8402d5 100644 --- a/src/modules/alsa/module-alsa-card.c +++ b/src/modules/alsa/module-alsa-card.c @@ -153,10 +153,12 @@ static void add_profiles(struct userdata *u, pa_hashmap *h, pa_hashmap *ports) { cp = pa_card_profile_new(ap->name, ap->description, sizeof(struct profile_data)); cp->priority = ap->priority; + pa_log("add_profiles: profile %s", ap->name); if (ap->output_mappings) { cp->n_sinks = pa_idxset_size(ap->output_mappings); PA_IDXSET_FOREACH(m, ap->output_mappings, idx) { + pa_log("add_profiles: mapping %s", m->name); if (u->use_ucm) pa_alsa_ucm_add_ports_combination(NULL, &m->ucm_context, true, ports, cp, u->core); else @@ -170,6 +172,7 @@ static void add_profiles(struct userdata *u, pa_hashmap *h, pa_hashmap *ports) { cp->n_sources = pa_idxset_size(ap->input_mappings); PA_IDXSET_FOREACH(m, ap->input_mappings, idx) { + pa_log("add_profiles: mapping %s", m->name); if (u->use_ucm) pa_alsa_ucm_add_ports_combination(NULL, &m->ucm_context, false, ports, cp, u->core); else