card: Add messages to control jack detection

Submitted by Georg Chini on April 9, 2018, 6:38 p.m.

Details

Reviewer None
Submitted April 9, 2018, 6:38 p.m.
Last Updated April 9, 2018, 6:38 p.m.
Revision 1

Cover Letter(s)

Revision 1
      This patch set uses the message API to implement messages that can
control jack detection and port availability. Jack detection can be
switched on and off for individual ports or whole cards. The current
port state can be queried.

Additionally, a port can be forced to some state. This implies
switching off jack detection for that port.

Because the set depends on the not yet reviewed messaging patches
it only implements the basic functionality and does not provide
pactl commands.

Georg Chini (3):
  card: add infrastructure to enable/disable jack detection
  device-port: Add messages to enable/disable jack detection
  core: prefer available devices during default source/sink selection

 doc/messaging_api.txt                        |  22 ++++
 src/modules/alsa/alsa-ucm.c                  |   2 +-
 src/modules/alsa/module-alsa-card.c          |   4 +-
 src/modules/bluetooth/module-bluez5-device.c |   4 +-
 src/pulsecore/card.c                         | 169 ++++++++++++++++++++++++++-
 src/pulsecore/card.h                         |   4 +
 src/pulsecore/core.c                         |  20 +++-
 src/pulsecore/device-port.c                  |  15 ++-
 src/pulsecore/device-port.h                  |   5 +-
 9 files changed, 234 insertions(+), 11 deletions(-)
    

Revisions