Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
soc_camera.c File Reference
#include <linux/device.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/init.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
#include <linux/vmalloc.h>
#include <media/soc_camera.h>
#include <media/v4l2-common.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-dev.h>
#include <media/videobuf-core.h>
#include <media/videobuf2-core.h>
#include <media/soc_mediabus.h>

Go to the source code of this file.

Macros

#define DEFAULT_WIDTH   640
 
#define DEFAULT_HEIGHT   480
 
#define is_streaming(ici, icd)
 
#define pixfmtstr(x)
 
#define soc_camera_init_i2c(icd, icl)   (-ENODEV)
 
#define soc_camera_free_i2c(icd)   do {} while (0)
 

Functions

int soc_camera_power_on (struct device *dev, struct soc_camera_link *icl)
 
 EXPORT_SYMBOL (soc_camera_power_on)
 
int soc_camera_power_off (struct device *dev, struct soc_camera_link *icl)
 
 EXPORT_SYMBOL (soc_camera_power_off)
 
struct soc_camera_format_xlate * soc_camera_xlate_by_fourcc (struct soc_camera_device *icd, unsigned int fourcc)
 
 EXPORT_SYMBOL (soc_camera_xlate_by_fourcc)
 
unsigned long soc_camera_apply_board_flags (struct soc_camera_link *icl, const struct v4l2_mbus_config *cfg)
 
 EXPORT_SYMBOL (soc_camera_apply_board_flags)
 
void soc_camera_lock (struct vb2_queue *vq)
 
 EXPORT_SYMBOL (soc_camera_lock)
 
void soc_camera_unlock (struct vb2_queue *vq)
 
 EXPORT_SYMBOL (soc_camera_unlock)
 
int soc_camera_host_register (struct soc_camera_host *ici)
 
 EXPORT_SYMBOL (soc_camera_host_register)
 
void soc_camera_host_unregister (struct soc_camera_host *ici)
 
 EXPORT_SYMBOL (soc_camera_host_unregister)
 
 module_platform_driver (soc_camera_pdrv)
 
 MODULE_DESCRIPTION ("Image capture bus driver")
 
 MODULE_AUTHOR ("Guennadi Liakhovetski <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:soc-camera-pdrv")
 

Macro Definition Documentation

#define DEFAULT_HEIGHT   480

Definition at line 42 of file soc_camera.c.

#define DEFAULT_WIDTH   640

Definition at line 41 of file soc_camera.c.

#define is_streaming (   ici,
  icd 
)
Value:
(((ici)->ops->init_videobuf) ? \
(icd)->vb_vidq.streaming : \
vb2_is_streaming(&(icd)->vb2_vidq))

Definition at line 44 of file soc_camera.c.

#define pixfmtstr (   x)
Value:
(x) & 0xff, ((x) >> 8) & 0xff, ((x) >> 16) & 0xff, \
((x) >> 24) & 0xff

Definition at line 171 of file soc_camera.c.

#define soc_camera_free_i2c (   icd)    do {} while (0)

Definition at line 1108 of file soc_camera.c.

#define soc_camera_init_i2c (   icd,
  icl 
)    (-ENODEV)

Definition at line 1107 of file soc_camera.c.

Function Documentation

EXPORT_SYMBOL ( soc_camera_power_on  )
EXPORT_SYMBOL ( soc_camera_power_off  )
EXPORT_SYMBOL ( soc_camera_xlate_by_fourcc  )
EXPORT_SYMBOL ( soc_camera_apply_board_flags  )
EXPORT_SYMBOL ( soc_camera_lock  )
EXPORT_SYMBOL ( soc_camera_unlock  )
EXPORT_SYMBOL ( soc_camera_host_register  )
EXPORT_SYMBOL ( soc_camera_host_unregister  )
MODULE_ALIAS ( "platform:soc-camera-pdrv"  )
MODULE_AUTHOR ( "Guennadi Liakhovetski <[email protected]>"  )
MODULE_DESCRIPTION ( "Image capture bus driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( soc_camera_pdrv  )
unsigned long soc_camera_apply_board_flags ( struct soc_camera_link icl,
const struct v4l2_mbus_config cfg 
)

soc_camera_apply_board_flags() - apply platform SOCAM_SENSOR_INVERT_* flags : camera platform parameters : media bus configuration

Returns
: resulting flags

Definition at line 143 of file soc_camera.c.

int soc_camera_host_register ( struct soc_camera_host ici)

Definition at line 1338 of file soc_camera.c.

void soc_camera_host_unregister ( struct soc_camera_host ici)

Definition at line 1397 of file soc_camera.c.

void soc_camera_lock ( struct vb2_queue vq)

Definition at line 700 of file soc_camera.c.

int soc_camera_power_off ( struct device dev,
struct soc_camera_link icl 
)

Definition at line 76 of file soc_camera.c.

int soc_camera_power_on ( struct device dev,
struct soc_camera_link icl 
)

Definition at line 53 of file soc_camera.c.

void soc_camera_unlock ( struct vb2_queue vq)

Definition at line 707 of file soc_camera.c.

struct soc_camera_format_xlate* soc_camera_xlate_by_fourcc ( struct soc_camera_device icd,
unsigned int  fourcc 
)
read

Definition at line 125 of file soc_camera.c.