Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

adv7180.c File Reference


Detailed Description

Analog Device ADV7180 video decoder functions.

Definition in file adv7180.c.

#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/ctype.h>
#include <linux/types.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/i2c.h>
#include <linux/wait.h>
#include <linux/videodev2.h>
#include <linux/workqueue.h>
#include <linux/regulator/consumer.h>
#include <media/v4l2-int-device.h>
#include <mach/hardware.h>
#include "mxc_v4l2_capture.h"

Go to the source code of this file.

Classes

struct  sensor
struct  video_fmt_t

Defines

#define ADV7180_BRIGHTNESS   0x0a
#define ADV7180_IDENT   0x11
#define ADV7180_INPUT_CTL   0x00
#define ADV7180_MANUAL_WIN_CTL   0x3d
#define ADV7180_PWR_MNG   0x0f
#define ADV7180_SD_SATURATION_CB   0xe3
#define ADV7180_SD_SATURATION_CR   0xe4
#define ADV7180_STATUS_1   0x10
#define ADV7180_STD_MAX   (ADV7180_PAL + 1)
#define ADV7180_VSYNC_FIELD_CTL_1   0x31
#define IF_NAME   "adv7180"

Enumerations

enum  video_fmt_idx {
  ADV7180_NTSC = 0, ADV7180_PAL, ADV7180_NOT_LOCKED, TV_NTSC = 0,
  TV_PAL, TV_NOT_LOCKED
}

Functions

static void __exit adv7180_clean (void)
static int adv7180_detach (struct i2c_client *client)
static void adv7180_get_std (v4l2_std_id *std)
static void adv7180_hard_reset (void)
static __init int adv7180_init (void)
static int adv7180_probe (struct i2c_client *adapter, const struct i2c_device_id *id)
static int adv7180_read (u8 reg)
static int adv7180_write_reg (u8 reg, u8 val)
static DECLARE_MUTEX (mutex)
 This mutex is used to provide mutual exclusion.
void gpio_sensor_active (void)
void gpio_sensor_inactive (void)
static int ioctl_dev_init (struct v4l2_int_device *s)
static int ioctl_g_ctrl (struct v4l2_int_device *s, struct v4l2_control *vc)
static int ioctl_g_fmt_cap (struct v4l2_int_device *s, struct v4l2_format *f)
static int ioctl_g_ifparm (struct v4l2_int_device *s, struct v4l2_ifparm *p)
static int ioctl_g_parm (struct v4l2_int_device *s, struct v4l2_streamparm *a)
static int ioctl_init (struct v4l2_int_device *s)
static int ioctl_queryctrl (struct v4l2_int_device *s, struct v4l2_queryctrl *qc)
static int ioctl_s_ctrl (struct v4l2_int_device *s, struct v4l2_control *vc)
static int ioctl_s_parm (struct v4l2_int_device *s, struct v4l2_streamparm *a)
static int ioctl_s_power (struct v4l2_int_device *s, int on)
 MODULE_AUTHOR ("Freescale Semiconductor")
 MODULE_DESCRIPTION ("Anolog Device ADV7180 video decoder driver")
 MODULE_DEVICE_TABLE (i2c, adv7180_id)
 module_exit (adv7180_clean)
 module_init (adv7180_init)
 MODULE_LICENSE ("GPL")

Variables

struct sensor adv7180_data
static struct i2c_driver adv7180_i2c_driver
static struct i2c_device_id adv7180_id []
static struct v4l2_int_device adv7180_int_device
static struct v4l2_int_ioctl_desc adv7180_ioctl_desc []
static struct v4l2_queryctrl adv7180_qctrl []
static struct v4l2_int_slave adv7180_slave
static struct regulator * avdd_regulator
static struct regulator * dvdd_regulator
static struct regulator * dvddio_regulator
static struct regulator * pvdd_regulator
static video_fmt_t video_fmts []
static video_fmt_idx video_idx = ADV7180_PAL


Generated by  Doxygen 1.6.0   Back to index