node: add the current driver id to the node activation

See #3873
This commit is contained in:
Wim Taymans 2024-02-28 11:42:09 +01:00
parent a82e95c37d
commit cbffa9c568
2 changed files with 3 additions and 1 deletions

View file

@ -1847,6 +1847,7 @@ again:
uint32_t id = t->id;
ta->status = PW_NODE_ACTIVATION_NOT_TRIGGERED;
ta->driver_id = driver->info.id;
pw_node_activation_state_reset(&ta->state[0]);
/* this is the node with reposition info */

View file

@ -578,7 +578,8 @@ struct pw_node_activation {
uint32_t segment_owner[16]; /* id of owners for each segment info struct.
* nodes that want to update segment info need to
* CAS their node id in this array. */
uint32_t padding[15];
uint32_t padding[14];
uint32_t driver_id; /* the current node driver id */
#define PW_NODE_ACTIVATION_FLAG_NONE 0
#define PW_NODE_ACTIVATION_FLAG_PROFILER (1<<0) /* the profiler is running */
uint32_t flags; /* extra flags */