The patch number 10086 was added via Guennadi Liakhovetski 
<g.liakhovet...@gmx.de>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        v4l-dvb-maintai...@linuxtv.org

------

From: Kuninori Morimoto  <morimoto.kunin...@renesas.com>
Add new set_std function on soc_camera

This patch presents new method to be able to check v4l2_std_id

Signed-off-by: Kuninori Morimoto <morimoto.kunin...@renesas.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovet...@gmx.de>
---
 drivers/media/video/soc_camera.c |    9 ++++++++-
 include/media/soc_camera.h       |    1 +
 2 files changed, 9 insertions(+), 1 deletions(-)


---

 linux/drivers/media/video/soc_camera.c |    9 ++++++++-
 linux/include/media/soc_camera.h       |    1 +
 2 files changed, 9 insertions(+), 1 deletion(-)

diff -r f888b2ff0412 -r 91a1ec137183 linux/drivers/media/video/soc_camera.c
--- a/linux/drivers/media/video/soc_camera.c    Thu Dec 18 16:45:33 2008 +0100
+++ b/linux/drivers/media/video/soc_camera.c    Thu Dec 18 16:46:45 2008 +0100
@@ -153,7 +153,14 @@ static int soc_camera_s_input(struct fil
 
 static int soc_camera_s_std(struct file *file, void *priv, v4l2_std_id *a)
 {
-       return 0;
+       struct soc_camera_file *icf = file->private_data;
+       struct soc_camera_device *icd = icf->icd;
+       int ret = 0;
+
+       if (icd->ops->set_std)
+               ret = icd->ops->set_std(icd, a);
+
+       return ret;
 }
 
 static int soc_camera_reqbufs(struct file *file, void *priv,
diff -r f888b2ff0412 -r 91a1ec137183 linux/include/media/soc_camera.h
--- a/linux/include/media/soc_camera.h  Thu Dec 18 16:45:33 2008 +0100
+++ b/linux/include/media/soc_camera.h  Thu Dec 18 16:46:45 2008 +0100
@@ -165,6 +165,7 @@ struct soc_camera_ops {
        int (*set_bus_param)(struct soc_camera_device *, unsigned long);
        int (*get_chip_id)(struct soc_camera_device *,
                           struct v4l2_chip_ident *);
+       int (*set_std)(struct soc_camera_device *, v4l2_std_id *);
 #ifdef CONFIG_VIDEO_ADV_DEBUG
        int (*get_register)(struct soc_camera_device *, struct v4l2_register *);
        int (*set_register)(struct soc_camera_device *, struct v4l2_register *);


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/91a1ec13718396bf6c1073494812875d3eed072f

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to