summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Krufky <devnull@localhost>2005-10-27 05:04:55 +0000
committerMichael Krufky <devnull@localhost>2005-10-27 05:04:55 +0000
commite7aaa4aeb027638e3dbc80b6a77d12c2ff75d24b (patch)
tree3d6217af7d8a1e5245ffd358345a2343da35bcc5
parent56df4af406105d8206c3beb23121c872b01258c1 (diff)
downloadmediapointer-dvb-s2-e7aaa4aeb027638e3dbc80b6a77d12c2ff75d24b.tar.gz
mediapointer-dvb-s2-e7aaa4aeb027638e3dbc80b6a77d12c2ff75d24b.tar.bz2
Check that a callback (set_ts_params) is set before calling it.
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
-rw-r--r--linux/drivers/media/dvb/frontends/nxt200x.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/nxt200x.c b/linux/drivers/media/dvb/frontends/nxt200x.c
index 9688515e8..bd830b88c 100644
--- a/linux/drivers/media/dvb/frontends/nxt200x.c
+++ b/linux/drivers/media/dvb/frontends/nxt200x.c
@@ -557,14 +557,16 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
case QAM_256:
/* Set punctured clock for QAM */
/* This is just a guess since I am unable to test it */
- state->config->set_ts_params(fe, 1);
+ if (state->config->set_ts_params)
+ state->config->set_ts_params(fe, 1);
/* set to use cable input */
buf[3] |= 0x08;
break;
case VSB_8:
/* Set non-punctured clock for VSB */
- state->config->set_ts_params(fe, 0);
+ if (state->config->set_ts_params)
+ state->config->set_ts_params(fe, 0);
break;
default:
return -EINVAL;