mirror of
https://github.com/torvalds/linux.git
synced 2026-12-04 12:24:18 +00:00
This patch adds a simple platform camera device. Useful for testing cameras with SoC camera host drivers. Only one single pixel format and resolution combination is supported. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Guennadi Liakhovetski <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
16 lines
340 B
C
16 lines
340 B
C
#ifndef __SOC_CAMERA_H__
|
|
#define __SOC_CAMERA_H__
|
|
|
|
#include <linux/videodev2.h>
|
|
|
|
struct soc_camera_platform_info {
|
|
int iface;
|
|
char *format_name;
|
|
unsigned long format_depth;
|
|
struct v4l2_pix_format format;
|
|
unsigned long bus_param;
|
|
int (*set_capture)(struct soc_camera_platform_info *info, int enable);
|
|
};
|
|
|
|
#endif /* __SOC_CAMERA_H__ */
|