aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tda8290.c
diff options
context:
space:
mode:
authorHartmut Hackmann <hartmut.hackmann@t-online.de>2007-03-22 19:58:43 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-04-27 14:45:15 -0400
commite65ec752ced103eb86e5f9c1f747f06d3e266780 (patch)
tree79af2e14ddbc1d0a4f795057769c1d4fd5e42740 /drivers/media/video/tda8290.c
parentf992a497c71981e215b1415759fc13593ed2919f (diff)
V4L/DVB (5484): Set tda8290 to analog mode after init
Set tda8290 to analog mode after init, otherwise the tuner driver will not accept i.e. the standby command. Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tda8290.c')
-rw-r--r--drivers/media/video/tda8290.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/media/video/tda8290.c b/drivers/media/video/tda8290.c
index 44348f95dd4c..1a1bef0e9c3d 100644
--- a/drivers/media/video/tda8290.c
+++ b/drivers/media/video/tda8290.c
@@ -462,7 +462,6 @@ static void set_audio(struct tuner *t)
462 char* mode; 462 char* mode;
463 463
464 t->tda827x_lpsel = 0; 464 t->tda827x_lpsel = 0;
465 mode = "xx";
466 if (t->std & V4L2_STD_MN) { 465 if (t->std & V4L2_STD_MN) {
467 t->sgIF = 92; 466 t->sgIF = 92;
468 t->tda8290_easy_mode = 0x01; 467 t->tda8290_easy_mode = 0x01;
@@ -492,8 +491,12 @@ static void set_audio(struct tuner *t)
492 t->sgIF = 20; 491 t->sgIF = 20;
493 t->tda8290_easy_mode = 0x40; 492 t->tda8290_easy_mode = 0x40;
494 mode = "LC"; 493 mode = "LC";
494 } else {
495 t->sgIF = 124;
496 t->tda8290_easy_mode = 0x10;
497 mode = "xx";
495 } 498 }
496 tuner_dbg("setting tda8290 to system %s\n", mode); 499 tuner_dbg("setting tda8290 to system %s\n", mode);
497} 500}
498 501
499static void set_tv_freq(struct i2c_client *c, unsigned int freq) 502static void set_tv_freq(struct i2c_client *c, unsigned int freq)
@@ -636,6 +639,7 @@ int tda8290_init(struct i2c_client *c)
636 t->has_signal = has_signal; 639 t->has_signal = has_signal;
637 t->standby = standby; 640 t->standby = standby;
638 t->tda827x_lpsel = 0; 641 t->tda827x_lpsel = 0;
642 t->mode = V4L2_TUNER_ANALOG_TV;
639 643
640 tda8290_init_tuner(c); 644 tda8290_init_tuner(c);
641 tda8290_init_if(c); 645 tda8290_init_if(c);