aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/tuner-xc2028.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c
index cc6fa2fa859b..8f9ccaee9bb5 100644
--- a/drivers/media/video/tuner-xc2028.c
+++ b/drivers/media/video/tuner-xc2028.c
@@ -929,6 +929,28 @@ static int xc2028_set_params(struct dvb_frontend *fe,
929 929
930} 930}
931 931
932static int xc2028_sleep(struct dvb_frontend *fe)
933{
934 struct xc2028_data *priv = fe->tuner_priv;
935 int rc = 0;
936
937 tuner_dbg("%s called\n", __FUNCTION__);
938
939 mutex_lock(&priv->lock);
940
941 if (priv->firm_version < 0x0202)
942 rc = send_seq(priv, {0x00, 0x08, 0x00, 0x00});
943 else
944 rc = send_seq(priv, {0x80, 0x08, 0x00, 0x00});
945
946 priv->cur_fw.type = 0; /* need firmware reload */
947
948 mutex_unlock(&priv->lock);
949
950 return rc;
951}
952
953
932static int xc2028_dvb_release(struct dvb_frontend *fe) 954static int xc2028_dvb_release(struct dvb_frontend *fe)
933{ 955{
934 struct xc2028_data *priv = fe->tuner_priv; 956 struct xc2028_data *priv = fe->tuner_priv;
@@ -1009,6 +1031,7 @@ static const struct dvb_tuner_ops xc2028_dvb_tuner_ops = {
1009 .get_frequency = xc2028_get_frequency, 1031 .get_frequency = xc2028_get_frequency,
1010 .get_rf_strength = xc2028_signal, 1032 .get_rf_strength = xc2028_signal,
1011 .set_params = xc2028_set_params, 1033 .set_params = xc2028_set_params,
1034 .sleep = xc2028_sleep,
1012 1035
1013}; 1036};
1014 1037