summaryrefslogtreecommitdiff
path: root/src/pulsecore/core.h
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2016-03-04 15:23:30 +0200
committerArun Raghavan <git@arunraghavan.net>2016-05-03 11:49:35 +0530
commit04040c522f5f62dda50ac927e92453381d419f09 (patch)
treefb433e137e2971b1377322ab5c58e6b8169bb8d8 /src/pulsecore/core.h
parentb88f2859a988ce5a1667363445c67fc34b756298 (diff)
downloadpulseaudio-04040c522f5f62dda50ac927e92453381d419f09.tar.gz
card: add preferred_{input, output}_port
I will modify module-switch-on-port-available so that it will keep track of which input and output port the user prefers on the card, based on the user's profile and port switches. The preference needs to be saved on disk, for which I will use module-card-restore. To facilitate communication between the two modules, this patch adds preferred_input_port and preferred_output_port fields to pa_card, and a hook for monitoring the variable changes. It would be nice if the two modules would communicate directly with each other, but implementing that would be somewhat complicated, so I chose this time for adding the functionality to the core. In theory some other routing module might want to manage the new variables instead of module-switch-on-port-available, but admittedly that's not very likely to happen...
Diffstat (limited to 'src/pulsecore/core.h')
-rw-r--r--src/pulsecore/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pulsecore/core.h b/src/pulsecore/core.h
index 1a3c4902e..69ab4d0ca 100644
--- a/src/pulsecore/core.h
+++ b/src/pulsecore/core.h
@@ -120,6 +120,7 @@ typedef enum pa_core_hook {
PA_CORE_HOOK_CARD_NEW,
PA_CORE_HOOK_CARD_PUT,
PA_CORE_HOOK_CARD_UNLINK,
+ PA_CORE_HOOK_CARD_PREFERRED_PORT_CHANGED,
PA_CORE_HOOK_CARD_PROFILE_CHANGED,
PA_CORE_HOOK_CARD_PROFILE_ADDED,
PA_CORE_HOOK_CARD_PROFILE_AVAILABLE_CHANGED,