diff --git a/spa/include/spa/pod/pod.h b/spa/include/spa/pod/pod.h index 3111d7690..8033ae0c5 100644 --- a/spa/include/spa/pod/pod.h +++ b/spa/include/spa/pod/pod.h @@ -196,6 +196,11 @@ struct spa_pod_prop { * object type */ #define SPA_POD_PROP_FLAG_READONLY (1u<<0) /**< is read-only */ #define SPA_POD_PROP_FLAG_HARDWARE (1u<<1) /**< some sort of hardware parameter */ +#define SPA_POD_PROP_FLAG_HINT_DICT (1u<<2) /**< contains a dictionary struct as + * (Struct( + * Int : n_items, + * (String : key, + * String : value)*)) */ uint32_t flags; /**< flags for property */ struct spa_pod value; /* value follows */ diff --git a/spa/plugins/alsa/alsa-acp-device.c b/spa/plugins/alsa/alsa-acp-device.c index ca906f8ef..c04ebd179 100644 --- a/spa/plugins/alsa/alsa-acp-device.c +++ b/spa/plugins/alsa/alsa-acp-device.c @@ -347,7 +347,7 @@ static struct spa_pod *build_route(struct spa_pod_builder *b, uint32_t id, SPA_PARAM_ROUTE_priority, SPA_POD_Int(p->priority), SPA_PARAM_ROUTE_available, SPA_POD_Id(p->available), 0); - spa_pod_builder_prop(b, SPA_PARAM_ROUTE_info, 0); + spa_pod_builder_prop(b, SPA_PARAM_ROUTE_info, SPA_POD_PROP_FLAG_HINT_DICT); spa_pod_builder_push_struct(b, &f[1]); spa_pod_builder_int(b, p->props.n_items); acp_dict_for_each(item, &p->props) {