[PATCH] dvb: nxt200x: check callback fix
Check that a callback (set_ts_params) is set before calling it. Signed-off-by: Michael Krufky <mkrufky@m1k.net> Cc: Johannes Stezenbach <js@linuxtv.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
04a45929e7
commit
c6dd2d5d61
1 changed files with 4 additions and 2 deletions
|
@ -557,14 +557,16 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
|
||||||
case QAM_256:
|
case QAM_256:
|
||||||
/* Set punctured clock for QAM */
|
/* Set punctured clock for QAM */
|
||||||
/* This is just a guess since I am unable to test it */
|
/* 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 */
|
/* set to use cable input */
|
||||||
buf[3] |= 0x08;
|
buf[3] |= 0x08;
|
||||||
break;
|
break;
|
||||||
case VSB_8:
|
case VSB_8:
|
||||||
/* Set non-punctured clock for VSB */
|
/* 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;
|
break;
|
||||||
default:
|
default:
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue