linux_dsm_epyc7002/drivers/media/pci
Hans Verkuil 3aab15af9a media: add tuner standby op, use where needed
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>
2018-03-21 12:05:39 -04:00
..
b2c2 media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
bt8xx vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
cobalt media: cobalt: add SPDX license info 2018-02-14 13:15:33 -05:00
cx18 media: s5h14*.h: fix typos for CONTINUOUS 2018-03-06 05:15:02 -05:00
cx88 media: add tuner standby op, use where needed 2018-03-21 12:05:39 -04:00
cx23885 media: add tuner standby op, use where needed 2018-03-21 12:05:39 -04:00
cx25821 media: cx25821: prevent out-of-bounds read on array card 2018-02-26 08:00:06 -05:00
ddbridge media: ddbridge: use common DVB I2C client handling helpers 2018-03-08 06:06:51 -05:00
dm1105 media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
dt3155 media: pci: make video_device const 2017-08-27 08:44:58 -04:00
intel media: intel-ipu3: cio2: Use SPDX license headers 2018-02-23 02:28:18 -05:00
ivtv media: ivtv: remove ivtv-alsa-mixer 2018-02-26 08:11:42 -05:00
mantis media: mantis: remove mantis_vp3028.c/mantis_vp3028.h 2018-03-06 08:21:35 -05:00
meye vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
netup_unidvb media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
ngene media: ngene: use common DVB I2C client handling helpers 2018-03-08 06:06:51 -05:00
pluto2 media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
pt1 media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
pt3 media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
saa7134 media: add tuner standby op, use where needed 2018-03-21 12:05:39 -04:00
saa7146 media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
saa7164 media: s5h14*.h: fix typos for CONTINUOUS 2018-03-06 05:15:02 -05:00
smipcie media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
solo6x10 media: solo6x10: use ktime_get_ts64() for time sync 2017-12-08 11:21:29 -05:00
sta2x11 media: sta2x11: document missing function parameters 2017-11-30 04:18:55 -05:00
ttpci media: dvb: update buffer mmaped flags and frame counter 2018-02-23 11:44:08 -05:00
tw68 media: tw68: fix kernel-doc markups 2017-11-30 04:18:56 -05:00
tw686x media updates for v4.15-rc1 2017-11-15 20:30:12 -08:00
tw5864 media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
zoran vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
Kconfig media: intel-ipu3: cio2: add new MIPI-CSI2 driver 2017-12-29 07:00:51 -05:00
Makefile media: intel-ipu3: cio2: add new MIPI-CSI2 driver 2017-12-29 07:00:51 -05:00