Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c9fc9d5 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (11368): v4l2-subdev: move s_standby from core to tuner.



s_standby is only used to put the tuner in powersaving mode, so move it
from core to tuner.

Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 78a3b4db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2125,7 +2125,7 @@ static int cx231xx_v4l2_close(struct file *filp)
		}

		/* Save some power by putting tuner to sleep */
		call_all(dev, core, s_standby, 0);
		call_all(dev, tuner, s_standby);

		/* do this before setting alternate! */
		cx231xx_uninit_isoc(dev);
+1 −1
Original line number Diff line number Diff line
@@ -875,7 +875,7 @@ static int cx23885_dev_setup(struct cx23885_dev *dev)
	cx23885_i2c_register(&dev->i2c_bus[1]);
	cx23885_i2c_register(&dev->i2c_bus[2]);
	cx23885_card_setup(dev);
	call_all(dev, core, s_standby, 0);
	call_all(dev, tuner, s_standby);
	cx23885_ir_init(dev);

	if (cx23885_boards[dev->board].porta == CX23885_ANALOG_VIDEO) {
+1 −1
Original line number Diff line number Diff line
@@ -673,7 +673,7 @@ static int dvb_register(struct cx23885_tsport *port)
	fe0->dvb.frontend->callback = cx23885_tuner_callback;

	/* Put the analog decoder in standby to keep it quiet */
	call_all(dev, core, s_standby, 0);
	call_all(dev, tuner, s_standby);

	if (fe0->dvb.frontend->ops.analog_ops.standby)
		fe0->dvb.frontend->ops.analog_ops.standby(fe0->dvb.frontend);
+1 −1
Original line number Diff line number Diff line
@@ -3049,7 +3049,7 @@ static void cx88_card_setup(struct cx88_core *core)
			    ctl.fname);
		call_all(core, tuner, s_config, &xc2028_cfg);
	}
	call_all(core, core, s_standby, 0);
	call_all(core, tuner, s_standby);
}

/* ------------------------------------------------------------------ */
+1 −1
Original line number Diff line number Diff line
@@ -1168,7 +1168,7 @@ static int dvb_register(struct cx8802_dev *dev)
		fe1->dvb.frontend->ops.ts_bus_ctrl = cx88_dvb_bus_ctrl;

	/* Put the analog decoder in standby to keep it quiet */
	call_all(core, core, s_standby, 0);
	call_all(core, tuner, s_standby);

	/* register everything */
	return videobuf_dvb_register_bus(&dev->frontends, THIS_MODULE, dev,
Loading