From 1fe3790faed05b92ca4ad3a27da6eb23632d7e57 Mon Sep 17 00:00:00 2001
From: Josh Blum <josh@joshknows.com>
Date: Thu, 23 Sep 2010 19:05:10 -0700
Subject: uhd: multi channel single usrp source and sink working

---
 gr-uhd/lib/uhd_single_usrp_source.cc | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

(limited to 'gr-uhd/lib/uhd_single_usrp_source.cc')

diff --git a/gr-uhd/lib/uhd_single_usrp_source.cc b/gr-uhd/lib/uhd_single_usrp_source.cc
index 13e4d6d43c..5da4385b25 100644
--- a/gr-uhd/lib/uhd_single_usrp_source.cc
+++ b/gr-uhd/lib/uhd_single_usrp_source.cc
@@ -39,8 +39,9 @@ class uhd_single_usrp_source_impl : public uhd_single_usrp_source{
 public:
     uhd_single_usrp_source_impl(
         const std::string &args,
-        const uhd::io_type_t &type
-    ) : uhd_single_usrp_source(gr_make_io_signature(1, 1, type.size)), _type(type)
+        const uhd::io_type_t &type,
+        size_t num_channels
+    ) : uhd_single_usrp_source(gr_make_io_signature(num_channels, num_channels, type.size)), _type(type)
     {
         _dev = uhd::usrp::single_usrp::make(args);
         set_streaming(false);
@@ -157,9 +158,10 @@ private:
  **********************************************************************/
 boost::shared_ptr<uhd_single_usrp_source> uhd_make_single_usrp_source(
     const std::string &args,
-    const uhd::io_type_t::tid_t &type
+    const uhd::io_type_t::tid_t &type,
+    size_t num_channels
 ){
     return boost::shared_ptr<uhd_single_usrp_source>(
-        new uhd_single_usrp_source_impl(args, type)
+        new uhd_single_usrp_source_impl(args, type, num_channels)
     );
 }
-- 
cgit v1.2.3