From 267676363990fe95effc9bf283356da8d7ba9d4a Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Fri, 22 Nov 2019 14:26:47 -0800 Subject: ddc: Applying clang-format --- host/lib/rfnoc/ddc_block_control.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'host/lib') diff --git a/host/lib/rfnoc/ddc_block_control.cpp b/host/lib/rfnoc/ddc_block_control.cpp index 37286b29d..8ac411a53 100644 --- a/host/lib/rfnoc/ddc_block_control.cpp +++ b/host/lib/rfnoc/ddc_block_control.cpp @@ -179,10 +179,10 @@ public: // our output port. void issue_stream_cmd(const uhd::stream_cmd_t& stream_cmd, const size_t port) { - RFNOC_LOG_TRACE("issue_stream_cmd(stream_mode=" - << char(stream_cmd.stream_mode) << ", port=" << port); + RFNOC_LOG_TRACE("issue_stream_cmd(stream_mode=" << char(stream_cmd.stream_mode) + << ", port=" << port); res_source_info dst_edge{res_source_info::OUTPUT_EDGE, port}; - auto new_action = stream_cmd_action_info::make(stream_cmd.stream_mode); + auto new_action = stream_cmd_action_info::make(stream_cmd.stream_mode); new_action->stream_cmd = stream_cmd; issue_stream_cmd_action_handler(dst_edge, new_action); } @@ -349,10 +349,10 @@ private: scaling_out = scaling_in.get() * _residual_scaling.at(chan); }); // Resolvers for type: These are constants - add_property_resolver({type_in}, {type_in}, [&type_in = *type_in]() { + add_property_resolver({type_in}, {type_in}, [& type_in = *type_in]() { type_in.set(IO_TYPE_SC16); }); - add_property_resolver({type_out}, {type_out}, [&type_out = *type_out]() { + add_property_resolver({type_out}, {type_out}, [& type_out = *type_out]() { type_out.set(IO_TYPE_SC16); }); } @@ -374,15 +374,14 @@ private: void issue_stream_cmd_action_handler( const res_source_info& src, stream_cmd_action_info::sptr stream_cmd_action) { - res_source_info dst_edge{ - res_source_info::invert_edge(src.type), src.instance}; + res_source_info dst_edge{res_source_info::invert_edge(src.type), src.instance}; const size_t chan = src.instance; uhd::stream_cmd_t::stream_mode_t stream_mode = stream_cmd_action->stream_cmd.stream_mode; RFNOC_LOG_TRACE("Received stream command: " << char(stream_mode) << " to " << src.to_string() << ", id==" << stream_cmd_action->id); - auto new_action = stream_cmd_action_info::make(stream_mode); + auto new_action = stream_cmd_action_info::make(stream_mode); new_action->stream_cmd = stream_cmd_action->stream_cmd; if (stream_mode == uhd::stream_cmd_t::STREAM_MODE_NUM_SAMPS_AND_DONE || stream_mode == uhd::stream_cmd_t::STREAM_MODE_NUM_SAMPS_AND_MORE) { -- cgit v1.2.3