summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-04-27 13:17:19 -0700
committerJosh Blum <josh@joshknows.com>2011-04-27 13:17:19 -0700
commit1e7227319cdf9098c6ddf344ad5bbd2c82ca2cda (patch)
treee03ce0a1d5d2969e9950df2537dc2d3abbb3d831
parent3dfdda7c82b65fe3acbdadcafde3e93e129345d2 (diff)
downloaduhd-1e7227319cdf9098c6ddf344ad5bbd2c82ca2cda.tar.gz
uhd-1e7227319cdf9098c6ddf344ad5bbd2c82ca2cda.tar.bz2
uhd-1e7227319cdf9098c6ddf344ad5bbd2c82ca2cda.zip
usrp1: the rx mux was reversed (fixed multi-channel rx)
-rw-r--r--host/lib/usrp/usrp1/mboard_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp1/mboard_impl.cpp b/host/lib/usrp/usrp1/mboard_impl.cpp
index 4e2fad6e5..870956568 100644
--- a/host/lib/usrp/usrp1/mboard_impl.cpp
+++ b/host/lib/usrp/usrp1/mboard_impl.cpp
@@ -80,7 +80,7 @@ static boost::uint32_t calc_rx_mux(
//calculate the channel flags
int channel_flags = 0;
size_t num_reals = 0, num_quads = 0;
- BOOST_FOREACH(const subdev_spec_pair_t &pair, subdev_spec){
+ BOOST_FOREACH(const subdev_spec_pair_t &pair, uhd::reversed(subdev_spec)){
wax::obj dboard = mboard[named_prop_t(MBOARD_PROP_RX_DBOARD, pair.db_name)];
wax::obj subdev = dboard[named_prop_t(DBOARD_PROP_SUBDEV, pair.sd_name)];
subdev_conn_t conn = subdev[SUBDEV_PROP_CONNECTION].as<subdev_conn_t>();