From c6fa97916064e224410c16d4a284007cd0a2404d Mon Sep 17 00:00:00 2001 From: Dimitri Stolnikov Date: Sat, 2 Jun 2012 23:03:55 +0200 Subject: [PATCH] osmosdr: disable IQ swapping feature --- lib/osmosdr/osmosdr_src_c.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/osmosdr/osmosdr_src_c.cc b/lib/osmosdr/osmosdr_src_c.cc index 4b029f8..6ca034c 100644 --- a/lib/osmosdr/osmosdr_src_c.cc +++ b/lib/osmosdr/osmosdr_src_c.cc @@ -115,6 +115,10 @@ osmosdr_src_c::osmosdr_src_c (const std::string &args) if (ret < 0) throw std::runtime_error("Failed to open osmosdr device."); + ret = osmosdr_set_fpga_iq_swap(_dev, 0); + if (ret < 0) + throw std::runtime_error("Failed to disable IQ swapping."); + ret = osmosdr_set_sample_rate( _dev, 1000000 ); if (ret < 0) throw std::runtime_error("Failed to set default samplerate.");