diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2011-07-26 10:38:01 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-03 16:27:13 -0400 |
commit | 32c69fcc785a2f8122c73d44ad160d9cfc4c9615 (patch) | |
tree | c5a15bcfb69436d9da99369b1bdec17999f89849 /include/media | |
parent | 7cd74ffb04e05c115ebe53a59f83a73e677a2c63 (diff) |
[media] V4L: soc-camera: add helper functions for new bus configuration type
Add helper functions to process the new media bus configuration type
similar to soc_camera_apply_sensor_flags() and
soc_camera_bus_param_compatible().
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/soc_camera.h | 6 | ||||
-rw-r--r-- | include/media/soc_mediabus.h | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h index 7582952dcea..936a504f0ba 100644 --- a/include/media/soc_camera.h +++ b/include/media/soc_camera.h | |||
@@ -300,8 +300,10 @@ static inline void soc_camera_limit_side(int *start, int *length, | |||
300 | *start = start_min + length_max - *length; | 300 | *start = start_min + length_max - *length; |
301 | } | 301 | } |
302 | 302 | ||
303 | extern unsigned long soc_camera_apply_sensor_flags(struct soc_camera_link *icl, | 303 | unsigned long soc_camera_apply_sensor_flags(struct soc_camera_link *icl, |
304 | unsigned long flags); | 304 | unsigned long flags); |
305 | unsigned long soc_camera_apply_board_flags(struct soc_camera_link *icl, | ||
306 | const struct v4l2_mbus_config *cfg); | ||
305 | 307 | ||
306 | /* This is only temporary here - until v4l2-subdev begins to link to video_device */ | 308 | /* This is only temporary here - until v4l2-subdev begins to link to video_device */ |
307 | #include <linux/i2c.h> | 309 | #include <linux/i2c.h> |
diff --git a/include/media/soc_mediabus.h b/include/media/soc_mediabus.h index fae432544b4..73f1e7eb60f 100644 --- a/include/media/soc_mediabus.h +++ b/include/media/soc_mediabus.h | |||
@@ -82,5 +82,7 @@ const struct soc_mbus_pixelfmt *soc_mbus_get_fmtdesc( | |||
82 | s32 soc_mbus_bytes_per_line(u32 width, const struct soc_mbus_pixelfmt *mf); | 82 | s32 soc_mbus_bytes_per_line(u32 width, const struct soc_mbus_pixelfmt *mf); |
83 | int soc_mbus_samples_per_pixel(const struct soc_mbus_pixelfmt *mf, | 83 | int soc_mbus_samples_per_pixel(const struct soc_mbus_pixelfmt *mf, |
84 | unsigned int *numerator, unsigned int *denominator); | 84 | unsigned int *numerator, unsigned int *denominator); |
85 | unsigned int soc_mbus_config_compatible(const struct v4l2_mbus_config *cfg, | ||
86 | unsigned int flags); | ||
85 | 87 | ||
86 | #endif | 88 | #endif |