linux/drivers/media/usb/cx231xx
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
..
cx231xx-417.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
cx231xx-audio.c media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cx231xx-avcore.c media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cx231xx-cards.c media: cx231xx: Add second i2c demod to Hauppauge 975 2018-03-07 04:02:15 -05:00
cx231xx-conf-reg.h
cx231xx-core.c media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cx231xx-dif.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx231xx-dvb.c media: cx231xx: Add second i2c demod to Hauppauge 975 2018-03-07 04:02:15 -05:00
cx231xx-i2c.c media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cx231xx-input.c media: usb: add SPDX identifiers to some code I wrote 2017-12-11 07:41:11 -05:00
cx231xx-pcb-cfg.c [media] cx231xx: Improve the log message 2014-11-03 15:59:59 -02:00
cx231xx-pcb-cfg.h media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cx231xx-reg.h media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
cx231xx-vbi.c media: usb: fix spelling mistake: "synchronuously" -> "synchronously" 2017-11-07 03:47:09 -05:00
cx231xx-vbi.h media: cx231xx: make cx231xx_vbi_qops const 2017-10-31 06:37:49 -04:00
cx231xx-video.c media: add tuner standby op, use where needed 2018-03-21 12:05:39 -04:00
cx231xx.h media: cx231xx: Add second i2c demod client 2018-03-06 07:08:09 -05:00
Kconfig [media] cx231xx: Initial support Astrometa T2hybrid 2017-06-06 07:53:26 -03:00
Makefile media: don't include drivers/media/i2c at cflags 2017-12-28 14:14:09 -05:00