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

@ -194,6 +194,7 @@ struct spa_pod_fd {
struct spa_pod_prop {
uint32_t key; /**< key of property, list of valid keys depends on the
* object type */
#define SPA_POD_PROP_FLAG_HARDWARE (1u<<0) /**< property for some sort of hardware parameter */
uint32_t flags; /**< flags for property */
struct spa_pod value;
/* value follows */