#include <linux/module.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <media/v4l2-ioctl.h>
#include <linux/videodev2.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-chip-ident.h>
#include <linux/mutex.h>
Go to the source code of this file.
#define ADV7180_ADI_CTRL_IRQ_SPACE 0x20 |
#define ADV7180_ADI_CTRL_REG 0x0e |
#define ADV7180_AUTODETECT_DEFAULT 0x7f |
#define ADV7180_AUTODETECT_ENABLE_REG 0x07 |
#define ADV7180_BRI_DEF 0 |
#define ADV7180_BRI_MAX 127 |
#define ADV7180_BRI_MIN -128 |
#define ADV7180_BRI_REG 0x0a /*Signed */ |
#define ADV7180_CON_DEF 128 |
#define ADV7180_CON_MAX 255 |
#define ADV7180_CON_MIN 0 |
#define ADV7180_CON_REG 0x08 /*Unsigned */ |
#define ADV7180_EXTENDED_OUTPUT_CONTROL_NTSCDIS 0xC5 |
#define ADV7180_EXTENDED_OUTPUT_CONTROL_REG 0x04 |
#define ADV7180_HUE_DEF 0 |
#define ADV7180_HUE_MAX 128 |
#define ADV7180_HUE_MIN -127 |
#define ADV7180_HUE_REG 0x0b /*Signed, inverted */ |
#define ADV7180_ICONF1_ACTIVE_LOW 0x01 |
#define ADV7180_ICONF1_ACTIVE_TO_CLR 0xC0 |
#define ADV7180_ICONF1_ADI 0x40 |
#define ADV7180_ICONF1_PSYNC_ONLY 0x10 |
#define ADV7180_ICR1_ADI 0x43 |
#define ADV7180_ICR3_ADI 0x4B |
#define ADV7180_ID_7180 0x18 |
#define ADV7180_IDENT_REG 0x11 |
#define ADV7180_IMR1_ADI 0x44 |
#define ADV7180_IMR2_ADI 0x48 |
#define ADV7180_IMR3_ADI 0x4C |
#define ADV7180_IMR4_ADI 0x50 |
#define ADV7180_INPUT_CONTROL_AD_PAL_BG_NTSC_J_SECAM 0x00 |
#define ADV7180_INPUT_CONTROL_AD_PAL_BG_NTSC_J_SECAM_PED 0x10 |
#define ADV7180_INPUT_CONTROL_AD_PAL_N_NTSC_J_SECAM 0x20 |
#define ADV7180_INPUT_CONTROL_AD_PAL_N_NTSC_M_SECAM 0x30 |
#define ADV7180_INPUT_CONTROL_INSEL_MASK 0x0f |
#define ADV7180_INPUT_CONTROL_NTSC_443 0x70 |
#define ADV7180_INPUT_CONTROL_NTSC_J 0x40 |
#define ADV7180_INPUT_CONTROL_NTSC_M 0x50 |
#define ADV7180_INPUT_CONTROL_PAL60 0x60 |
#define ADV7180_INPUT_CONTROL_PAL_BG 0x80 |
#define ADV7180_INPUT_CONTROL_PAL_COMB_N 0xc0 |
#define ADV7180_INPUT_CONTROL_PAL_COMB_N_PED 0xd0 |
#define ADV7180_INPUT_CONTROL_PAL_M 0xa0 |
#define ADV7180_INPUT_CONTROL_PAL_M_PED 0xb0 |
#define ADV7180_INPUT_CONTROL_PAL_N 0x90 |
#define ADV7180_INPUT_CONTROL_PAL_SECAM 0xe0 |
#define ADV7180_INPUT_CONTROL_PAL_SECAM_PED 0xf0 |
#define ADV7180_INPUT_CONTROL_REG 0x00 |
#define ADV7180_IRQ1_LOCK 0x01 |
#define ADV7180_IRQ1_UNLOCK 0x02 |
#define ADV7180_IRQ3_AD_CHANGE 0x08 |
#define ADV7180_ISR1_ADI 0x42 |
#define ADV7180_ISR3_ADI 0x4A |
#define ADV7180_NTSC_V_BIT_END_MANUAL_NVEND 0x4F |
#define ADV7180_NTSC_V_BIT_END_REG 0xE6 |
#define ADV7180_PWR_MAN_OFF 0x24 |
#define ADV7180_PWR_MAN_ON 0x04 |
#define ADV7180_PWR_MAN_REG 0x0f |
#define ADV7180_PWR_MAN_RES 0x80 |
#define ADV7180_SAT_DEF 128 |
#define ADV7180_SAT_MAX 255 |
#define ADV7180_SAT_MIN 0 |
#define ADV7180_SD_SAT_CB_REG 0xe3 /*Unsigned */ |
#define ADV7180_SD_SAT_CR_REG 0xe4 /*Unsigned */ |
#define ADV7180_STATUS1_AUTOD_MASK 0x70 |
#define ADV7180_STATUS1_AUTOD_NTSC_4_43 0x10 |
#define ADV7180_STATUS1_AUTOD_NTSM_M_J 0x00 |
#define ADV7180_STATUS1_AUTOD_PAL_60 0x30 |
#define ADV7180_STATUS1_AUTOD_PAL_B_G 0x40 |
#define ADV7180_STATUS1_AUTOD_PAL_COMB 0x60 |
#define ADV7180_STATUS1_AUTOD_PAL_M 0x20 |
#define ADV7180_STATUS1_AUTOD_SECAM 0x50 |
#define ADV7180_STATUS1_AUTOD_SECAM_525 0x70 |
#define ADV7180_STATUS1_IN_LOCK 0x01 |
#define ADV7180_STATUS1_REG 0x10 |
#define to_adv7180_sd |
( |
|
_ctrl | ) |
|
MODULE_AUTHOR |
( |
"Mocean Laboratories" |
| ) |
|
MODULE_DESCRIPTION |
( |
"Analog Devices ADV7180 video decoder driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
adv7180_id |
|
|
) |
| |
module_i2c_driver |
( |
adv7180_driver |
| ) |
|
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|