pothosware / SoapyRTLSDR

SoapySDR RTL-SDR Support Module
https://github.com/pothosware/SoapyRTLSDR/wiki
MIT License
124 stars 29 forks source link

Feature request: implement r820tweak #24

Open dc1rdb opened 7 years ago

dc1rdb commented 7 years ago

Would it be possible to implement the features of https://github.com/gat3way/r820tweak into this driver? r820tweak is a modified RTL-SDR driver that exposes the R820T2 device gain stages and filters and makes them accessible through a GUI app.

darksidelemm commented 4 years ago

+1 on this. Being able to adjust more than just one gain setting is important in obtaining the best performance out of these devices. The Airspy drivers use optimised combinations of the VGA, Mixer, and LNA gain settings for their 'Linearity' and 'Sensitivity' gain profiles, which are defined here: https://github.com/airspy/airspyone_host/blob/master/libairspy/src/airspy.c#L117

The R820Tweak code which sets the relevant registers is here: https://github.com/gat3way/r820tweak/blob/master/src/tuner_r82xx.c#L1076

zuckschwerdt commented 4 years ago

Sounds interesting. Note that SoapyRTLSDR uses librtlsdr as API (rtlsdr_ calls) the e.g. r82xx_write_reg_mask calls aren't available. The tweaks should be merged to the official librtlsdr first, then we could use them as API.