Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
hdpvr.h File Reference
#include <linux/usb.h>
#include <linux/i2c.h>
#include <linux/mutex.h>
#include <linux/workqueue.h>
#include <linux/videodev2.h>
#include <media/v4l2-device.h>
#include <media/ir-kbd-i2c.h>

Go to the source code of this file.

Data Structures

struct  hdpvr_options
 
struct  hdpvr_device
 
struct  hdpvr_buffer
 
struct  hdpvr_video_info
 

Macros

#define HDPVR_MAX   8
 
#define HDPVR_I2C_MAX_SIZE   128
 
#define HD_PVR_VENDOR_ID   0x2040
 
#define HD_PVR_PRODUCT_ID   0x4900
 
#define HD_PVR_PRODUCT_ID1   0x4901
 
#define HD_PVR_PRODUCT_ID2   0x4902
 
#define HD_PVR_PRODUCT_ID4   0x4903
 
#define HD_PVR_PRODUCT_ID3   0x4982
 
#define UNSET   (-1U)
 
#define NUM_BUFFERS   64
 
#define HDPVR_FIRMWARE_VERSION   0x08
 
#define HDPVR_FIRMWARE_VERSION_AC3   0x0d
 
#define HDPVR_FIRMWARE_VERSION_0X12   0x12
 
#define HDPVR_FIRMWARE_VERSION_0X15   0x15
 
#define MSG_INFO   1
 
#define MSG_BUFFER   2
 
#define CTRL_START_STREAMING_VALUE   0x0700
 
#define CTRL_STOP_STREAMING_VALUE   0x0800
 
#define CTRL_BITRATE_VALUE   0x1000
 
#define CTRL_BITRATE_MODE_VALUE   0x1200
 
#define CTRL_GOP_MODE_VALUE   0x1300
 
#define CTRL_VIDEO_INPUT_VALUE   0x1500
 
#define CTRL_VIDEO_STD_TYPE   0x1700
 
#define CTRL_AUDIO_INPUT_VALUE   0x2500
 
#define CTRL_BRIGHTNESS   0x2900
 
#define CTRL_CONTRAST   0x2a00
 
#define CTRL_HUE   0x2b00
 
#define CTRL_SATURATION   0x2c00
 
#define CTRL_SHARPNESS   0x2d00
 
#define CTRL_LOW_PASS_FILTER_VALUE   0x3100
 
#define CTRL_DEFAULT_INDEX   0x0003
 

Enumerations

enum  {
  STATUS_UNINITIALIZED = 0, STATUS_IDLE, STATUS_STARTING, STATUS_SHUTTING_DOWN,
  STATUS_STREAMING, STATUS_ERROR, STATUS_DISCONNECTED
}
 
enum  { HDPVR_FLAG_AC3_CAP = 1 }
 
enum  { BUFSTAT_UNINITIALIZED = 0, BUFSTAT_AVAILABLE, BUFSTAT_INPROGRESS, BUFSTAT_READY }
 
enum  hdpvr_video_std { HDPVR_60HZ = 0, HDPVR_50HZ }
 
enum  hdpvr_video_input { HDPVR_COMPONENT = 0, HDPVR_SVIDEO, HDPVR_COMPOSITE, HDPVR_VIDEO_INPUTS }
 
enum  hdpvr_audio_inputs { HDPVR_RCA_BACK = 0, HDPVR_RCA_FRONT, HDPVR_SPDIF, HDPVR_AUDIO_INPUTS }
 
enum  hdpvr_bitrate_mode { HDPVR_CONSTANT = 1, HDPVR_VARIABLE_PEAK, HDPVR_VARIABLE_AVERAGE }
 
enum  hdpvr_gop_mode { HDPVR_ADVANCED_IDR_GOP = 0, HDPVR_SIMPLE_IDR_GOP, HDPVR_ADVANCED_NOIDR_GOP, HDPVR_SIMPLE_NOIDR_GOP }
 

Functions

void hdpvr_delete (struct hdpvr_device *dev)
 
int hdpvr_set_options (struct hdpvr_device *dev)
 
int hdpvr_set_bitrate (struct hdpvr_device *dev)
 
int hdpvr_set_audio (struct hdpvr_device *dev, u8 input, enum v4l2_mpeg_audio_encoding codec)
 
int hdpvr_config_call (struct hdpvr_device *dev, uint value, unsigned char valbuf)
 
struct hdpvr_video_infoget_video_info (struct hdpvr_device *dev)
 
int get_input_lines_info (struct hdpvr_device *dev)
 
int hdpvr_register_videodev (struct hdpvr_device *dev, struct device *parent, int devnumber)
 
int hdpvr_cancel_queue (struct hdpvr_device *dev)
 
int hdpvr_register_i2c_adapter (struct hdpvr_device *dev)
 
struct i2c_clienthdpvr_register_ir_rx_i2c (struct hdpvr_device *dev)
 
struct i2c_clienthdpvr_register_ir_tx_i2c (struct hdpvr_device *dev)
 
int hdpvr_free_buffers (struct hdpvr_device *dev)
 
int hdpvr_alloc_buffers (struct hdpvr_device *dev, uint count)
 

Variables

int hdpvr_debug
 

Macro Definition Documentation

#define CTRL_AUDIO_INPUT_VALUE   0x2500

Definition at line 174 of file hdpvr.h.

#define CTRL_BITRATE_MODE_VALUE   0x1200

Definition at line 170 of file hdpvr.h.

#define CTRL_BITRATE_VALUE   0x1000

Definition at line 169 of file hdpvr.h.

#define CTRL_BRIGHTNESS   0x2900

Definition at line 175 of file hdpvr.h.

#define CTRL_CONTRAST   0x2a00

Definition at line 176 of file hdpvr.h.

#define CTRL_DEFAULT_INDEX   0x0003

Definition at line 182 of file hdpvr.h.

#define CTRL_GOP_MODE_VALUE   0x1300

Definition at line 171 of file hdpvr.h.

#define CTRL_HUE   0x2b00

Definition at line 177 of file hdpvr.h.

#define CTRL_LOW_PASS_FILTER_VALUE   0x3100

Definition at line 180 of file hdpvr.h.

#define CTRL_SATURATION   0x2c00

Definition at line 178 of file hdpvr.h.

#define CTRL_SHARPNESS   0x2d00

Definition at line 179 of file hdpvr.h.

#define CTRL_START_STREAMING_VALUE   0x0700

Definition at line 167 of file hdpvr.h.

#define CTRL_STOP_STREAMING_VALUE   0x0800

Definition at line 168 of file hdpvr.h.

#define CTRL_VIDEO_INPUT_VALUE   0x1500

Definition at line 172 of file hdpvr.h.

#define CTRL_VIDEO_STD_TYPE   0x1700

Definition at line 173 of file hdpvr.h.

#define HD_PVR_PRODUCT_ID   0x4900

Definition at line 26 of file hdpvr.h.

#define HD_PVR_PRODUCT_ID1   0x4901

Definition at line 27 of file hdpvr.h.

#define HD_PVR_PRODUCT_ID2   0x4902

Definition at line 28 of file hdpvr.h.

#define HD_PVR_PRODUCT_ID3   0x4982

Definition at line 30 of file hdpvr.h.

#define HD_PVR_PRODUCT_ID4   0x4903

Definition at line 29 of file hdpvr.h.

#define HD_PVR_VENDOR_ID   0x2040

Definition at line 25 of file hdpvr.h.

#define HDPVR_FIRMWARE_VERSION   0x08

Definition at line 36 of file hdpvr.h.

#define HDPVR_FIRMWARE_VERSION_0X12   0x12

Definition at line 38 of file hdpvr.h.

#define HDPVR_FIRMWARE_VERSION_0X15   0x15

Definition at line 39 of file hdpvr.h.

#define HDPVR_FIRMWARE_VERSION_AC3   0x0d

Definition at line 37 of file hdpvr.h.

#define HDPVR_I2C_MAX_SIZE   128

Definition at line 22 of file hdpvr.h.

#define HDPVR_MAX   8

Definition at line 21 of file hdpvr.h.

#define MSG_BUFFER   2

Definition at line 46 of file hdpvr.h.

#define MSG_INFO   1

Definition at line 45 of file hdpvr.h.

#define NUM_BUFFERS   64

Definition at line 34 of file hdpvr.h.

#define UNSET   (-1U)

Definition at line 32 of file hdpvr.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
STATUS_UNINITIALIZED 
STATUS_IDLE 
STATUS_STARTING 
STATUS_SHUTTING_DOWN 
STATUS_STREAMING 
STATUS_ERROR 
STATUS_DISCONNECTED 

Definition at line 146 of file hdpvr.h.

anonymous enum
Enumerator:
HDPVR_FLAG_AC3_CAP 

Definition at line 156 of file hdpvr.h.

anonymous enum
Enumerator:
BUFSTAT_UNINITIALIZED 
BUFSTAT_AVAILABLE 
BUFSTAT_INPROGRESS 
BUFSTAT_READY 

Definition at line 160 of file hdpvr.h.

Enumerator:
HDPVR_RCA_BACK 
HDPVR_RCA_FRONT 
HDPVR_SPDIF 
HDPVR_AUDIO_INPUTS 

Definition at line 259 of file hdpvr.h.

Enumerator:
HDPVR_CONSTANT 
HDPVR_VARIABLE_PEAK 
HDPVR_VARIABLE_AVERAGE 

Definition at line 266 of file hdpvr.h.

Enumerator:
HDPVR_ADVANCED_IDR_GOP 
HDPVR_SIMPLE_IDR_GOP 
HDPVR_ADVANCED_NOIDR_GOP 
HDPVR_SIMPLE_NOIDR_GOP 

Definition at line 272 of file hdpvr.h.

Enumerator:
HDPVR_COMPONENT 
HDPVR_SVIDEO 
HDPVR_COMPOSITE 
HDPVR_VIDEO_INPUTS 

Definition at line 252 of file hdpvr.h.

Enumerator:
HDPVR_60HZ 
HDPVR_50HZ 

Definition at line 247 of file hdpvr.h.

Function Documentation

int get_input_lines_info ( struct hdpvr_device dev)

Definition at line 93 of file hdpvr-control.c.

struct hdpvr_video_info* get_video_info ( struct hdpvr_device dev)
read

Definition at line 48 of file hdpvr-control.c.

int hdpvr_alloc_buffers ( struct hdpvr_device dev,
uint  count 
)

Definition at line 118 of file hdpvr-video.c.

int hdpvr_cancel_queue ( struct hdpvr_device dev)

Definition at line 69 of file hdpvr-video.c.

int hdpvr_config_call ( struct hdpvr_device dev,
uint  value,
unsigned char  valbuf 
)

Definition at line 27 of file hdpvr-control.c.

void hdpvr_delete ( struct hdpvr_device dev)

Definition at line 69 of file hdpvr-core.c.

int hdpvr_free_buffers ( struct hdpvr_device dev)

Definition at line 107 of file hdpvr-video.c.

int hdpvr_register_i2c_adapter ( struct hdpvr_device dev)
struct i2c_client* hdpvr_register_ir_rx_i2c ( struct hdpvr_device dev)
read
struct i2c_client* hdpvr_register_ir_tx_i2c ( struct hdpvr_device dev)
read
int hdpvr_register_videodev ( struct hdpvr_device dev,
struct device parent,
int  devnumber 
)

Definition at line 1266 of file hdpvr-video.c.

int hdpvr_set_audio ( struct hdpvr_device dev,
u8  input,
enum v4l2_mpeg_audio_encoding  codec 
)

Definition at line 143 of file hdpvr-control.c.

int hdpvr_set_bitrate ( struct hdpvr_device dev)

Definition at line 125 of file hdpvr-control.c.

int hdpvr_set_options ( struct hdpvr_device dev)

Definition at line 178 of file hdpvr-control.c.

Variable Documentation

int hdpvr_debug

Definition at line 38 of file hdpvr-core.c.