policy-device-routes: consider routes only for active profile

P V requested to merge pvir/wireplumber:best-route into master

If a route specifies a set of profiles, it should not be used if the profile is not in that list.

In findBest/SavedRoute, exclude routes that don't match the active profile.

Currently in the SPA devices, the device id is different for different profiles so this condition does not occur (behavior inherited from Pulseaudio's ACP), but in general this might not be so.

Edited by P V

Merge request reports