mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 16:35:13 +07:00
3aab15af9a
The v4l2_subdev core s_power op was used for two different things: power on/off sensors or video decoders/encoders and to put a tuner in standby (and only the tuner!). There is no 'tuner wakeup' op, that's done automatically when the tuner is accessed. The danger with calling (s_power, 0) to put a tuner into standby is that it is usually broadcast for all subdevs. So a video receiver subdev that supports s_power will also be powered off, and since there is no corresponding (s_power, 1) they will never be powered on again. In addition, this is specifically meant for tuners only since they draw the most current. This patch adds a new tuner op called 'standby' and replaces all calls to (core, s_power, 0) by (tuner, standby). This prevents confusion between the two uses of s_power. Note that there is no overlap: bridge drivers either just want to put the tuner into standby, or they deal with powering on/off sensors. Never both. This also makes it easier to replace s_power for the remaining bridge drivers with some PM code later. Whether we want something cleaner for tuners in the future is a separate topic. There is a lot of legacy code surrounding tuners, and I am very hesitant about making changes there. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> |
||
---|---|---|
.. | ||
altera-ci.c | ||
altera-ci.h | ||
cimax2.c | ||
cimax2.h | ||
cx23885-417.c | ||
cx23885-alsa.c | ||
cx23885-av.c | ||
cx23885-av.h | ||
cx23885-cards.c | ||
cx23885-core.c | ||
cx23885-dvb.c | ||
cx23885-f300.c | ||
cx23885-f300.h | ||
cx23885-i2c.c | ||
cx23885-input.c | ||
cx23885-input.h | ||
cx23885-ioctl.c | ||
cx23885-ioctl.h | ||
cx23885-ir.c | ||
cx23885-ir.h | ||
cx23885-reg.h | ||
cx23885-vbi.c | ||
cx23885-video.c | ||
cx23885-video.h | ||
cx23885.h | ||
cx23888-ir.c | ||
cx23888-ir.h | ||
Kconfig | ||
Makefile | ||
netup-eeprom.c | ||
netup-eeprom.h | ||
netup-init.c | ||
netup-init.h |