Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124010
b: refs/heads/master
c: 7bcbdf3
h: refs/heads/master
v: v3
  • Loading branch information
Arvo Jarve authored and Mauro Carvalho Chehab committed Dec 29, 2008
1 parent ad341b0 commit 9d5382a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 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: c59e7870fddbbc232221f92fb24958c605be404c
refs/heads/master: 7bcbdf386bdc2ea2bcd916a7b972ad7bca14db04
30 changes: 18 additions & 12 deletions trunk/drivers/media/dvb/dvb-core/dvb_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,27 +601,33 @@ static int dvb_frontend_thread(void *data)
* requesting a search with a new set of parameters
*/
if (fepriv->algo_status & DVBFE_ALGO_SEARCH_AGAIN) {
if (fe->ops.search)
if (fe->ops.search) {
fepriv->algo_status = fe->ops.search(fe, &fepriv->parameters);
/* We did do a search as was requested, the flags are
* now unset as well and has the flags wrt to search.
*/

fepriv->algo_status &= ~DVBFE_ALGO_SEARCH_AGAIN;
} else {
fepriv->algo_status &= ~DVBFE_ALGO_SEARCH_AGAIN;
}
}
/* Track the carrier if the search was successful */
if (fepriv->algo_status == DVBFE_ALGO_SEARCH_SUCCESS) {
if (fepriv->algo_status & DVBFE_ALGO_SEARCH_SUCCESS)
dprintk("%s: status = DVBFE_ALGO_SEARCH_SUCCESS\n", __func__);
if (fepriv->algo_status & DVBFE_ALGO_SEARCH_FAILED)
fepriv->algo_status |= DVBFE_ALGO_SEARCH_AGAIN;

fe->ops.read_status(fe, &s);
dvb_frontend_add_event(fe, s); /* update event list */
fepriv->status = s;
if (fe->ops.track)
fe->ops.track(fe, &fepriv->parameters);

} else {
fepriv->algo_status |= DVBFE_ALGO_SEARCH_AGAIN;
fepriv->delay = HZ / 2;
}
fe->ops.read_status(fe, &s);
if (s != fepriv->status) {
dvb_frontend_add_event(fe, s); /* update event list */
fepriv->status = s;
if (!(s & FE_HAS_LOCK)) {
fepriv->delay = HZ / 10;
fepriv->algo_status |= DVBFE_ALGO_SEARCH_AGAIN;
} else {
fepriv->delay = 60 * HZ;
}
}
break;
default:
Expand Down

0 comments on commit 9d5382a

Please sign in to comment.