diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-03 06:07:42 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-03 06:07:42 -0300 |
commit | c0230ad41429c84a819228694765a2f570ddfe38 (patch) | |
tree | fe318d520feb809550320214669ad7a8a1966473 /linux/drivers | |
parent | 47b7123665629b4f3d24173609a0d3b398c7132c (diff) | |
download | mediapointer-dvb-s2-c0230ad41429c84a819228694765a2f570ddfe38.tar.gz mediapointer-dvb-s2-c0230ad41429c84a819228694765a2f570ddfe38.tar.bz2 |
xc5000: prepare it to be used by cx231xx module
From: Sri Deevi <Srinivasa.Deevi@conexant.com>
Signed-off-by: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/common/tuners/xc5000.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/linux/drivers/media/common/tuners/xc5000.c b/linux/drivers/media/common/tuners/xc5000.c index 36c81febb..dc534982e 100644 --- a/linux/drivers/media/common/tuners/xc5000.c +++ b/linux/drivers/media/common/tuners/xc5000.c @@ -758,7 +758,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; |