Lines Matching refs:p_info
108 static void port_info_free(struct port_info *p_info) {
109 pa_assert(p_info);
111 pa_xfree(p_info->profile);
112 pa_xfree(p_info->name);
113 pa_xfree(p_info);
123 struct port_info *p_info;
126 p_info = pa_xnew0(struct port_info, 1);
127 p_info->name = pa_xstrdup(port->name);
128 p_info->offset = port->latency_offset;
130 p_info->profile = pa_xstrdup(port->preferred_profile);
132 p_info = pa_xnew0(struct port_info, 1);
134 return p_info;
149 struct port_info *p_info;
167 p_info = port_info_new(port);
168 pa_assert_se(pa_hashmap_put(entry->ports, p_info->name, p_info) >= 0);
210 struct port_info *p_info;
221 PA_HASHMAP_FOREACH(p_info, e->ports, state) {
222 pa_tagstruct_puts(t, p_info->name);
223 pa_tagstruct_puts64(t, p_info->offset);
224 pa_tagstruct_puts(t, p_info->profile);
320 struct port_info *p_info;
335 p_info = port_info_new(NULL);
336 p_info->name = pa_xstrdup(port_name);
337 p_info->offset = port_offset;
339 p_info->profile = pa_xstrdup(profile_name);
341 pa_assert_se(pa_hashmap_put(e->ports, p_info->name, p_info) >= 0);
435 struct port_info *p_info;
440 if (!(p_info = pa_hashmap_get(entry->ports, p->name))) {
441 p_info = port_info_new(p);
442 pa_assert_se(pa_hashmap_put(entry->ports, p_info->name, p_info) >= 0);
445 if (!pa_safe_streq(p_info->profile, p->preferred_profile)) {
446 pa_xfree(p_info->profile);
447 p_info->profile = pa_xstrdup(p->preferred_profile);
448 pa_log_info("Storing profile %s for port %s on card %s.", p_info->profile, p->name, card->name);
514 struct port_info *p_info;
516 if ((p_info = pa_hashmap_get(entry->ports, port->name)))
517 p_info->offset = port->latency_offset;
519 p_info = port_info_new(port);
520 pa_assert_se(pa_hashmap_put(entry->ports, p_info->name, p_info) >= 0);
541 struct port_info *p_info;
553 PA_HASHMAP_FOREACH(p_info, e->ports, state)
554 if ((p = pa_hashmap_get(new_data->ports, p_info->name))) {
555 p->latency_offset = p_info->offset;
556 if (!p->preferred_profile && p_info->profile)
557 pa_device_port_set_preferred_profile(p, p_info->profile);