提交 2fd93396 编写于 作者: D Darron Broad 提交者: Mauro Carvalho Chehab

V4L/DVB (9915): cx24116: fix retune regression introduced in 70ee86a7c630

Thanks to AKPM for spotting this.

Cc: Steven Toth <stoth@hauppauge.com>
Signed-off-by: NDarron Broad <darron@kewl.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 3569476d
...@@ -1207,7 +1207,7 @@ static int cx24116_set_frontend(struct dvb_frontend *fe, ...@@ -1207,7 +1207,7 @@ static int cx24116_set_frontend(struct dvb_frontend *fe,
struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct cx24116_cmd cmd; struct cx24116_cmd cmd;
fe_status_t tunerstat; fe_status_t tunerstat;
int i, status, ret, retune; int i, status, ret, retune = 1;
dprintk("%s()\n", __func__); dprintk("%s()\n", __func__);
...@@ -1224,7 +1224,6 @@ static int cx24116_set_frontend(struct dvb_frontend *fe, ...@@ -1224,7 +1224,6 @@ static int cx24116_set_frontend(struct dvb_frontend *fe,
/* Pilot doesn't exist in DVB-S, turn bit off */ /* Pilot doesn't exist in DVB-S, turn bit off */
state->dnxt.pilot_val = CX24116_PILOT_OFF; state->dnxt.pilot_val = CX24116_PILOT_OFF;
retune = 1;
/* DVB-S only supports 0.35 */ /* DVB-S only supports 0.35 */
if (c->rolloff != ROLLOFF_35) { if (c->rolloff != ROLLOFF_35) {
...@@ -1252,7 +1251,7 @@ static int cx24116_set_frontend(struct dvb_frontend *fe, ...@@ -1252,7 +1251,7 @@ static int cx24116_set_frontend(struct dvb_frontend *fe,
case PILOT_AUTO: /* Not supported but emulated */ case PILOT_AUTO: /* Not supported but emulated */
state->dnxt.pilot_val = (c->modulation == QPSK) state->dnxt.pilot_val = (c->modulation == QPSK)
? CX24116_PILOT_OFF : CX24116_PILOT_ON; ? CX24116_PILOT_OFF : CX24116_PILOT_ON;
retune = 2; retune++;
break; break;
case PILOT_OFF: case PILOT_OFF:
state->dnxt.pilot_val = CX24116_PILOT_OFF; state->dnxt.pilot_val = CX24116_PILOT_OFF;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册