From 5693d72fcb0a0290faedcce64c57a3820a5cc660 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 3 Oct 2019 16:23:23 +0200 Subject: [PATCH] audioadapter: expose parameter in port_info --- spa/plugins/audioconvert/audioadapter.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spa/plugins/audioconvert/audioadapter.c b/spa/plugins/audioconvert/audioadapter.c index 213afe9e3..569677053 100644 --- a/spa/plugins/audioconvert/audioadapter.c +++ b/spa/plugins/audioconvert/audioadapter.c @@ -66,7 +66,7 @@ struct impl { uint64_t info_all; struct spa_node_info info; - struct spa_param_info params[5]; + struct spa_param_info params[6]; struct spa_hook_list hooks; struct spa_callbacks callbacks; @@ -993,9 +993,10 @@ impl_init(const struct spa_handle_factory *factory, this->params[1] = SPA_PARAM_INFO(SPA_PARAM_PropInfo, SPA_PARAM_INFO_READ); this->params[2] = SPA_PARAM_INFO(SPA_PARAM_Props, SPA_PARAM_INFO_READWRITE); this->params[3] = SPA_PARAM_INFO(SPA_PARAM_Format, SPA_PARAM_INFO_WRITE); - this->params[4] = SPA_PARAM_INFO(SPA_PARAM_PortConfig, SPA_PARAM_INFO_WRITE); + this->params[4] = SPA_PARAM_INFO(SPA_PARAM_EnumPortConfig, SPA_PARAM_INFO_READ); + this->params[5] = SPA_PARAM_INFO(SPA_PARAM_PortConfig, SPA_PARAM_INFO_READWRITE); this->info.params = this->params; - this->info.n_params = 5; + this->info.n_params = 6; spa_node_add_listener(this->slave, &this->slave_listener, &slave_node_events, this);