linux_dsm_epyc7002/drivers/media/pci/cx88
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
..
cx88-alsa.c media: cx88: make snd_kcontrol_new const 2017-08-20 08:25:27 -04:00
cx88-blackbird.c media: v4l2-dev: convert VFL_TYPE_* into an enum 2017-12-18 11:49:40 -05:00
cx88-cards.c media: add tuner standby op, use where needed 2018-03-21 12:05:39 -04:00
cx88-core.c [media] cx88: convert struct cx88_core.refcount from atomic_t to refcount_t 2017-04-05 15:25:54 -03:00
cx88-dsp.c [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx88-dvb.c media: add tuner standby op, use where needed 2018-03-21 12:05:39 -04:00
cx88-i2c.c [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx88-input.c media: pci: cx88-input: use 64-bit arithmetic instead of 32-bit 2018-02-26 08:08:46 -05:00
cx88-mpeg.c [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx88-reg.h [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx88-tvaudio.c [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx88-vbi.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cx88-video.c media: v4l2-dev: convert VFL_TYPE_* into an enum 2017-12-18 11:49:40 -05:00
cx88-vp3054-i2c.c [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx88-vp3054-i2c.h [media] cx88: make checkpatch.pl happy 2016-11-25 07:50:20 -02:00
cx88.h media: v4l2-dev: convert VFL_TYPE_* into an enum 2017-12-18 11:49:40 -05:00
Kconfig [media] cx88: remove dependency on btcx-risc 2014-11-03 08:29:51 -02:00
Makefile media: don't include drivers/media/i2c at cflags 2017-12-28 14:14:09 -05:00