summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-10-22 00:10:39 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2007-10-22 00:10:39 -0400
commit4728a760179d2992de4fa160f0b1d474cb0c03d2 (patch)
treed09e8f6d8dd4ad6e9cdf48db437802254819333d /linux/drivers/media/video
parentdc6f31feaba49df7cf93fe4b1aac2665f2e3e692 (diff)
downloadmediapointer-dvb-s2-4728a760179d2992de4fa160f0b1d474cb0c03d2.tar.gz
mediapointer-dvb-s2-4728a760179d2992de4fa160f0b1d474cb0c03d2.tar.bz2
move std if setting from tda8290 to tda827x
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/dvb/frontends/tda827x.c | 61 +++++++++++++++++++++++++--- linux/drivers/media/dvb/frontends/tda827x.h | 3 - linux/drivers/media/video/tda8290.c | 20 --------- 3 files changed, 57 insertions(+), 27 deletions(-)
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/tda8290.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/linux/drivers/media/video/tda8290.c b/linux/drivers/media/video/tda8290.c
index aed23ce1f..6cfc8fd92 100644
--- a/linux/drivers/media/video/tda8290.c
+++ b/linux/drivers/media/video/tda8290.c
@@ -133,45 +133,32 @@ static void set_audio(struct dvb_frontend *fe)
struct tuner *t = priv->t;
char* mode;
- priv->cfg.tda827x_lpsel = 0;
if (t->std & V4L2_STD_MN) {
- priv->cfg.sgIF = 92;
priv->tda8290_easy_mode = 0x01;
- priv->cfg.tda827x_lpsel = 1;
mode = "MN";
} else if (t->std & V4L2_STD_B) {
- priv->cfg.sgIF = 108;
priv->tda8290_easy_mode = 0x02;
mode = "B";
} else if (t->std & V4L2_STD_GH) {
- priv->cfg.sgIF = 124;
priv->tda8290_easy_mode = 0x04;
mode = "GH";
} else if (t->std & V4L2_STD_PAL_I) {
- priv->cfg.sgIF = 124;
priv->tda8290_easy_mode = 0x08;
mode = "I";
} else if (t->std & V4L2_STD_DK) {
- priv->cfg.sgIF = 124;
priv->tda8290_easy_mode = 0x10;
mode = "DK";
} else if (t->std & V4L2_STD_SECAM_L) {
- priv->cfg.sgIF = 124;
priv->tda8290_easy_mode = 0x20;
mode = "L";
} else if (t->std & V4L2_STD_SECAM_LC) {
- priv->cfg.sgIF = 20;
priv->tda8290_easy_mode = 0x40;
mode = "LC";
} else {
- priv->cfg.sgIF = 124;
priv->tda8290_easy_mode = 0x10;
mode = "xx";
}
- if (t->mode == V4L2_TUNER_RADIO)
- priv->cfg.sgIF = 88; /* if frequency is 5.5 MHz */
-
tuner_dbg("setting tda8290 to system %s\n", mode);
}
@@ -397,7 +384,6 @@ static void tda8295_set_freq(struct dvb_frontend *fe, unsigned int freq)
{
struct tda8290_priv *priv = fe->analog_demod_priv;
struct tuner *t = priv->t;
- u16 ifc;
unsigned char blanking_mode[] = { 0x1d, 0x00 };
@@ -410,9 +396,7 @@ static void tda8295_set_freq(struct dvb_frontend *fe, unsigned int freq)
set_audio(fe);
- ifc = priv->cfg.sgIF; /* FIXME */
-
- tuner_dbg("%s: ifc = %u, freq = %d\n", __FUNCTION__, ifc, freq);
+ tuner_dbg("%s: freq = %d\n", __FUNCTION__, freq);
tda8295_power(fe, 1);
tda8295_agc1_out(fe, 1);
@@ -654,7 +638,6 @@ int tda8290_attach(struct tuner *t)
tuner_info("type set to %s\n", t->i2c.name);
- priv->cfg.tda827x_lpsel = 0;
t->mode = V4L2_TUNER_ANALOG_TV;
tda8290_init_tuner(&t->fe);
@@ -744,7 +727,6 @@ int tda8295_attach(struct tuner *t)
t->fe.ops.analog_demod_ops = &tda8295_tuner_ops;
- priv->cfg.tda827x_lpsel = 0;
t->mode = V4L2_TUNER_ANALOG_TV;
tda8295_init_if(&t->fe);