mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
device-port: Add a card pointer to the ports.
This way we can directly access the card that owns the port instead of iterating over all cards.
This commit is contained in:
parent
ed6f30c79a
commit
9d6eb21c7e
3 changed files with 12 additions and 1 deletions
|
|
@ -92,6 +92,7 @@ pa_device_port *pa_device_port_new(pa_core *c, const char *name, const char *des
|
|||
p->name = pa_xstrdup(name);
|
||||
p->description = pa_xstrdup(description);
|
||||
p->core = c;
|
||||
p->card = NULL;
|
||||
p->priority = 0;
|
||||
p->available = PA_PORT_AVAILABLE_UNKNOWN;
|
||||
p->profiles = pa_hashmap_new(pa_idxset_string_hash_func, pa_idxset_string_compare_func);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue