Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate functions for setting lna, mixer and vga gains (for r82xx tuner) #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mr-growl
Copy link

I am using an rtl-sdr with r820t tuner using rtl_power_fftw for radio astronomy. I wanted control of the lna gain for the tuner as well as mixer and vga so I made some changes to librtlsdr as well as to rtl_power_fftw to break out that functionality.

In librtlsdr I added functions for setting lna, mixer and vga gains as well as getting available gains for each. I added an enum with the gain types "lna", "mixer", "vga" and "total" (where total is the current default) to aid in re-using existing code without breaking current compatibility with code that may be using librtlsdr.

I'm fairly certain that these changes do not break any existing code that uses the library and doesn't seem to cause problems for other tuners which don't support it (I've only tried with an e4000 tuner for checking this).

Andrew Bates added 2 commits May 21, 2016 12:29
…nd vga for r82xx as well as setting those gains individually. working well so far. Only works for r82xx tuner but doesn't break anything for others (only tried with rt820 and e4000 tuners). Shouldn't break any existing code that uses the library.
…g nearly identical code and added some comments
@Romeo-Golf
Copy link

This seems useful, although would be good to confirm that this works as expected on R820T chipsets :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants