Possible bug in Linux sdrplay API
Posted: Fri Mar 25, 2016 12:15 pm
Hello,
while playing with gqrx and SDRPlay with the osmosdr backend, I found that changing the frequency only works when the frequency step is > 10 kHz. Smaller steps have no effect at all.
I traced it down to this code in gr_osmosdr sdrplay_source_c::set_center_freq():
The call to mir_sdr_SetRf() has no effect. I changed it to use the absolute mode:
This is working. So there might be a bug in the sdrplay API.
I am using sdrplay API and osmosdr from git master I got when I performed the "Get Started" procedure some days ago.
Regards,
Wolf, DK7OB
while playing with gqrx and SDRPlay with the osmosdr backend, I found that changing the frequency only works when the frequency step is > 10 kHz. Smaller steps have no effect at all.
I traced it down to this code in gr_osmosdr sdrplay_source_c::set_center_freq():
Code: Select all
if (fabs(diff) < 10000.0)
{
std::cerr << "mir_sdr_SetRf started" << std::endl;
mir_sdr_SetRf(diff, 0, 0);
}
else
{
std::cerr << "reinit_device started" << std::endl;
reinit_device();
}
Code: Select all
mir_sdr_SetRf(freq, 1, 0);
I am using sdrplay API and osmosdr from git master I got when I performed the "Get Started" procedure some days ago.
Regards,
Wolf, DK7OB