diff options
author | Patrick Boettcher <devnull@localhost> | 2005-08-14 15:31:24 +0000 |
---|---|---|
committer | Patrick Boettcher <devnull@localhost> | 2005-08-14 15:31:24 +0000 |
commit | f298917ccd7cd74c18668b6a8f4b71b1bc518cd5 (patch) | |
tree | 442eb2135f2cf8d3d84a6a4d167e0f9b2f64fda6 /linux/drivers/media/dvb/frontends | |
parent | 95e4ed02d8fd299237263db54f8c0a0d97001026 (diff) | |
download | mediapointer-dvb-s2-f298917ccd7cd74c18668b6a8f4b71b1bc518cd5.tar.gz mediapointer-dvb-s2-f298917ccd7cd74c18668b6a8f4b71b1bc518cd5.tar.bz2 |
FIX: check if the callback is set, before calling it
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends')
-rw-r--r-- | linux/drivers/media/dvb/frontends/lgdt330x.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/lgdt330x.c b/linux/drivers/media/dvb/frontends/lgdt330x.c index 58bad7338..9d2e9940a 100644 --- a/linux/drivers/media/dvb/frontends/lgdt330x.c +++ b/linux/drivers/media/dvb/frontends/lgdt330x.c @@ -378,12 +378,14 @@ static int lgdt330x_set_parameters(struct dvb_frontend* fe, /* Select the requested mode */ i2c_write_demod_bytes(state, top_ctrl_cfg, sizeof(top_ctrl_cfg)); - state->config->set_ts_params(fe, 0); + if (state->config->set_ts_params) + state->config->set_ts_params(fe, 0); state->current_modulation = param->u.vsb.modulation; } /* Tune to the specified frequency */ - state->config->pll_set(fe, param); + if (state->config->pll_set) + state->config->pll_set(fe, param); /* Keep track of the new frequency */ /* FIXME this is the wrong way to do this... */ |