Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
cx2341x.h File Reference
#include <media/v4l2-ctrls.h>

Go to the source code of this file.

Data Structures

struct  cx2341x_mpeg_params
 
struct  cx2341x_handler_ops
 
struct  cx2341x_handler
 

Macros

#define CX2341X_MBOX_MAX_DATA   16
 
#define CX2341X_FIRM_ENC_FILENAME   "v4l-cx2341x-enc.fw"
 
#define CX2341X_FIRM_DEC_FILENAME   "v4l-cx2341x-dec.fw"
 
#define CX2341X_DEC_PING_FW   0x00
 
#define CX2341X_DEC_START_PLAYBACK   0x01
 
#define CX2341X_DEC_STOP_PLAYBACK   0x02
 
#define CX2341X_DEC_SET_PLAYBACK_SPEED   0x03
 
#define CX2341X_DEC_STEP_VIDEO   0x05
 
#define CX2341X_DEC_SET_DMA_BLOCK_SIZE   0x08
 
#define CX2341X_DEC_GET_XFER_INFO   0x09
 
#define CX2341X_DEC_GET_DMA_STATUS   0x0a
 
#define CX2341X_DEC_SCHED_DMA_FROM_HOST   0x0b
 
#define CX2341X_DEC_PAUSE_PLAYBACK   0x0d
 
#define CX2341X_DEC_HALT_FW   0x0e
 
#define CX2341X_DEC_SET_STANDARD   0x10
 
#define CX2341X_DEC_GET_VERSION   0x11
 
#define CX2341X_DEC_SET_STREAM_INPUT   0x14
 
#define CX2341X_DEC_GET_TIMING_INFO   0x15
 
#define CX2341X_DEC_SET_AUDIO_MODE   0x16
 
#define CX2341X_DEC_SET_EVENT_NOTIFICATION   0x17
 
#define CX2341X_DEC_SET_DISPLAY_BUFFERS   0x18
 
#define CX2341X_DEC_EXTRACT_VBI   0x19
 
#define CX2341X_DEC_SET_DECODER_SOURCE   0x1a
 
#define CX2341X_DEC_SET_PREBUFFERING   0x1e
 
#define CX2341X_ENC_PING_FW   0x80
 
#define CX2341X_ENC_START_CAPTURE   0x81
 
#define CX2341X_ENC_STOP_CAPTURE   0x82
 
#define CX2341X_ENC_SET_AUDIO_ID   0x89
 
#define CX2341X_ENC_SET_VIDEO_ID   0x8b
 
#define CX2341X_ENC_SET_PCR_ID   0x8d
 
#define CX2341X_ENC_SET_FRAME_RATE   0x8f
 
#define CX2341X_ENC_SET_FRAME_SIZE   0x91
 
#define CX2341X_ENC_SET_BIT_RATE   0x95
 
#define CX2341X_ENC_SET_GOP_PROPERTIES   0x97
 
#define CX2341X_ENC_SET_ASPECT_RATIO   0x99
 
#define CX2341X_ENC_SET_DNR_FILTER_MODE   0x9b
 
#define CX2341X_ENC_SET_DNR_FILTER_PROPS   0x9d
 
#define CX2341X_ENC_SET_CORING_LEVELS   0x9f
 
#define CX2341X_ENC_SET_SPATIAL_FILTER_TYPE   0xa1
 
#define CX2341X_ENC_SET_VBI_LINE   0xb7
 
#define CX2341X_ENC_SET_STREAM_TYPE   0xb9
 
#define CX2341X_ENC_SET_OUTPUT_PORT   0xbb
 
#define CX2341X_ENC_SET_AUDIO_PROPERTIES   0xbd
 
#define CX2341X_ENC_HALT_FW   0xc3
 
#define CX2341X_ENC_GET_VERSION   0xc4
 
#define CX2341X_ENC_SET_GOP_CLOSURE   0xc5
 
#define CX2341X_ENC_GET_SEQ_END   0xc6
 
#define CX2341X_ENC_SET_PGM_INDEX_INFO   0xc7
 
#define CX2341X_ENC_SET_VBI_CONFIG   0xc8
 
#define CX2341X_ENC_SET_DMA_BLOCK_SIZE   0xc9
 
#define CX2341X_ENC_GET_PREV_DMA_INFO_MB_10   0xca
 
#define CX2341X_ENC_GET_PREV_DMA_INFO_MB_9   0xcb
 
#define CX2341X_ENC_SCHED_DMA_TO_HOST   0xcc
 
#define CX2341X_ENC_INITIALIZE_INPUT   0xcd
 
#define CX2341X_ENC_SET_FRAME_DROP_RATE   0xd0
 
#define CX2341X_ENC_PAUSE_ENCODER   0xd2
 
#define CX2341X_ENC_REFRESH_INPUT   0xd3
 
#define CX2341X_ENC_SET_COPYRIGHT   0xd4
 
#define CX2341X_ENC_SET_EVENT_NOTIFICATION   0xd5
 
#define CX2341X_ENC_SET_NUM_VSYNC_LINES   0xd6
 
#define CX2341X_ENC_SET_PLACEHOLDER   0xd7
 
#define CX2341X_ENC_MUTE_VIDEO   0xd9
 
#define CX2341X_ENC_MUTE_AUDIO   0xda
 
#define CX2341X_ENC_SET_VERT_CROP_LINE   0xdb
 
#define CX2341X_ENC_MISC   0xdc
 
#define CX2341X_OSD_GET_FRAMEBUFFER   0x41
 
#define CX2341X_OSD_GET_PIXEL_FORMAT   0x42
 
#define CX2341X_OSD_SET_PIXEL_FORMAT   0x43
 
#define CX2341X_OSD_GET_STATE   0x44
 
#define CX2341X_OSD_SET_STATE   0x45
 
#define CX2341X_OSD_GET_OSD_COORDS   0x46
 
#define CX2341X_OSD_SET_OSD_COORDS   0x47
 
#define CX2341X_OSD_GET_SCREEN_COORDS   0x48
 
#define CX2341X_OSD_SET_SCREEN_COORDS   0x49
 
#define CX2341X_OSD_GET_GLOBAL_ALPHA   0x4a
 
#define CX2341X_OSD_SET_GLOBAL_ALPHA   0x4b
 
#define CX2341X_OSD_SET_BLEND_COORDS   0x4c
 
#define CX2341X_OSD_GET_FLICKER_STATE   0x4f
 
#define CX2341X_OSD_SET_FLICKER_STATE   0x50
 
#define CX2341X_OSD_BLT_COPY   0x52
 
#define CX2341X_OSD_BLT_FILL   0x53
 
#define CX2341X_OSD_BLT_TEXT   0x54
 
#define CX2341X_OSD_SET_FRAMEBUFFER_WINDOW   0x56
 
#define CX2341X_OSD_SET_CHROMA_KEY   0x60
 
#define CX2341X_OSD_GET_ALPHA_CONTENT_INDEX   0x61
 
#define CX2341X_OSD_SET_ALPHA_CONTENT_INDEX   0x62
 

Typedefs

typedef int(* cx2341x_mbox_func )(void *priv, u32 cmd, int in, int out, u32 data[CX2341X_MBOX_MAX_DATA])
 

Enumerations

enum  cx2341x_port { CX2341X_PORT_MEMORY = 0, CX2341X_PORT_STREAMING = 1, CX2341X_PORT_SERIAL = 2 }
 
enum  cx2341x_cap { CX2341X_CAP_HAS_SLICED_VBI = 1 << 0, CX2341X_CAP_HAS_TS = 1 << 1, CX2341X_CAP_HAS_AC3 = 1 << 2 }
 

Functions

int cx2341x_update (void *priv, cx2341x_mbox_func func, const struct cx2341x_mpeg_params *old, const struct cx2341x_mpeg_params *new)
 
int cx2341x_ctrl_query (const struct cx2341x_mpeg_params *params, struct v4l2_queryctrl *qctrl)
 
const char *constcx2341x_ctrl_get_menu (const struct cx2341x_mpeg_params *p, u32 id)
 
int cx2341x_ext_ctrls (struct cx2341x_mpeg_params *params, int busy, struct v4l2_ext_controls *ctrls, unsigned int cmd)
 
void cx2341x_fill_defaults (struct cx2341x_mpeg_params *p)
 
void cx2341x_log_status (const struct cx2341x_mpeg_params *p, const char *prefix)
 
int cx2341x_handler_init (struct cx2341x_handler *cxhdl, unsigned nr_of_controls_hint)
 
void cx2341x_handler_set_50hz (struct cx2341x_handler *cxhdl, int is_50hz)
 
int cx2341x_handler_setup (struct cx2341x_handler *cxhdl)
 
void cx2341x_handler_set_busy (struct cx2341x_handler *cxhdl, int busy)
 

Variables

const u32 cx2341x_mpeg_ctrls []
 

Macro Definition Documentation

#define CX2341X_DEC_EXTRACT_VBI   0x19

Definition at line 225 of file cx2341x.h.

#define CX2341X_DEC_GET_DMA_STATUS   0x0a

Definition at line 214 of file cx2341x.h.

#define CX2341X_DEC_GET_TIMING_INFO   0x15

Definition at line 221 of file cx2341x.h.

#define CX2341X_DEC_GET_VERSION   0x11

Definition at line 219 of file cx2341x.h.

#define CX2341X_DEC_GET_XFER_INFO   0x09

Definition at line 213 of file cx2341x.h.

#define CX2341X_DEC_HALT_FW   0x0e

Definition at line 217 of file cx2341x.h.

#define CX2341X_DEC_PAUSE_PLAYBACK   0x0d

Definition at line 216 of file cx2341x.h.

#define CX2341X_DEC_PING_FW   0x00

Definition at line 207 of file cx2341x.h.

#define CX2341X_DEC_SCHED_DMA_FROM_HOST   0x0b

Definition at line 215 of file cx2341x.h.

#define CX2341X_DEC_SET_AUDIO_MODE   0x16

Definition at line 222 of file cx2341x.h.

#define CX2341X_DEC_SET_DECODER_SOURCE   0x1a

Definition at line 226 of file cx2341x.h.

#define CX2341X_DEC_SET_DISPLAY_BUFFERS   0x18

Definition at line 224 of file cx2341x.h.

#define CX2341X_DEC_SET_DMA_BLOCK_SIZE   0x08

Definition at line 212 of file cx2341x.h.

#define CX2341X_DEC_SET_EVENT_NOTIFICATION   0x17

Definition at line 223 of file cx2341x.h.

#define CX2341X_DEC_SET_PLAYBACK_SPEED   0x03

Definition at line 210 of file cx2341x.h.

#define CX2341X_DEC_SET_PREBUFFERING   0x1e

Definition at line 227 of file cx2341x.h.

#define CX2341X_DEC_SET_STANDARD   0x10

Definition at line 218 of file cx2341x.h.

#define CX2341X_DEC_SET_STREAM_INPUT   0x14

Definition at line 220 of file cx2341x.h.

#define CX2341X_DEC_START_PLAYBACK   0x01

Definition at line 208 of file cx2341x.h.

#define CX2341X_DEC_STEP_VIDEO   0x05

Definition at line 211 of file cx2341x.h.

#define CX2341X_DEC_STOP_PLAYBACK   0x02

Definition at line 209 of file cx2341x.h.

#define CX2341X_ENC_GET_PREV_DMA_INFO_MB_10   0xca

Definition at line 256 of file cx2341x.h.

#define CX2341X_ENC_GET_PREV_DMA_INFO_MB_9   0xcb

Definition at line 257 of file cx2341x.h.

#define CX2341X_ENC_GET_SEQ_END   0xc6

Definition at line 252 of file cx2341x.h.

#define CX2341X_ENC_GET_VERSION   0xc4

Definition at line 250 of file cx2341x.h.

#define CX2341X_ENC_HALT_FW   0xc3

Definition at line 249 of file cx2341x.h.

#define CX2341X_ENC_INITIALIZE_INPUT   0xcd

Definition at line 259 of file cx2341x.h.

#define CX2341X_ENC_MISC   0xdc

Definition at line 270 of file cx2341x.h.

#define CX2341X_ENC_MUTE_AUDIO   0xda

Definition at line 268 of file cx2341x.h.

#define CX2341X_ENC_MUTE_VIDEO   0xd9

Definition at line 267 of file cx2341x.h.

#define CX2341X_ENC_PAUSE_ENCODER   0xd2

Definition at line 261 of file cx2341x.h.

#define CX2341X_ENC_PING_FW   0x80

Definition at line 230 of file cx2341x.h.

#define CX2341X_ENC_REFRESH_INPUT   0xd3

Definition at line 262 of file cx2341x.h.

#define CX2341X_ENC_SCHED_DMA_TO_HOST   0xcc

Definition at line 258 of file cx2341x.h.

#define CX2341X_ENC_SET_ASPECT_RATIO   0x99

Definition at line 240 of file cx2341x.h.

#define CX2341X_ENC_SET_AUDIO_ID   0x89

Definition at line 233 of file cx2341x.h.

#define CX2341X_ENC_SET_AUDIO_PROPERTIES   0xbd

Definition at line 248 of file cx2341x.h.

#define CX2341X_ENC_SET_BIT_RATE   0x95

Definition at line 238 of file cx2341x.h.

#define CX2341X_ENC_SET_COPYRIGHT   0xd4

Definition at line 263 of file cx2341x.h.

#define CX2341X_ENC_SET_CORING_LEVELS   0x9f

Definition at line 243 of file cx2341x.h.

#define CX2341X_ENC_SET_DMA_BLOCK_SIZE   0xc9

Definition at line 255 of file cx2341x.h.

#define CX2341X_ENC_SET_DNR_FILTER_MODE   0x9b

Definition at line 241 of file cx2341x.h.

#define CX2341X_ENC_SET_DNR_FILTER_PROPS   0x9d

Definition at line 242 of file cx2341x.h.

#define CX2341X_ENC_SET_EVENT_NOTIFICATION   0xd5

Definition at line 264 of file cx2341x.h.

#define CX2341X_ENC_SET_FRAME_DROP_RATE   0xd0

Definition at line 260 of file cx2341x.h.

#define CX2341X_ENC_SET_FRAME_RATE   0x8f

Definition at line 236 of file cx2341x.h.

#define CX2341X_ENC_SET_FRAME_SIZE   0x91

Definition at line 237 of file cx2341x.h.

#define CX2341X_ENC_SET_GOP_CLOSURE   0xc5

Definition at line 251 of file cx2341x.h.

#define CX2341X_ENC_SET_GOP_PROPERTIES   0x97

Definition at line 239 of file cx2341x.h.

#define CX2341X_ENC_SET_NUM_VSYNC_LINES   0xd6

Definition at line 265 of file cx2341x.h.

#define CX2341X_ENC_SET_OUTPUT_PORT   0xbb

Definition at line 247 of file cx2341x.h.

#define CX2341X_ENC_SET_PCR_ID   0x8d

Definition at line 235 of file cx2341x.h.

#define CX2341X_ENC_SET_PGM_INDEX_INFO   0xc7

Definition at line 253 of file cx2341x.h.

#define CX2341X_ENC_SET_PLACEHOLDER   0xd7

Definition at line 266 of file cx2341x.h.

#define CX2341X_ENC_SET_SPATIAL_FILTER_TYPE   0xa1

Definition at line 244 of file cx2341x.h.

#define CX2341X_ENC_SET_STREAM_TYPE   0xb9

Definition at line 246 of file cx2341x.h.

#define CX2341X_ENC_SET_VBI_CONFIG   0xc8

Definition at line 254 of file cx2341x.h.

#define CX2341X_ENC_SET_VBI_LINE   0xb7

Definition at line 245 of file cx2341x.h.

#define CX2341X_ENC_SET_VERT_CROP_LINE   0xdb

Definition at line 269 of file cx2341x.h.

#define CX2341X_ENC_SET_VIDEO_ID   0x8b

Definition at line 234 of file cx2341x.h.

#define CX2341X_ENC_START_CAPTURE   0x81

Definition at line 231 of file cx2341x.h.

#define CX2341X_ENC_STOP_CAPTURE   0x82

Definition at line 232 of file cx2341x.h.

#define CX2341X_FIRM_DEC_FILENAME   "v4l-cx2341x-dec.fw"

Definition at line 202 of file cx2341x.h.

#define CX2341X_FIRM_ENC_FILENAME   "v4l-cx2341x-enc.fw"

Definition at line 200 of file cx2341x.h.

#define CX2341X_MBOX_MAX_DATA   16

Definition at line 88 of file cx2341x.h.

#define CX2341X_OSD_BLT_COPY   0x52

Definition at line 287 of file cx2341x.h.

#define CX2341X_OSD_BLT_FILL   0x53

Definition at line 288 of file cx2341x.h.

#define CX2341X_OSD_BLT_TEXT   0x54

Definition at line 289 of file cx2341x.h.

#define CX2341X_OSD_GET_ALPHA_CONTENT_INDEX   0x61

Definition at line 292 of file cx2341x.h.

#define CX2341X_OSD_GET_FLICKER_STATE   0x4f

Definition at line 285 of file cx2341x.h.

#define CX2341X_OSD_GET_FRAMEBUFFER   0x41

Definition at line 273 of file cx2341x.h.

#define CX2341X_OSD_GET_GLOBAL_ALPHA   0x4a

Definition at line 282 of file cx2341x.h.

#define CX2341X_OSD_GET_OSD_COORDS   0x46

Definition at line 278 of file cx2341x.h.

#define CX2341X_OSD_GET_PIXEL_FORMAT   0x42

Definition at line 274 of file cx2341x.h.

#define CX2341X_OSD_GET_SCREEN_COORDS   0x48

Definition at line 280 of file cx2341x.h.

#define CX2341X_OSD_GET_STATE   0x44

Definition at line 276 of file cx2341x.h.

#define CX2341X_OSD_SET_ALPHA_CONTENT_INDEX   0x62

Definition at line 293 of file cx2341x.h.

#define CX2341X_OSD_SET_BLEND_COORDS   0x4c

Definition at line 284 of file cx2341x.h.

#define CX2341X_OSD_SET_CHROMA_KEY   0x60

Definition at line 291 of file cx2341x.h.

#define CX2341X_OSD_SET_FLICKER_STATE   0x50

Definition at line 286 of file cx2341x.h.

#define CX2341X_OSD_SET_FRAMEBUFFER_WINDOW   0x56

Definition at line 290 of file cx2341x.h.

#define CX2341X_OSD_SET_GLOBAL_ALPHA   0x4b

Definition at line 283 of file cx2341x.h.

#define CX2341X_OSD_SET_OSD_COORDS   0x47

Definition at line 279 of file cx2341x.h.

#define CX2341X_OSD_SET_PIXEL_FORMAT   0x43

Definition at line 275 of file cx2341x.h.

#define CX2341X_OSD_SET_SCREEN_COORDS   0x49

Definition at line 281 of file cx2341x.h.

#define CX2341X_OSD_SET_STATE   0x45

Definition at line 277 of file cx2341x.h.

Typedef Documentation

typedef int(* cx2341x_mbox_func)(void *priv, u32 cmd, int in, int out, u32 data[CX2341X_MBOX_MAX_DATA])

Definition at line 91 of file cx2341x.h.

Enumeration Type Documentation

Enumerator:
CX2341X_CAP_HAS_SLICED_VBI 
CX2341X_CAP_HAS_TS 
CX2341X_CAP_HAS_AC3 

Definition at line 30 of file cx2341x.h.

Enumerator:
CX2341X_PORT_MEMORY 
CX2341X_PORT_STREAMING 
CX2341X_PORT_SERIAL 

Definition at line 24 of file cx2341x.h.

Function Documentation

const char* const* cx2341x_ctrl_get_menu ( const struct cx2341x_mpeg_params p,
u32  id 
)

Definition at line 856 of file cx2341x.c.

int cx2341x_ctrl_query ( const struct cx2341x_mpeg_params params,
struct v4l2_queryctrl qctrl 
)

Definition at line 584 of file cx2341x.c.

int cx2341x_ext_ctrls ( struct cx2341x_mpeg_params params,
int  busy,
struct v4l2_ext_controls ctrls,
unsigned int  cmd 
)

Definition at line 934 of file cx2341x.c.

void cx2341x_fill_defaults ( struct cx2341x_mpeg_params p)

Definition at line 984 of file cx2341x.c.

int cx2341x_handler_init ( struct cx2341x_handler cxhdl,
unsigned  nr_of_controls_hint 
)

Definition at line 1522 of file cx2341x.c.

void cx2341x_handler_set_50hz ( struct cx2341x_handler cxhdl,
int  is_50hz 
)

Definition at line 1683 of file cx2341x.c.

void cx2341x_handler_set_busy ( struct cx2341x_handler cxhdl,
int  busy 
)

Definition at line 1714 of file cx2341x.c.

int cx2341x_handler_setup ( struct cx2341x_handler cxhdl)

Definition at line 1690 of file cx2341x.c.

void cx2341x_log_status ( const struct cx2341x_mpeg_params p,
const char prefix 
)

Definition at line 1155 of file cx2341x.c.

int cx2341x_update ( void priv,
cx2341x_mbox_func  func,
const struct cx2341x_mpeg_params old,
const struct cx2341x_mpeg_params new 
)

Definition at line 1008 of file cx2341x.c.

Variable Documentation

const u32 cx2341x_mpeg_ctrls[]

Definition at line 181 of file cx2341x.c.