Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
fimc-capture.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/bug.h>
#include <linux/interrupt.h>
#include <linux/device.h>
#include <linux/pm_runtime.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/videodev2.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-mem2mem.h>
#include <media/videobuf2-core.h>
#include <media/videobuf2-dma-contig.h>
#include "fimc-mdevice.h"
#include "fimc-core.h"
#include "fimc-reg.h"

Go to the source code of this file.

Functions

void fimc_capture_irq_handler (struct fimc_dev *fimc, int deq_buf)
 
int fimc_capture_suspend (struct fimc_dev *fimc)
 
int fimc_capture_resume (struct fimc_dev *fimc)
 
int fimc_capture_ctrls_create (struct fimc_dev *fimc)
 
void fimc_sensor_notify (struct v4l2_subdev *sd, unsigned int notification, void *arg)
 
int fimc_initialize_capture_subdev (struct fimc_dev *fimc)
 
void fimc_unregister_capture_subdev (struct fimc_dev *fimc)
 

Function Documentation

int fimc_capture_ctrls_create ( struct fimc_dev fimc)

fimc_capture_ctrls_create - initialize the control handler Initialize the capture video node control handler and fill it with the FIMC controls. Inherit any sensor's controls if the 'user_subdev_api' flag is false (default behaviour). This function need to be called with the graph mutex held.

Definition at line 486 of file fimc-capture.c.

void fimc_capture_irq_handler ( struct fimc_dev fimc,
int  deq_buf 
)

Definition at line 178 of file fimc-capture.c.

int fimc_capture_resume ( struct fimc_dev fimc)

Definition at line 319 of file fimc-capture.c.

int fimc_capture_suspend ( struct fimc_dev fimc)

Definition at line 307 of file fimc-capture.c.

int fimc_initialize_capture_subdev ( struct fimc_dev fimc)

Definition at line 1810 of file fimc-capture.c.

void fimc_sensor_notify ( struct v4l2_subdev sd,
unsigned int  notification,
void arg 
)

fimc_sensor_notify - v4l2_device notification from a sensor subdev : pointer to a subdev generating the notification : the notification type, must be S5P_FIMC_TX_END_NOTIFY

  • : pointer to an u32 type integer that stores the frame payload value

The End Of Frame notification sent by sensor subdev in its still capture mode. If there is only a single VSYNC generated by the sensor at the beginning of a frame transmission, FIMC does not issue the LastIrq (end of frame) interrupt. And this notification is used to complete the frame capture and returning a buffer to user-space. Subdev drivers should call this notification from their last 'End of frame capture' interrupt.

Definition at line 1418 of file fimc-capture.c.

void fimc_unregister_capture_subdev ( struct fimc_dev fimc)

Definition at line 1832 of file fimc-capture.c.