summaryrefslogtreecommitdiff
path: root/net-wireless/soapyuhd/files/soapyuhd-0.4.1-uhd-4.8.patch
blob: 94356817204b0a4fe146c75e1b3ae106793e49b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From 6eeee4fd3217166199068bbe05c555c2bccb2a7b Mon Sep 17 00:00:00 2001
From: Ryan Volz <ryan.volz@gmail.com>
Date: Fri, 7 Feb 2025 11:09:35 -0500
Subject: [PATCH] Define post_input_action/post_output_action for UHD 4.8+

---
 UHDSoapyDevice.cpp | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/UHDSoapyDevice.cpp b/UHDSoapyDevice.cpp
index 3ce66f3..88641c5 100644
--- a/UHDSoapyDevice.cpp
+++ b/UHDSoapyDevice.cpp
@@ -707,6 +707,14 @@ class UHDSoapyRxStream : public uhd::rx_streamer
         if (ret != 0) throw std::runtime_error(str(boost::format("UHDSoapyRxStream::issue_stream_cmd() = %d") % ret));
     }
 
+    #if UHD_VERSION >= 4080000
+    void post_input_action(
+        const std::shared_ptr<uhd::rfnoc::action_info>&, const size_t) override
+    {
+        throw uhd::not_implemented_error("post_input_action is not implemented here!");
+    }
+    #endif
+
 private:
     SoapySDR::Device *_device;
     SoapySDR::Stream *_stream;
@@ -851,6 +859,14 @@ class UHDSoapyTxStream : public uhd::tx_streamer
         return true;
     }
 
+    #if UHD_VERSION >= 4080000
+    void post_output_action(
+        const std::shared_ptr<uhd::rfnoc::action_info>&, const size_t) override
+    {
+        throw uhd::not_implemented_error("post_output_action is not implemented here!");
+    }
+    #endif
+
 private:
     bool _active;
     SoapySDR::Device *_device;