aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-09-28 18:09:04 -0700
committerNick Foster <nick@nerdnetworks.org>2010-09-28 18:09:04 -0700
commit6fe533e19a29ea6cd241b70c38081499a8f3ba55 (patch)
tree28e56b6fad5d3f0c95519cc84db304c26c32e34e
parent560cbf9a2900a02391f025a3fd50a1616893c8c7 (diff)
downloaduhd-6fe533e19a29ea6cd241b70c38081499a8f3ba55.tar.gz
uhd-6fe533e19a29ea6cd241b70c38081499a8f3ba55.tar.bz2
uhd-6fe533e19a29ea6cd241b70c38081499a8f3ba55.zip
TVRX: Mixed up DAC channels. Gain is much more linear now.
-rw-r--r--host/lib/usrp/dboard/db_tvrx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/dboard/db_tvrx.cpp b/host/lib/usrp/dboard/db_tvrx.cpp
index 83a638810..71aff1680 100644
--- a/host/lib/usrp/dboard/db_tvrx.cpp
+++ b/host/lib/usrp/dboard/db_tvrx.cpp
@@ -322,10 +322,10 @@ static float if_gain_to_voltage(float gain){
void tvrx::set_gain(float gain, const std::string &name){
assert_has(get_tvrx_gain_ranges().keys(), name, "tvrx gain name");
if (name == "RF"){
- this->get_iface()->write_aux_dac(dboard_iface::UNIT_RX, dboard_iface::AUX_DAC_A, rf_gain_to_voltage(gain, _lo_freq));
+ this->get_iface()->write_aux_dac(dboard_iface::UNIT_RX, dboard_iface::AUX_DAC_B, rf_gain_to_voltage(gain, _lo_freq));
}
else if(name == "IF"){
- this->get_iface()->write_aux_dac(dboard_iface::UNIT_RX, dboard_iface::AUX_DAC_B, if_gain_to_voltage(gain));
+ this->get_iface()->write_aux_dac(dboard_iface::UNIT_RX, dboard_iface::AUX_DAC_A, if_gain_to_voltage(gain));
}
else UHD_THROW_INVALID_CODE_PATH();
_gains[name] = gain;