diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2008-12-18 16:46:45 +0100 |
---|---|---|
committer | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2008-12-18 16:46:45 +0100 |
commit | b8f8d07610fc89fb72fcd5aec751febfcefa3dc7 (patch) | |
tree | 9ecd7c564122120b4e0674ea996a4044343c0b68 /linux/drivers | |
parent | a9e35d7bb7815127898ada251d5f834389d1aec9 (diff) | |
download | mediapointer-dvb-s2-b8f8d07610fc89fb72fcd5aec751febfcefa3dc7.tar.gz mediapointer-dvb-s2-b8f8d07610fc89fb72fcd5aec751febfcefa3dc7.tar.bz2 |
Add new set_std function on soc_camera
From: Kuninori Morimoto <morimoto.kuninori@renesas.com>
This patch presents new method to be able to check v4l2_std_id
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
---
drivers/media/video/soc_camera.c | 9 ++++++++-
include/media/soc_camera.h | 1 +
2 files changed, 9 insertions(+), 1 deletions(-)
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/soc_camera.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/linux/drivers/media/video/soc_camera.c b/linux/drivers/media/video/soc_camera.c index 5af588f6b..c468027fb 100644 --- a/linux/drivers/media/video/soc_camera.c +++ b/linux/drivers/media/video/soc_camera.c @@ -153,7 +153,14 @@ static int soc_camera_s_input(struct file *file, void *priv, unsigned int i) 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, |