summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMichael Krufky <devnull@localhost>2005-07-20 05:48:37 +0000
committerMichael Krufky <devnull@localhost>2005-07-20 05:48:37 +0000
commitc3832d8bc5c55587afee270fc7ad22bad2b0cefb (patch)
tree0f68f21a86448d4d806dbc52babe7db2295d94cd /linux
parent521cd25b997b9b02c069bd700b87c43f66d75c67 (diff)
downloadmediapointer-dvb-s2-c3832d8bc5c55587afee270fc7ad22bad2b0cefb.tar.gz
mediapointer-dvb-s2-c3832d8bc5c55587afee270fc7ad22bad2b0cefb.tar.bz2
- Select the RF input connector based upon the type of
demodulation selected. ANT RF connector is selected for 8-VSB and CABLE RF connector is selected for QAM64/QAM256. This only affects the cards that use the Microtune 4042 tuner. - This is patch #2 of a string of patches with counterparts in the video4linux tree affecting cx88-dvb.c Signed-off-by: Mac Michaels <wmichaels1@earthlink.net> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/frontends/lgdt3302.c12
-rw-r--r--linux/drivers/media/dvb/frontends/lgdt3302.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/lgdt3302.c b/linux/drivers/media/dvb/frontends/lgdt3302.c
index 136563606..c803c0500 100644
--- a/linux/drivers/media/dvb/frontends/lgdt3302.c
+++ b/linux/drivers/media/dvb/frontends/lgdt3302.c
@@ -214,6 +214,10 @@ static int lgdt3302_set_parameters(struct dvb_frontend* fe,
/* Select VSB mode and serial MPEG interface */
top_ctrl_cfg[1] = 0x07;
+
+ /* Select ANT connector if supported by card */
+ if (state->config->pll_rf_set)
+ state->config->pll_rf_set(fe, 1);
break;
case QAM_64:
@@ -221,6 +225,10 @@ static int lgdt3302_set_parameters(struct dvb_frontend* fe,
/* Select QAM_64 mode and serial MPEG interface */
top_ctrl_cfg[1] = 0x04;
+
+ /* Select CABLE connector if supported by card */
+ if (state->config->pll_rf_set)
+ state->config->pll_rf_set(fe, 0);
break;
case QAM_256:
@@ -228,6 +236,10 @@ static int lgdt3302_set_parameters(struct dvb_frontend* fe,
/* Select QAM_256 mode and serial MPEG interface */
top_ctrl_cfg[1] = 0x05;
+
+ /* Select CABLE connector if supported by card */
+ if (state->config->pll_rf_set)
+ state->config->pll_rf_set(fe, 0);
break;
default:
printk(KERN_WARNING "lgdt3302: %s: Modulation type(%d) UNSUPPORTED\n", __FUNCTION__, param->u.vsb.modulation);
diff --git a/linux/drivers/media/dvb/frontends/lgdt3302.h b/linux/drivers/media/dvb/frontends/lgdt3302.h
index 327c47e59..6bf6f985e 100644
--- a/linux/drivers/media/dvb/frontends/lgdt3302.h
+++ b/linux/drivers/media/dvb/frontends/lgdt3302.h
@@ -30,6 +30,7 @@ struct lgdt3302_config
u8 demod_address;
/* PLL interface */
+ int (*pll_rf_set) (struct dvb_frontend* fe, int index);
int (*pll_set)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pll_address);
/* Need to set device param for start_dma */