mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 07:34:06 +08:00
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>
This commit is contained in:
parent
96506a5086
commit
729cbafaca
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user