aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends
diff options
context:
space:
mode:
authorAndreas Regel <andreas.regel@gmx.de>2010-01-05 17:21:02 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-02-26 13:10:36 -0500
commit729cbafaca5e24b4fa0b42e7b0f79cb53f2ebad5 (patch)
treef8512de23cdcb84633517776e80fb8d625c6bbae /drivers/media/dvb/frontends
parent96506a5086d0e9fd7332d6da74f115fa37bb58c6 (diff)
V4L/DVB (13977): [STV090x] Test for valid frequency before starting to tune
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>
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r--drivers/media/dvb/frontends/stv090x.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/stv090x.c b/drivers/media/dvb/frontends/stv090x.c
index e903334a8323..3bdbce21de9e 100644
--- 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
3393 struct stv090x_state *state = fe->demodulator_priv; 3393 struct stv090x_state *state = fe->demodulator_priv;
3394 struct dtv_frontend_properties *props = &fe->dtv_property_cache; 3394 struct dtv_frontend_properties *props = &fe->dtv_property_cache;
3395 3395
3396 if (p->frequency == 0)
3397 return DVBFE_ALGO_SEARCH_INVALID;
3398
3396 state->delsys = props->delivery_system; 3399 state->delsys = props->delivery_system;
3397 state->frequency = p->frequency; 3400 state->frequency = p->frequency;
3398 state->srate = p->u.qpsk.symbol_rate; 3401 state->srate = p->u.qpsk.symbol_rate;