mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-12 13:30:10 -05:00
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:
parent
ed3d4f0837
commit
58521c05e8
4 changed files with 190 additions and 62 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue