projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96506a5
)
V4L/DVB (13977): [STV090x] Test for valid frequency before starting to tune
author
Andreas Regel
<andreas.regel@gmx.de>
Tue, 5 Jan 2010 22:21:02 +0000
(19:21 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:36 +0000
(15:10 -0300)
Signed-off-by: Andreas Regel <andreas.regel@gmx.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stv090x.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/frontends/stv090x.c
b/drivers/media/dvb/frontends/stv090x.c
index e903334a8323c672503d635d7aa3e4d8778e98cc..3bdbce21de9e5184d5dd9a5cb0dc4b12a5df167c 100644
(file)
--- a/
drivers/media/dvb/frontends/stv090x.c
+++ b/
drivers/media/dvb/frontends/stv090x.c
@@
-3393,6
+3393,9
@@
static enum dvbfe_search stv090x_search(struct dvb_frontend *fe, struct dvb_fron
struct stv090x_state *state = fe->demodulator_priv;
struct dtv_frontend_properties *props = &fe->dtv_property_cache;
+ if (p->frequency == 0)
+ return DVBFE_ALGO_SEARCH_INVALID;
+
state->delsys = props->delivery_system;
state->frequency = p->frequency;
state->srate = p->u.qpsk.symbol_rate;