Lines 22-30
Link Here
|
22 |
|
22 |
|
23 |
#include "dib3000mc.h" |
23 |
#include "dib3000mc.h" |
24 |
|
24 |
|
|
|
25 |
#include "dib0700.h" |
26 |
|
25 |
static int debug; |
27 |
static int debug; |
26 |
module_param(debug, int, 0644); |
28 |
module_param(debug, int, 0644); |
27 |
MODULE_PARM_DESC(debug, "turn on debugging (default: 0)"); |
29 |
MODULE_PARM_DESC(debug, "turn on debugging (default: 0)"); |
|
|
30 |
|
31 |
#undef dprintk |
28 |
|
32 |
|
29 |
#define dprintk(args...) do { if (debug) { printk(KERN_DEBUG "DiB3000MC/P:"); printk(args); } } while (0) |
33 |
#define dprintk(args...) do { if (debug) { printk(KERN_DEBUG "DiB3000MC/P:"); printk(args); } } while (0) |
30 |
|
34 |
|
Lines 316-321
static int dib3000mc_init(struct dvb_fro
Link Here
|
316 |
{ |
320 |
{ |
317 |
struct dib3000mc_state *state = demod->demodulator_priv; |
321 |
struct dib3000mc_state *state = demod->demodulator_priv; |
318 |
struct dibx000_agc_config *agc = state->cfg->agc; |
322 |
struct dibx000_agc_config *agc = state->cfg->agc; |
|
|
323 |
struct dvb_usb_adapter *adap = demod->dvb->priv; |
324 |
struct dib0700_state *st = adap->dev->priv; |
319 |
|
325 |
|
320 |
// Restart Configuration |
326 |
// Restart Configuration |
321 |
dib3000mc_write_word(state, 1027, 0x8000); |
327 |
dib3000mc_write_word(state, 1027, 0x8000); |
Lines 429-440
static int dib3000mc_init(struct dvb_fro
Link Here
|
429 |
/* close the i2c-gate */ |
435 |
/* close the i2c-gate */ |
430 |
dib3000mc_write_word(state, 769, (1 << 7) ); |
436 |
dib3000mc_write_word(state, 769, (1 << 7) ); |
431 |
|
437 |
|
|
|
438 |
if (!strcmp (adap->dev->props.devices[0].name, "Hauppauge Nova-T 500 Dual DVB-T")) |
439 |
st->streaming_ctrl(adap,1); |
440 |
|
432 |
return 0; |
441 |
return 0; |
433 |
} |
442 |
} |
434 |
|
443 |
|
435 |
static int dib3000mc_sleep(struct dvb_frontend *demod) |
444 |
static int dib3000mc_sleep(struct dvb_frontend *demod) |
436 |
{ |
445 |
{ |
437 |
struct dib3000mc_state *state = demod->demodulator_priv; |
446 |
struct dib3000mc_state *state = demod->demodulator_priv; |
|
|
447 |
struct dvb_usb_adapter *adap = demod->dvb->priv; |
448 |
struct dib0700_state *st = adap->dev->priv; |
449 |
|
450 |
if (!strcmp (adap->dev->props.devices[0].name, "Hauppauge Nova-T 500 Dual DVB-T")) |
451 |
st->streaming_ctrl(adap,0); |
438 |
|
452 |
|
439 |
dib3000mc_write_word(state, 1031, 0xFFFF); |
453 |
dib3000mc_write_word(state, 1031, 0xFFFF); |
440 |
dib3000mc_write_word(state, 1032, 0xFFFF); |
454 |
dib3000mc_write_word(state, 1032, 0xFFFF); |