summaryrefslogtreecommitdiff
path: root/linux/include/media/v4l2-subdev.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-04-01 08:49:59 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2009-04-01 08:49:59 +0200
commitc7f462c7cd345d35a4d2e493c82f589c6e5d1d2d (patch)
tree1dc8be9ffb926e372f4b0df53c9d1d3b467d919f /linux/include/media/v4l2-subdev.h
parenta022c34c8938f0c3a97840b5b3ceffa0ef41f775 (diff)
downloadmediapointer-dvb-s2-c7f462c7cd345d35a4d2e493c82f589c6e5d1d2d.tar.gz
mediapointer-dvb-s2-c7f462c7cd345d35a4d2e493c82f589c6e5d1d2d.tar.bz2
v4l2-subdev: move s_standby from core to tuner.
From: Hans Verkuil <hverkuil@xs4all.nl> s_standby is only used to put the tuner in powersaving mode, so move it from core to tuner. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/include/media/v4l2-subdev.h')
-rw-r--r--linux/include/media/v4l2-subdev.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/include/media/v4l2-subdev.h b/linux/include/media/v4l2-subdev.h
index 9a8535be1..c84ff88c9 100644
--- a/linux/include/media/v4l2-subdev.h
+++ b/linux/include/media/v4l2-subdev.h
@@ -96,14 +96,11 @@ struct v4l2_crystal_freq {
s_gpio: set GPIO pins. Very simple right now, might need to be extended with
a direction argument if needed.
-
- s_standby: puts tuner on powersaving state, disabling it, except for i2c.
*/
struct v4l2_subdev_core_ops {
int (*g_chip_ident)(struct v4l2_subdev *sd, struct v4l2_dbg_chip_ident *chip);
int (*log_status)(struct v4l2_subdev *sd);
int (*init)(struct v4l2_subdev *sd, u32 val);
- int (*s_standby)(struct v4l2_subdev *sd, u32 standby);
int (*reset)(struct v4l2_subdev *sd, u32 val);
int (*s_gpio)(struct v4l2_subdev *sd, u32 val);
int (*queryctrl)(struct v4l2_subdev *sd, struct v4l2_queryctrl *qc);
@@ -127,6 +124,8 @@ struct v4l2_subdev_core_ops {
s_type_addr: sets tuner type and its I2C addr.
s_config: sets tda9887 specific stuff, like port1, port2 and qss
+
+ s_standby: puts tuner on powersaving state, disabling it, except for i2c.
*/
struct v4l2_subdev_tuner_ops {
int (*s_mode)(struct v4l2_subdev *sd, enum v4l2_tuner_type);
@@ -138,6 +137,7 @@ struct v4l2_subdev_tuner_ops {
int (*s_std)(struct v4l2_subdev *sd, v4l2_std_id norm);
int (*s_type_addr)(struct v4l2_subdev *sd, struct tuner_setup *type);
int (*s_config)(struct v4l2_subdev *sd, const struct v4l2_priv_tun_config *config);
+ int (*s_standby)(struct v4l2_subdev *sd);
};
/* s_clock_freq: set the frequency (in Hz) of the audio clock output.