Enable switching from
A2DP source to
A2DP sink profile and vice-versa, when two devices capable of supporting both (ie. two machines running PulseAudio) are connected.
Now with codec switching in place it is fairly trivial to implement role swapping as it is effectively a codec switch to an endpoint in the other direction.