Commit Graph

27 Commits

Author SHA1 Message Date
Christian Daniel 2dd491881e e4k: fix return value of debug function 2012-06-05 21:28:34 +02:00
Christian Daniel b93708ed1d add lots of debugging stuff 2012-06-05 20:48:09 +02:00
Christian Daniel dda6e9c4cb add workaround for E4K gap between 325-350 MHz 2012-05-30 21:59:36 +02:00
Christian Daniel 180193cecf import modified E4000 driver from rtl-sdr 2012-05-26 22:13:59 +02:00
Sylvain Munaut ca53c22150 fw/tuner_e4k: Add some more magic init
It comes from the kernel driver. No idea what it does really ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-02 09:06:20 +02:00
Sylvain Munaut 088d53127b fw/tuner_e4k: Add function to enable/disable the IF channel filter
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-02 09:06:12 +02:00
Sylvain Munaut 6593b2be38 fw/tuner_e4k: Disable auto gain adjustement during DC table gen
We need them to be fixed during that time, so disable all auto
stuff

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-02 09:06:06 +02:00
Sylvain Munaut f1939647b4 fw/tuner_e4k: Avoid dual read of DC4 when generating DC table
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-02 09:06:00 +02:00
Sylvain Munaut 20487e8cb3 fw/tuner_e4k: DC offset table gen doc fixes
No we don't need to wait. I checked if the value ever changed after
the first read and it doesn't. Other e4k drivers don't wait either.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-02 09:05:55 +02:00
Sylvain Munaut a99f1b530e fw/tuner_e4k: Use signed int for if1_gain in the gain combination array
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-02 09:05:50 +02:00
Sylvain Munaut 0bcf409c54 fw/tuner_e4k: Mixer gain is 4 or 12 dB, not 0/12
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-02 09:05:46 +02:00
Sylvain Munaut 1d28c3065b fw/tuner_e4k: Fix the array_size of the filter fw settings.
This was causing the array length to be '1' and so we always
took the first possible setting (the widest) ...

Certainly not good when you only have a 500 kHz sample rate.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-02 09:05:40 +02:00
Sylvain Munaut 975c9813e9 tuner_e4k: Properly set the band
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-03-29 23:37:00 +02:00
Sylvain Munaut bdb4f8e5ca tuner_e4k: Fix band setting method mask & calls
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-03-29 23:36:09 +02:00
Sylvain Munaut 60d88b6ed2 tuner_e4k: Fix closest_arr_idx
The previous method tried to do clever stuff assuming the sequence is
sorted. Unfortunately:

1) this didn't really find the 'closest' match
2) this didn't work for the first or last interval
3) this didn't work for freq slightly above or below the last/first freq

All in all, it's easier to try them all.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-03-29 23:35:36 +02:00
Sylvain Munaut 311885441c tuner_e4k: Fix reference to 65535 vs 65536
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-03-29 08:47:51 +02:00
Sylvain Munaut 585c6d378a tuner_e4k: Max VCO frequency is 3.9GHz not 3.6GHz
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-03-29 08:46:48 +02:00
Christian Daniel 4683c1c21a tuner_e4k: add manual i/q correction 2012-03-06 15:29:33 +01:00
Christian Daniel 463a3f9c28 tuner_e4k: add setting for common mode 2012-03-06 14:43:03 +01:00
Harald Welte 31d11c2bf8 tuner_e4k: fix the Y value to b e 65536, not 65535 2012-03-05 23:31:33 +01:00
Harald Welte bab0eb62ce tuner_e4k: Introduce #define for OUT_OF_SPEC operation
The device can be used from 50..1900 MHz and not only 64..1700
2012-03-05 23:29:48 +01:00
Harald Welte 9ce29d79e8 e4k: fix unresolved symbols in dc offset calibration 2012-03-05 18:37:18 +01:00
Harald Welte c4c7c6add5 e4k: add dc offset calibration code 2012-03-05 18:25:11 +01:00
Harald Welte cc42e4df36 e4k: initialize tuner with smalles filters possible 2012-02-29 02:45:06 +01:00
Harald Welte 2a2c03a7b9 fpga related register/field dumping code (abstract) 2012-02-29 01:49:20 +01:00
Harald Welte d5c4d1edc7 Add GPLv3 license header to all our code 2012-01-24 10:25:31 +01:00
Harald Welte d5be5374c5 initial checkin of first driver for OsmoSDR tuner 2011-12-25 01:29:10 +01:00