Sylvain Munaut
0297cd029b
fw/tuner_e4k: Experimental new init sequence
...
More complete ... Tries to bring up the e4k to a usable
state all at once.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-01 21:59:18 +02:00
Sylvain Munaut
b2b5d6518b
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-01 21:37:29 +02:00
Sylvain Munaut
1ba8c169ee
fw/tuner_e4k: Add function to enable/disable the IF channel filter
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-01 21:35:32 +02:00
Sylvain Munaut
16202796ae
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-01 21:34:25 +02:00
Sylvain Munaut
161ad3c469
fw/tuner_e4k: Avoid dual read of DC4 when generating DC table
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-01 21:33:25 +02:00
Sylvain Munaut
24c3a9a196
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-01 21:32:24 +02:00
Sylvain Munaut
5442a0dbe1
fw/tuner_e4k: Use signed int for if1_gain in the gain combination array
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-01 16:19:07 +02:00
Sylvain Munaut
d2f56043ef
fw/tuner_e4k: Mixer gain is 4 or 12 dB, not 0/12
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-01 16:18:27 +02:00
Sylvain Munaut
eeaa36a1fb
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-03-31 23:28:31 +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