mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
Cards now has ports directly, and device port has list of profiles
This forms the base for being able to expose all ports of all profiles (even inactive ones) to clients. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
parent
d9685ec85d
commit
0dced7f275
4 changed files with 22 additions and 1 deletions
|
|
@ -32,6 +32,8 @@ static void device_port_free(pa_object *o) {
|
|||
pa_assert(p);
|
||||
pa_assert(pa_device_port_refcnt(p) == 0);
|
||||
|
||||
if (p->profiles)
|
||||
pa_hashmap_free(p->profiles, NULL, NULL);
|
||||
pa_xfree(p->name);
|
||||
pa_xfree(p->description);
|
||||
pa_xfree(p);
|
||||
|
|
@ -50,6 +52,9 @@ pa_device_port *pa_device_port_new(const char *name, const char *description, si
|
|||
p->description = pa_xstrdup(description);
|
||||
p->priority = 0;
|
||||
p->available = PA_PORT_AVAILABLE_UNKNOWN;
|
||||
p->profiles = NULL;
|
||||
p->is_input = FALSE;
|
||||
p->is_output = FALSE;
|
||||
|
||||
return p;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue