Skip to content

Commit

Permalink
[media] ds3000: wrong hardware tune function implemented
Browse files Browse the repository at this point in the history
It is taken from another tree, where it is modified.
Patch to fix that

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Igor M. Liplianin authored and Mauro Carvalho Chehab committed Mar 21, 2011
1 parent 3b30e0a commit 738e8ff
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions drivers/media/dvb/frontends/ds3000.c
Original file line number Diff line number Diff line change
Expand Up @@ -1220,9 +1220,20 @@ static int ds3000_set_frontend(struct dvb_frontend *fe,
}

static int ds3000_tune(struct dvb_frontend *fe,
struct dvb_frontend_parameters *p)
struct dvb_frontend_parameters *p,
unsigned int mode_flags,
unsigned int *delay,
fe_status_t *status)
{
return ds3000_set_frontend(fe, p);
if (p) {
int ret = ds3000_set_frontend(fe, p);
if (ret)
return ret;
}

*delay = HZ / 5;

return ds3000_read_status(fe, status);
}

static enum dvbfe_algo ds3000_get_algo(struct dvb_frontend *fe)
Expand Down

0 comments on commit 738e8ff

Please sign in to comment.