pod: add HARDWARE flag to spa_pod_prop

Add HARDWARE flag to mark a property that does some hardware control.
Mark the device volume/mute property as HARDWARE or not.
Use the HARDWARE property in pulse to set the right flags.
This commit is contained in:
Wim Taymans 2020-07-06 17:46:32 +02:00
parent 8e6b276d51
commit cf8db93cd4
5 changed files with 25 additions and 11 deletions

View file

@ -273,7 +273,9 @@ struct global {
uint32_t client_id; /* if of owner client */
uint32_t monitor;
#define NODE_FLAG_HW_VOLUME (1 << 0)
#define NODE_FLAG_DEVICE_VOLUME (1 << 1)
#define NODE_FLAG_HW_MUTE (1 << 4)
#define NODE_FLAG_DEVICE_MUTE (1 << 5)
uint32_t flags;
float volume;
bool mute;