soapy: make use of per component freq api

This commit is contained in:
Josh Blum 2015-02-24 20:36:36 -08:00
parent 53ed8918f3
commit 61184a19e7
2 changed files with 2 additions and 6 deletions

View File

@ -167,9 +167,7 @@ double soapy_sink_c::get_center_freq( size_t chan)
double soapy_sink_c::set_freq_corr( double ppm, size_t chan)
{
SoapySDR::Kwargs kw;
kw["CORR"] = boost::lexical_cast<std::string>(ppm);
_device->setFrequency(SOAPY_SDR_TX, chan, this->get_center_freq(chan), kw);
_device->setFrequency(SOAPY_SDR_TX, chan, "CORR", ppm);
return this->get_freq_corr(chan);
}

View File

@ -164,9 +164,7 @@ double soapy_source_c::get_center_freq( size_t chan )
double soapy_source_c::set_freq_corr( double ppm, size_t chan )
{
SoapySDR::Kwargs kw;
kw["CORR"] = boost::lexical_cast<std::string>(ppm);
_device->setFrequency(SOAPY_SDR_RX, chan, this->get_center_freq(chan), kw);
_device->setFrequency(SOAPY_SDR_RX, chan, "CORR", ppm);
return this->get_freq_corr(chan);
}