acp: add per device port list

Add the list of possible ports for a device.
Pass the allowed devices in the routes.
Store the active port in the device.

Fixes enumeration of ports on devices with UCM.
This commit is contained in:
Wim Taymans 2020-08-10 14:25:03 +02:00
parent 5d90fe26f3
commit 374210c890
9 changed files with 64 additions and 22 deletions

View file

@ -69,6 +69,8 @@ struct pa_device_port {
pa_hashmap *profiles;
pa_dynarray prof;
pa_dynarray devices;
void (*impl_free)(struct pa_device_port *port);
void *user_data;
};