[media] dvb_core: export function to perform retune
authorAntti Palosaari <crope@iki.fi>
Wed, 15 Aug 2012 01:21:04 +0000 (22:21 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 15 Aug 2012 22:15:45 +0000 (19:15 -0300)
We need to retune when resume from suspend.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb-core/dvb_frontend.c
drivers/media/dvb-core/dvb_frontend.h

index 12e5eb1fff765b1bea541caa3065aa81d2710b9b..5fb19eae5a8211a9838f306b60c485eed152963a 100644 (file)
@@ -307,6 +307,15 @@ void dvb_frontend_reinitialise(struct dvb_frontend *fe)
 }
 EXPORT_SYMBOL(dvb_frontend_reinitialise);
 
+void dvb_frontend_retune(struct dvb_frontend *fe)
+{
+       struct dvb_frontend_private *fepriv = fe->frontend_priv;
+
+       fepriv->state = FESTATE_RETUNE;
+       dvb_frontend_wakeup(fe);
+}
+EXPORT_SYMBOL(dvb_frontend_retune);
+
 static void dvb_frontend_swzigzag_update_delay(struct dvb_frontend_private *fepriv, int locked)
 {
        int q2;
index de410cc94fbb474f5ffa9a8cbd403848766e66c1..58f6b4c16b40f76c1b7cb0dd69e9a5a9ea1ff231 100644 (file)
@@ -418,6 +418,7 @@ extern int dvb_unregister_frontend(struct dvb_frontend *fe);
 extern void dvb_frontend_detach(struct dvb_frontend *fe);
 
 extern void dvb_frontend_reinitialise(struct dvb_frontend *fe);
+extern void dvb_frontend_retune(struct dvb_frontend *fe);
 
 extern void dvb_frontend_sleep_until(struct timeval *waketime, u32 add_usec);
 extern s32 timeval_usec_diff(struct timeval lasttime, struct timeval curtime);