aboutsummaryrefslogtreecommitdiffstats
path: root/src/tuner_fc0013.c
diff options
context:
space:
mode:
authorSteve Markgraf <steve@steve-m.de>2012-04-01 00:38:40 +0200
committerSteve Markgraf <steve@steve-m.de>2012-04-01 00:38:40 +0200
commit31cb96fc3cdad63761ef4eeff2c722318bc1d89b (patch)
tree3a2c2cd041dccdbe307bafed6d225ecf350b46a2 /src/tuner_fc0013.c
parentff7910482453d39a776fbbe2ad79c59e87fa5132 (diff)
add tuner initialization, fix fc0013 replug bug
Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'src/tuner_fc0013.c')
-rw-r--r--src/tuner_fc0013.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tuner_fc0013.c b/src/tuner_fc0013.c
index a228e03..c718601 100644
--- a/src/tuner_fc0013.c
+++ b/src/tuner_fc0013.c
@@ -129,6 +129,9 @@ int FC0013_Open(void *pTuner)
// FC0013 Reset = High -> Low
// (...)
+ /* FIXME added to fix replug-bug with rtl-sdr */
+ if(FC0013_Write(pTuner, 0x0C, 0x00) != FC0013_I2C_SUCCESS) goto error_status;
+
//================================ update base on new FC0013 register bank
if(FC0013_Write(pTuner, 0x01, 0x09) != FC0013_I2C_SUCCESS) goto error_status;
if(FC0013_Write(pTuner, 0x02, 0x16) != FC0013_I2C_SUCCESS) goto error_status;