linux_dsm_epyc7002/drivers/media/pci/cx23885
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
..
altera-ci.c media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
altera-ci.h [media] cx23885: convert it to use pr_foo() macros 2016-11-18 08:09:36 -02:00
cimax2.c media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cimax2.h media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
cx23885-417.c media: cx23885: add const to v4l2_file_operations structure 2017-07-19 14:56:41 -04:00
cx23885-alsa.c media: pci: make snd_pcm_hardware const 2017-08-20 08:05:21 -04:00
cx23885-av.c [media] cx23885: uninitialized variable in cx23885_av_work_handler() 2016-04-13 17:10:32 -03:00
cx23885-av.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
cx23885-cards.c media: cx23885: Set subdev host data to clk_freq pointer 2018-03-07 04:06:20 -05:00
cx23885-core.c media: add tuner standby op, use where needed 2018-03-21 12:05:39 -04:00
cx23885-dvb.c media: add tuner standby op, use where needed 2018-03-21 12:05:39 -04:00
cx23885-f300.c [media] cx23885: convert it to use pr_foo() macros 2016-11-18 08:09:36 -02:00
cx23885-f300.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cx23885-i2c.c media: pci: make i2c_client const 2017-09-23 08:28:03 -04:00
cx23885-input.c media: cx23885: Add support for Hauppauge PCIe HVR1265 K4 2018-03-06 06:03:26 -05:00
cx23885-input.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
cx23885-ioctl.c [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
cx23885-ioctl.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
cx23885-ir.c [media] cx23885: convert it to use pr_foo() macros 2016-11-18 08:09:36 -02:00
cx23885-ir.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
cx23885-reg.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
cx23885-vbi.c media: cx23885/saa7134: make vb2_ops const 2017-10-27 14:12:44 +02:00
cx23885-video.c media: cx23885: Add support for Hauppauge PCIe HVR1265 K4 2018-03-06 06:03:26 -05:00
cx23885-video.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
cx23885.h media: cx23885: Add support for new Hauppauge QuadHD (885) 2018-03-06 06:04:36 -05:00
cx23888-ir.c media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cx23888-ir.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
Kconfig [media] cx23885: add support for ViewCast 260e and 460e 2015-12-18 13:36:43 -02:00
Makefile media: don't include drivers/media/i2c at cflags 2017-12-28 14:14:09 -05:00
netup-eeprom.c [media] cx23885: convert it to use pr_foo() macros 2016-11-18 08:09:36 -02:00
netup-eeprom.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
netup-init.c [media] cx23885: convert it to use pr_foo() macros 2016-11-18 08:09:36 -02:00
netup-init.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00