diff options
-rw-r--r-- | drivers/media/dvb/frontends/cx24123.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/cx24123.c b/drivers/media/dvb/frontends/cx24123.c index 815f0aaf1d4f..6fd44a125b13 100644 --- a/drivers/media/dvb/frontends/cx24123.c +++ b/drivers/media/dvb/frontends/cx24123.c | |||
@@ -903,6 +903,29 @@ static int cx24123_set_tone(struct dvb_frontend* fe, fe_sec_tone_mode_t tone) | |||
903 | return 0; | 903 | return 0; |
904 | } | 904 | } |
905 | 905 | ||
906 | static int cx24123_tune(struct dvb_frontend* fe, | ||
907 | struct dvb_frontend_parameters* params, | ||
908 | unsigned int mode_flags, | ||
909 | int *delay, | ||
910 | fe_status_t *status) | ||
911 | { | ||
912 | int retval = 0; | ||
913 | |||
914 | if (params != NULL) | ||
915 | retval = cx24123_set_frontend(fe, params); | ||
916 | |||
917 | if (!(mode_flags & FE_TUNE_MODE_ONESHOT)) | ||
918 | cx24123_read_status(fe, status); | ||
919 | *delay = HZ/10; | ||
920 | |||
921 | return retval; | ||
922 | } | ||
923 | |||
924 | static int cx24123_get_algo(struct dvb_frontend *fe) | ||
925 | { | ||
926 | return 1; //FE_ALGO_HW | ||
927 | } | ||
928 | |||
906 | static void cx24123_release(struct dvb_frontend* fe) | 929 | static void cx24123_release(struct dvb_frontend* fe) |
907 | { | 930 | { |
908 | struct cx24123_state* state = fe->demodulator_priv; | 931 | struct cx24123_state* state = fe->demodulator_priv; |
@@ -986,6 +1009,8 @@ static struct dvb_frontend_ops cx24123_ops = { | |||
986 | .diseqc_send_burst = cx24123_diseqc_send_burst, | 1009 | .diseqc_send_burst = cx24123_diseqc_send_burst, |
987 | .set_tone = cx24123_set_tone, | 1010 | .set_tone = cx24123_set_tone, |
988 | .set_voltage = cx24123_set_voltage, | 1011 | .set_voltage = cx24123_set_voltage, |
1012 | .tune = cx24123_tune, | ||
1013 | .get_frontend_algo = cx24123_get_algo, | ||
989 | }; | 1014 | }; |
990 | 1015 | ||
991 | module_param(debug, int, 0644); | 1016 | module_param(debug, int, 0644); |