summaryrefslogtreecommitdiff
path: root/drivers/media/common
diff options
context:
space:
mode:
authorSri Deevi <Srinivasa.Deevi@conexant.com>2009-03-03 12:07:42 +0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 19:43:18 +0400
commit0356baad85d59f18d4e64adec91459909ff71f20 (patch)
tree6ff3a283b193ccc2efff399902e2ebcfec2bc783 /drivers/media/common
parent70101a2785598f1a743c1e0fb65264c55bf5a29f (diff)
downloadlinux-0356baad85d59f18d4e64adec91459909ff71f20.tar.xz
V4L/DVB (10950): xc5000: prepare it to be used by cx231xx module
Signed-off-by: Srinivasa Deevi <srinivasa.deevi@conexant.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common')
-rw-r--r--drivers/media/common/tuners/xc5000.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/xc5000.c b/drivers/media/common/tuners/xc5000.c
index 493ce93caf43..98654dbeafa4 100644
--- a/drivers/media/common/tuners/xc5000.c
+++ b/drivers/media/common/tuners/xc5000.c
@@ -739,7 +739,10 @@ static int xc5000_set_analog_params(struct dvb_frontend *fe,
dprintk(1, "%s() frequency=%d (in units of 62.5khz)\n",
__func__, params->frequency);
- priv->rf_mode = XC_RF_MODE_CABLE; /* Fix me: it could be air. */
+ priv->rf_mode = params->mode;// XC_RF_MODE_CABLE; /* Fix me: it could be air. */
+ if(params->mode > XC_RF_MODE_CABLE)
+ priv->rf_mode = XC_RF_MODE_CABLE;
+
/* params->frequency is in units of 62.5khz */
priv->freq_hz = params->frequency * 62500;