Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366680
b: refs/heads/master
c: 8c1285a
h: refs/heads/master
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Mar 21, 2013
1 parent 5925380 commit 7cf54ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 32 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ebb0662cee9e6d8f7110c1217a7bd14315fdd148
refs/heads/master: 8c1285a28084b5fa07a7842dd72a561f5c3b913e
32 changes: 1 addition & 31 deletions trunk/drivers/media/tuners/it913x.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,44 +401,14 @@ static int it9137_set_tuner(struct dvb_frontend *fe)
return (ret < 0) ? -ENODEV : 0;
}

static int it913x_fe_suspend(struct it913x_fe_state *state)
{
int ret = 0;
return 0;
#if 0
int ret, i;
u8 b;

ret = it913x_write_reg(state, PRO_DMOD, SUSPEND_FLAG, 0x1);

ret |= it913x_write_reg(state, PRO_DMOD, TRIGGER_OFSM, 0x0);

for (i = 0; i < 128; i++) {
ret = it913x_read_reg(state, SUSPEND_FLAG, &b, 1);
if (ret < 0)
return -ENODEV;
if (b == 0)
break;

}

ret |= it913x_write_reg(state, PRO_DMOD, AFE_MEM0, 0x8);
/* Turn LED off */
ret |= it913x_write_reg(state, PRO_LINK, GPIOH3_O, 0x0);
#endif
ret |= it913x_fe_script_loader(state, it9137_tuner_off);

return (ret < 0) ? -ENODEV : 0;
}

/* Power sequence */
/* Power Up Tuner on -> Frontend suspend off -> Tuner clk on */
/* Power Down Frontend suspend on -> Tuner clk off -> Tuner off */

static int it913x_fe_sleep(struct dvb_frontend *fe)
{
struct it913x_fe_state *state = fe->tuner_priv;
return it913x_fe_suspend(state);
return it913x_fe_script_loader(state, it9137_tuner_off);
}

static int it913x_release(struct dvb_frontend *fe)
Expand Down

0 comments on commit 7cf54ef

Please sign in to comment.