media-session: keep track of all active routes

Keep track of active profile in default-routes so that we can restore
the prefered routes later.
Keep track of all active routes in an array. There can be more than
one active route per direction.
New routes will get their volume restored. Route changes will be saved.
This commit is contained in:
Wim Taymans 2021-01-28 14:28:46 +01:00
parent b8bac95dad
commit 072d3a191c
2 changed files with 149 additions and 54 deletions

View file

@ -79,12 +79,6 @@ struct device {
uint32_t active_profile;
};
struct find_data {
struct impl *impl;
const char *name;
uint32_t id;
};
static void remove_idle_timeout(struct impl *impl)
{
struct pw_loop *main_loop = pw_context_get_main_loop(impl->context);