card: add infrastructure to enable/disable jack detection

This patch adds a card message handler which will be used to enable
or disable jack detection on a per port basis. Only the necessary
variables and functions are added without adding the enable/disable
functionality. This patch only allows to query the port state and
sets the jack_detection variable without using it.
This commit is contained in:
Georg Chini 2021-01-07 19:12:25 +01:00
parent ed3d4f0837
commit 58521c05e8
4 changed files with 190 additions and 62 deletions

View file

@ -200,6 +200,7 @@ pa_device_port *pa_device_port_new(pa_core *c, pa_device_port_new_data *data, si
p->type = data->type;
p->latency_offset = 0;
p->jack_detection = true;
p->proplist = pa_proplist_new();
return p;