diff options
Diffstat (limited to 'drivers/media/dvb/ttusb-dec/ttusbdecfe.c')
-rw-r--r-- | drivers/media/dvb/ttusb-dec/ttusbdecfe.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/drivers/media/dvb/ttusb-dec/ttusbdecfe.c b/drivers/media/dvb/ttusb-dec/ttusbdecfe.c index 443af24097f3..21260aad1e54 100644 --- a/drivers/media/dvb/ttusb-dec/ttusbdecfe.c +++ b/drivers/media/dvb/ttusb-dec/ttusbdecfe.c | |||
@@ -38,7 +38,17 @@ struct ttusbdecfe_state { | |||
38 | }; | 38 | }; |
39 | 39 | ||
40 | 40 | ||
41 | static int ttusbdecfe_read_status(struct dvb_frontend* fe, fe_status_t* status) | 41 | static int ttusbdecfe_dvbs_read_status(struct dvb_frontend *fe, |
42 | fe_status_t *status) | ||
43 | { | ||
44 | *status = FE_HAS_SIGNAL | FE_HAS_VITERBI | | ||
45 | FE_HAS_SYNC | FE_HAS_CARRIER | FE_HAS_LOCK; | ||
46 | return 0; | ||
47 | } | ||
48 | |||
49 | |||
50 | static int ttusbdecfe_dvbt_read_status(struct dvb_frontend *fe, | ||
51 | fe_status_t *status) | ||
42 | { | 52 | { |
43 | struct ttusbdecfe_state* state = fe->demodulator_priv; | 53 | struct ttusbdecfe_state* state = fe->demodulator_priv; |
44 | u8 b[] = { 0x00, 0x00, 0x00, 0x00, | 54 | u8 b[] = { 0x00, 0x00, 0x00, 0x00, |
@@ -251,7 +261,7 @@ static struct dvb_frontend_ops ttusbdecfe_dvbt_ops = { | |||
251 | 261 | ||
252 | .get_tune_settings = ttusbdecfe_dvbt_get_tune_settings, | 262 | .get_tune_settings = ttusbdecfe_dvbt_get_tune_settings, |
253 | 263 | ||
254 | .read_status = ttusbdecfe_read_status, | 264 | .read_status = ttusbdecfe_dvbt_read_status, |
255 | }; | 265 | }; |
256 | 266 | ||
257 | static struct dvb_frontend_ops ttusbdecfe_dvbs_ops = { | 267 | static struct dvb_frontend_ops ttusbdecfe_dvbs_ops = { |
@@ -273,7 +283,7 @@ static struct dvb_frontend_ops ttusbdecfe_dvbs_ops = { | |||
273 | 283 | ||
274 | .set_frontend = ttusbdecfe_dvbs_set_frontend, | 284 | .set_frontend = ttusbdecfe_dvbs_set_frontend, |
275 | 285 | ||
276 | .read_status = ttusbdecfe_read_status, | 286 | .read_status = ttusbdecfe_dvbs_read_status, |
277 | 287 | ||
278 | .diseqc_send_master_cmd = ttusbdecfe_dvbs_diseqc_send_master_cmd, | 288 | .diseqc_send_master_cmd = ttusbdecfe_dvbs_diseqc_send_master_cmd, |
279 | .set_voltage = ttusbdecfe_dvbs_set_voltage, | 289 | .set_voltage = ttusbdecfe_dvbs_set_voltage, |