mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
acp: add support for hiding profiles and ports
api.acp.hidden-ports and api.acp.hidden-profiles can be used to pass a json array of ports and profiles to hide. They will not show and will not be selectable.
This commit is contained in:
parent
85a9e30908
commit
a532c2abdb
3 changed files with 52 additions and 2 deletions
|
|
@ -167,6 +167,7 @@ struct acp_port {
|
|||
uint32_t index; /**< unique index for this port */
|
||||
#define ACP_PORT_ACTIVE (1<<0)
|
||||
#define ACP_PORT_SAVE (1<<1) /* if the port needs saving */
|
||||
#define ACP_PORT_HIDDEN (1<<2)
|
||||
uint32_t flags; /**< extra port flags */
|
||||
|
||||
const char *name; /**< Name of this port */
|
||||
|
|
@ -190,6 +191,7 @@ struct acp_device {
|
|||
#define ACP_DEVICE_HW_MUTE (1<<2)
|
||||
#define ACP_DEVICE_UCM_DEVICE (1<<3)
|
||||
#define ACP_DEVICE_IEC958 (1<<4)
|
||||
#define ACP_DEVICE_HIDDEN (1<<5)
|
||||
uint32_t flags;
|
||||
|
||||
const char *name;
|
||||
|
|
@ -218,6 +220,7 @@ struct acp_card_profile {
|
|||
#define ACP_PROFILE_OFF (1<<1) /* the Off profile */
|
||||
#define ACP_PROFILE_SAVE (1<<2) /* if the profile needs saving */
|
||||
#define ACP_PROFILE_PRO (1<<3) /* the Pro profile */
|
||||
#define ACP_PROFILE_HIDDEN (1<<4) /* don't show the profile */
|
||||
uint32_t flags;
|
||||
|
||||
const char *name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue