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>
This commit is contained in:
parent
f992a497c7
commit
e65ec752ce
|
@ -462,7 +462,6 @@ static void set_audio(struct tuner *t)
|
||||||
char* mode;
|
char* mode;
|
||||||
|
|
||||||
t->tda827x_lpsel = 0;
|
t->tda827x_lpsel = 0;
|
||||||
mode = "xx";
|
|
||||||
if (t->std & V4L2_STD_MN) {
|
if (t->std & V4L2_STD_MN) {
|
||||||
t->sgIF = 92;
|
t->sgIF = 92;
|
||||||
t->tda8290_easy_mode = 0x01;
|
t->tda8290_easy_mode = 0x01;
|
||||||
|
@ -492,6 +491,10 @@ static void set_audio(struct tuner *t)
|
||||||
t->sgIF = 20;
|
t->sgIF = 20;
|
||||||
t->tda8290_easy_mode = 0x40;
|
t->tda8290_easy_mode = 0x40;
|
||||||
mode = "LC";
|
mode = "LC";
|
||||||
|
} else {
|
||||||
|
t->sgIF = 124;
|
||||||
|
t->tda8290_easy_mode = 0x10;
|
||||||
|
mode = "xx";
|
||||||
}
|
}
|
||||||
tuner_dbg("setting tda8290 to system %s\n", mode);
|
tuner_dbg("setting tda8290 to system %s\n", mode);
|
||||||
}
|
}
|
||||||
|
@ -636,6 +639,7 @@ int tda8290_init(struct i2c_client *c)
|
||||||
t->has_signal = has_signal;
|
t->has_signal = has_signal;
|
||||||
t->standby = standby;
|
t->standby = standby;
|
||||||
t->tda827x_lpsel = 0;
|
t->tda827x_lpsel = 0;
|
||||||
|
t->mode = V4L2_TUNER_ANALOG_TV;
|
||||||
|
|
||||||
tda8290_init_tuner(c);
|
tda8290_init_tuner(c);
|
||||||
tda8290_init_if(c);
|
tda8290_init_if(c);
|
||||||
|
|
Loading…
Reference in New Issue