Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357534
b: refs/heads/master
c: 0a32377
h: refs/heads/master
v: v3
  • Loading branch information
Jose Alberto Reguero authored and Mauro Carvalho Chehab committed Feb 8, 2013
1 parent c6332f4 commit efd5704
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 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: 47ebe3f93250fce6f4eaa16309ae5eee9d4099b3
refs/heads/master: 0a3237704dec476be3cdfbe8fc9df9cc65b14442
17 changes: 13 additions & 4 deletions trunk/drivers/media/tuners/mxl5007t.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,10 +531,6 @@ static int mxl5007t_tuner_init(struct mxl5007t_state *state,
struct reg_pair_t *init_regs;
int ret;

ret = mxl5007t_soft_reset(state);
if (mxl_fail(ret))
goto fail;

/* calculate initialization reg array */
init_regs = mxl5007t_calc_init_regs(state, mode);

Expand Down Expand Up @@ -900,7 +896,20 @@ struct dvb_frontend *mxl5007t_attach(struct dvb_frontend *fe,
/* existing tuner instance */
break;
}

if (fe->ops.i2c_gate_ctrl)
fe->ops.i2c_gate_ctrl(fe, 1);

ret = mxl5007t_soft_reset(state);

if (fe->ops.i2c_gate_ctrl)
fe->ops.i2c_gate_ctrl(fe, 0);

if (mxl_fail(ret))
goto fail;

fe->tuner_priv = state;

mutex_unlock(&mxl5007t_list_mutex);

memcpy(&fe->ops.tuner_ops, &mxl5007t_tuner_ops,
Expand Down

0 comments on commit efd5704

Please sign in to comment.