if (!dev)
return 0;
+ pr_info("Suspend\n");
+
au0828_rc_suspend(dev);
au0828_v4l2_suspend(dev);
au0828_dvb_suspend(dev);
if (!dev)
return 0;
+ pr_info("Resume\n");
+
/* Power Up the bridge */
au0828_write(dev, REG_600, 1 << 4);
struct au0828_dvb *dvb = &dev->dvb;
if (dvb && dev->urb_streaming) {
+ pr_info("stopping DVB\n");
+
cancel_work_sync(&dev->restart_streaming);
/* Stop transport */
struct au0828_dvb *dvb = &dev->dvb;
if (dvb && dev->urb_streaming) {
+ pr_info("resuming DVB\n");
+
au0828_set_frontend(dvb->frontend);
/* Start transport */
if (!ir)
return 0;
+ pr_info("Stopping RC\n");
+
cancel_delayed_work_sync(&ir->work);
/* Disable IR */
if (!ir)
return 0;
+ pr_info("Restarting RC\n");
+
/* Enable IR */
au8522_rc_set(ir, 0xe0, 1 << 4);
struct urb *urb;
int i;
+ pr_info("stopping V4L2\n");
+
if (dev->stream_state == STREAM_ON) {
+ pr_info("stopping V4L2 active URBs\n");
au0828_analog_stream_disable(dev);
/* stop urbs */
for (i = 0; i < dev->isoc_ctl.num_bufs; i++) {
{
int i, rc;
+ pr_info("restarting V4L2\n");
+
if (dev->stream_state == STREAM_ON) {
au0828_stream_interrupt(dev);
au0828_init_tuner(dev);