mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
card: Add messages to enable/disable jack detection
With this patch, messages can be sent to the cards to enable/disable jack detection for the whole card or single ports, manually set a port state and to retrieve the current state of jack detection and port availability.
This commit is contained in:
parent
58521c05e8
commit
f178a5b12e
7 changed files with 95 additions and 21 deletions
|
|
@ -47,3 +47,28 @@ Object path: /card/<card_name>
|
|||
Message: get-profile-sticky
|
||||
Parameters: None
|
||||
Return value: JSON "true" or "false"
|
||||
|
||||
Object path: /cards/<card_name>
|
||||
Message: set-jack-detection
|
||||
Parameters: {"port_name|all":true|false}
|
||||
Return value: None
|
||||
|
||||
Object path: /cards/<card_name>
|
||||
Message: get-jack-detection
|
||||
Parameters: "port_name|all"
|
||||
Return value: {"port_name":true|false}
|
||||
If "all" is specified, the returned object looks different:
|
||||
{"Card name":"card_name", "Detection states":{"port_name":true|false, ...}}
|
||||
|
||||
Object path: /cards/<card_name>
|
||||
Message: set-port-state
|
||||
Parameters: {"port_name|all":0|1|2}
|
||||
Return value: None
|
||||
0=unknown, 1=no, 2=yes
|
||||
|
||||
Object path: /cards/<card_name>
|
||||
Message: get-port-state
|
||||
Parameters: "port_name|all"
|
||||
Return value: {"port_name":0|1|2}
|
||||
If "all" is specified, the returned object looks different:
|
||||
{"Card name":"card_name", "Port states":{"port_name":0|1|2, ...}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue