This is the second version of my endeavors to remove or make SRC simpler when possible. An idle non-network, local or passthrough devices will be suspended immediately when there aren't any inputs. When a new input is connected, we try to resume with the best match between requested sample rate and sink sample rate. To make things simple, the sink can only support a default and an alternate rate, typically 44.1 and 48kHz. Of course the feature is disabled when both rates are identical (if the sink cannot be reconfigured). Tests with HDAudio and USB show a negligible added delay but a nice reduction of CPU activity. Pierre-Louis Bossart (5): core: add support for alternate sample rate core: dynamic change of sampling rate core/alsa: make rate and alternate rate sink/source specific suspend-on-idle: add suspend-asap mode bluetooth: set PA_SINK/SOURCE_NETWORK flags