[pulseaudio-discuss] [PATCH v2 0/8] Change the bool sink_save to char *preferred_sink

Hui Wang hui.wang at canonical.com
Thu Jan 17 06:53:32 UTC 2019


This is based on Tanu's design:
https://lists.freedesktop.org/archives/pulseaudio-discuss/2018-October/030531.html

And this is only for sink-input and sink, not for source-output and source.

In the V2, I addressed all comments of V1 and split the big patch into small patches
as suggested by Tanu. It will be easy to review in the future.

The 0007 and 0008 are not in the design of the above, I guess the 0007 is
needed but am not sure. The 0008 is a workaround for current
gnome-control-center.


Hui Wang (8):
  sink-input: change bool save_sink to char *preferred_sink
  sink-input: add a new API pa_sink_input_set_preferred_sink
  sink-input: clear the preferred_sink if it is default_sink
  core: move sink-inputs conditionally when update default_sink
  sink: move streams to new appeared sinks if they prefer these sinks
  device-port: moving streams due to changing the status of active_port
  sink: move the streams to the default_sink when the sink is unlinked
  stream-restore: skip entries setting action from gnome-control-center

 src/modules/dbus/iface-core.c               |   2 +-
 src/modules/module-default-device-restore.c |   2 +-
 src/modules/module-device-manager.c         |   8 +-
 src/modules/module-intended-roles.c         |   2 +-
 src/modules/module-stream-restore.c         | 151 +++++---------------
 src/modules/module-switch-on-connect.c      |  27 +---
 src/pulsecore/cli-command.c                 |   2 +-
 src/pulsecore/core.c                        |  38 ++++-
 src/pulsecore/core.h                        |   6 +-
 src/pulsecore/device-port.c                 |  32 ++++-
 src/pulsecore/device-port.h                 |   2 +
 src/pulsecore/protocol-native.c             |   2 +-
 src/pulsecore/sink-input.c                  |  42 +++++-
 src/pulsecore/sink-input.h                  |  19 ++-
 src/pulsecore/sink.c                        |  40 +++++-
 src/pulsecore/sink.h                        |   6 +
 16 files changed, 209 insertions(+), 172 deletions(-)

-- 
2.17.1



More information about the pulseaudio-discuss mailing list