From: Sakari Ailus <sakari.ailus@nokia.com>
To: hverkuil@xs4all.nl, video4linux-list@redhat.com
Cc: vimarsh.zutshi@nokia.com, tuukka.o.toivonen@nokia.com, hnagalla@ti.com
Subject: [PATCH 4/6] V4L: Int if: Define new power state changes
Date: Tue, 7 Oct 2008 19:18:14 +0300 [thread overview]
Message-ID: <12233962962059-git-send-email-sakari.ailus@nokia.com> (raw)
In-Reply-To: <12233962962104-git-send-email-sakari.ailus@nokia.com>
Use enum v4l2_power instead of int as second argument to
vidioc_int_s_power. The new functionality is that standby state is also
recognised.
Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
---
include/media/v4l2-int-device.h | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/include/media/v4l2-int-device.h b/include/media/v4l2-int-device.h
index cee941c..3351dcf 100644
--- a/include/media/v4l2-int-device.h
+++ b/include/media/v4l2-int-device.h
@@ -96,6 +96,12 @@ int v4l2_int_ioctl_1(struct v4l2_int_device *d, int cmd, void *arg);
*
*/
+enum v4l2_power {
+ V4L2_POWER_OFF = 0,
+ V4L2_POWER_ON,
+ V4L2_POWER_STANDBY,
+};
+
/* Slave interface type. */
enum v4l2_if_type {
/*
@@ -185,7 +191,7 @@ enum v4l2_int_ioctl_num {
vidioc_int_dev_init_num = 1000,
/* Delinitialise the device at slave detach. */
vidioc_int_dev_exit_num,
- /* Set device power state: 0 is off, non-zero is on. */
+ /* Set device power state. */
vidioc_int_s_power_num,
/*
* Get slave private data, e.g. platform-specific slave
@@ -277,7 +283,7 @@ V4L2_INT_WRAPPER_1(s_parm, struct v4l2_streamparm, *);
V4L2_INT_WRAPPER_0(dev_init);
V4L2_INT_WRAPPER_0(dev_exit);
-V4L2_INT_WRAPPER_1(s_power, int, );
+V4L2_INT_WRAPPER_1(s_power, enum v4l2_power, );
V4L2_INT_WRAPPER_1(g_priv, void, *);
V4L2_INT_WRAPPER_1(g_ifparm, struct v4l2_ifparm, *);
V4L2_INT_WRAPPER_1(g_needs_reset, void, *);
--
1.5.0.6
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
next prev parent reply other threads:[~2008-10-07 16:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-06 11:07 [PATCH 0/6] V4L changes for OMAP 3 camera, try 2 Sakari Ailus
[not found] ` <12232912722008-git-send-email-sakari.ailus@nokia.com>
2008-10-06 11:07 ` [PATCH] V4L: Int if: Add cropcap, g_crop and s_crop commands Sakari Ailus
2008-10-06 11:07 ` [PATCH] V4L: Add 10-bit RAW Bayer formats Sakari Ailus
2008-10-06 11:07 ` [PATCH] V4L: Int if: Define new power state changes Sakari Ailus
2008-10-06 11:07 ` [PATCH] V4L: Int if: Export more interfaces to modules Sakari Ailus
2008-10-06 11:07 ` [PATCH] V4L: Int if: Add enum_framesizes and enum_frameintervals ioctls Sakari Ailus
2008-10-06 16:38 ` [PATCH] V4L: Int if: Define new power state changes Hans Verkuil
2008-10-07 16:17 ` Sakari Ailus
[not found] ` <12233962961256-git-send-email-sakari.ailus@nokia.com>
2008-10-07 16:18 ` [PATCH 2/6] V4L: Int if: Add cropcap, g_crop and s_crop commands Sakari Ailus
2008-10-07 16:18 ` [PATCH 3/6] V4L: Add 10-bit RAW Bayer formats Sakari Ailus
2008-10-07 16:18 ` Sakari Ailus [this message]
2008-10-07 16:18 ` [PATCH 5/6] V4L: Int if: Export more interfaces to modules Sakari Ailus
2008-10-07 16:18 ` [PATCH 6/6] V4L: Int if: Add enum_framesizes and enum_frameintervals ioctls Sakari Ailus
2008-10-08 6:09 ` [PATCH] V4L: Int if: Define new power state changes Hans Verkuil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=12233962962059-git-send-email-sakari.ailus@nokia.com \
--to=sakari.ailus@nokia.com \
--cc=hnagalla@ti.com \
--cc=hverkuil@xs4all.nl \
--cc=tuukka.o.toivonen@nokia.com \
--cc=video4linux-list@redhat.com \
--cc=vimarsh.zutshi@nokia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox