Lines Matching refs:port
122 static struct port_info *port_info_new(pa_device_port *port) {
125 if (port) {
127 p_info->name = pa_xstrdup(port->name);
128 p_info->offset = port->latency_offset;
129 if (port->preferred_profile)
130 p_info->profile = pa_xstrdup(port->preferred_profile);
151 pa_device_port *port;
166 PA_HASHMAP_FOREACH(port, card->ports, state) {
167 p_info = port_info_new(port);
402 pa_log_info("Storing profile and port latency offsets for card %s.", card->name);
404 pa_log_info("Storing port latency offsets for card %s.", card->name);
448 pa_log_info("Storing profile %s for port %s on card %s.", p_info->profile, p->name, card->name);
506 static pa_hook_result_t port_offset_change_callback(pa_core *c, pa_device_port *port, struct userdata *u) {
510 pa_assert(port);
511 card = port->card;
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);
523 pa_log_info("Storing latency offset for port %s on card %s.", port->name, card->name);
551 pa_log_info("Restoring port latency offsets for card %s.", new_data->name);