Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357546
b: refs/heads/master
c: db5c05b
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Feb 8, 2013
1 parent 03da734 commit cbebddf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 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: 0917a60430cdd4b5d3505c240a04bb0f5927c74b
refs/heads/master: db5c05b2a1c02e401778de348451bae49b65806e
17 changes: 4 additions & 13 deletions trunk/drivers/media/tuners/mxl5007t.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,10 @@ 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 @@ -896,20 +900,7 @@ 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 cbebddf

Please sign in to comment.