summaryrefslogtreecommitdiff
path: root/v4l/lgdt3302.c
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/lgdt3302.c')
-rw-r--r--v4l/lgdt3302.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/v4l/lgdt3302.c b/v4l/lgdt3302.c
index 23a2b5480..ac33f1e4d 100644
--- a/v4l/lgdt3302.c
+++ b/v4l/lgdt3302.c
@@ -1,5 +1,5 @@
/*
- * $Id: lgdt3302.c,v 1.16 2005/07/12 01:06:33 mkrufky Exp $
+ * $Id: lgdt3302.c,v 1.17 2005/07/12 04:09:24 mkrufky Exp $
*
* Support for LGDT3302 (DViCO FustionHDTV 3 Gold) - VSB/QAM
*
@@ -224,6 +224,8 @@ static int lgdt3302_set_parameters(struct dvb_frontend* fe,
/* Change only if we are actually changing the modulation */
if (state->current_modulation != param->u.vsb.modulation) {
+ int value;
+
switch(param->u.vsb.modulation) {
case VSB_8:
dprintk("%s: VSB_8 MODE\n", __FUNCTION__);
@@ -278,7 +280,6 @@ static int lgdt3302_set_parameters(struct dvb_frontend* fe,
vsb_freq_cfg, sizeof(vsb_freq_cfg));
/* Set the value of 'INLVTHD' register 0x2a/0x2c
to value from 'IFACC' register 0x39/0x3b -1 */
- int value;
i2c_selectreadbytes(state, AGC_RFIF_ACC0,
&agc_delay_cfg[1], 3);
value = ((agc_delay_cfg[1] & 0x0f) << 8) | agc_delay_cfg[3];