From 48b76f49bc7e5498df4fba9274063913d7f31cfb Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Fri, 18 Mar 2022 15:42:03 -0500 Subject: host: x410: Emulate GPIO classic ATR mode using new mode This fixes an issue with setting the active channel source in MPM, and additionally allows opening up the more flexible API in the future without requiring a filesystem update. --- host/lib/usrp/x400/x400_radio_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/usrp/x400/x400_radio_control.cpp') diff --git a/host/lib/usrp/x400/x400_radio_control.cpp b/host/lib/usrp/x400/x400_radio_control.cpp index 528330101..ef2d6bd21 100644 --- a/host/lib/usrp/x400/x400_radio_control.cpp +++ b/host/lib/usrp/x400/x400_radio_control.cpp @@ -187,7 +187,7 @@ x400_radio_control_impl::x400_radio_control_impl(make_args_ptr make_args) auto mpm_rpc = _mb_control->dynamic_cast_rpc_as(); if (mpm_rpc->get_gpio_banks().size() > 0) { _gpios = std::make_shared( - _rpcc, RFNOC_MAKE_WB_IFACE(regmap::PERIPH_BASE + 0xC000, 0)); + _rpcc, _mb_control, RFNOC_MAKE_WB_IFACE(regmap::PERIPH_BASE + 0xC000, 0)); auto gpio_port_mapper = std::shared_ptr( new uhd::rfnoc::x400::x400_gpio_port_mapping); -- cgit v1.2.3