module-switch-on-port-available: Route to preferred profile
authorDavid Henningsson <david.henningsson@canonical.com>
Tue, 17 Nov 2015 14:10:35 +0000 (15:10 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Sun, 22 Nov 2015 02:59:30 +0000 (04:59 +0200)
commite87100d41ef6d14f8dc7f803582191d9f8d8f183
tree51caaca6a650c58a702fedb0a0228f7cf7775c23
parent063a1d350fad1cb6fac28dbffe26a7e805626cb2
module-switch-on-port-available: Route to preferred profile

This makes the routing slightly more aggressive:

 * It will try to route to another profile, if such a profile
   is preferred by the port.

 * It will allow changing profiles on transitions both to
   PA_AVAILABLE_YES and PA_AVAILABLE_NO

To accommodate there is also some refactoring.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/modules/module-switch-on-port-available.c