Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tm6000-core.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include <linux/i2c.h>
#include "tm6000.h"
#include "tm6000-regs.h"
#include <media/v4l2-common.h>
#include <media/tuner.h>

Go to the source code of this file.

Data Structures

struct  reg_init
 

Macros

#define USB_TIMEOUT   (5 * HZ) /* ms */
 

Functions

int tm6000_read_write_usb (struct tm6000_core *dev, u8 req_type, u8 req, u16 value, u16 index, u8 *buf, u16 len)
 
int tm6000_set_reg (struct tm6000_core *dev, u8 req, u16 value, u16 index)
 
 EXPORT_SYMBOL_GPL (tm6000_set_reg)
 
int tm6000_get_reg (struct tm6000_core *dev, u8 req, u16 value, u16 index)
 
 EXPORT_SYMBOL_GPL (tm6000_get_reg)
 
int tm6000_set_reg_mask (struct tm6000_core *dev, u8 req, u16 value, u16 index, u16 mask)
 
 EXPORT_SYMBOL_GPL (tm6000_set_reg_mask)
 
int tm6000_get_reg16 (struct tm6000_core *dev, u8 req, u16 value, u16 index)
 
int tm6000_get_reg32 (struct tm6000_core *dev, u8 req, u16 value, u16 index)
 
int tm6000_i2c_reset (struct tm6000_core *dev, u16 tsleep)
 
void tm6000_set_fourcc_format (struct tm6000_core *dev)
 
int tm6000_init_analog_mode (struct tm6000_core *dev)
 
int tm6000_init_digital_mode (struct tm6000_core *dev)
 
 EXPORT_SYMBOL (tm6000_init_digital_mode)
 
int tm6000_init (struct tm6000_core *dev)
 
int tm6000_set_audio_bitrate (struct tm6000_core *dev, int bitrate)
 
 EXPORT_SYMBOL_GPL (tm6000_set_audio_bitrate)
 
int tm6000_set_audio_rinput (struct tm6000_core *dev)
 
int tm6000_tvaudio_set_mute (struct tm6000_core *dev, u8 mute)
 
void tm6000_set_volume (struct tm6000_core *dev, int vol)
 
void tm6000_remove_from_devlist (struct tm6000_core *dev)
 
void tm6000_add_into_devlist (struct tm6000_core *dev)
 
int tm6000_call_fillbuf (struct tm6000_core *dev, enum tm6000_ops_type type, char *buf, int size)
 
int tm6000_register_extension (struct tm6000_ops *ops)
 
 EXPORT_SYMBOL (tm6000_register_extension)
 
void tm6000_unregister_extension (struct tm6000_ops *ops)
 
 EXPORT_SYMBOL (tm6000_unregister_extension)
 
void tm6000_init_extension (struct tm6000_core *dev)
 
void tm6000_close_extension (struct tm6000_core *dev)
 

Macro Definition Documentation

#define USB_TIMEOUT   (5 * HZ) /* ms */

Definition at line 33 of file tm6000-core.c.

Function Documentation

EXPORT_SYMBOL ( tm6000_init_digital_mode  )
EXPORT_SYMBOL ( tm6000_register_extension  )
EXPORT_SYMBOL ( tm6000_unregister_extension  )
EXPORT_SYMBOL_GPL ( tm6000_set_reg  )
EXPORT_SYMBOL_GPL ( tm6000_get_reg  )
EXPORT_SYMBOL_GPL ( tm6000_set_reg_mask  )
EXPORT_SYMBOL_GPL ( tm6000_set_audio_bitrate  )
void tm6000_add_into_devlist ( struct tm6000_core dev)

Definition at line 849 of file tm6000-core.c.

int tm6000_call_fillbuf ( struct tm6000_core dev,
enum tm6000_ops_type  type,
char buf,
int  size 
)

Definition at line 862 of file tm6000-core.c.

void tm6000_close_extension ( struct tm6000_core dev)

Definition at line 923 of file tm6000-core.c.

int tm6000_get_reg ( struct tm6000_core dev,
u8  req,
u16  value,
u16  index 
)

Definition at line 119 of file tm6000-core.c.

int tm6000_get_reg16 ( struct tm6000_core dev,
u8  req,
u16  value,
u16  index 
)

Definition at line 157 of file tm6000-core.c.

int tm6000_get_reg32 ( struct tm6000_core dev,
u8  req,
u16  value,
u16  index 
)

Definition at line 171 of file tm6000-core.c.

int tm6000_i2c_reset ( struct tm6000_core dev,
u16  tsleep 
)

Definition at line 185 of file tm6000-core.c.

int tm6000_init ( struct tm6000_core dev)

Definition at line 565 of file tm6000-core.c.

int tm6000_init_analog_mode ( struct tm6000_core dev)

Definition at line 281 of file tm6000-core.c.

int tm6000_init_digital_mode ( struct tm6000_core dev)

Definition at line 354 of file tm6000-core.c.

void tm6000_init_extension ( struct tm6000_core dev)

Definition at line 909 of file tm6000-core.c.

int tm6000_read_write_usb ( struct tm6000_core dev,
u8  req_type,
u8  req,
u16  value,
u16  index,
u8 buf,
u16  len 
)

Definition at line 35 of file tm6000-core.c.

int tm6000_register_extension ( struct tm6000_ops ops)

Definition at line 879 of file tm6000-core.c.

void tm6000_remove_from_devlist ( struct tm6000_core dev)

Definition at line 842 of file tm6000-core.c.

int tm6000_set_audio_bitrate ( struct tm6000_core dev,
int  bitrate 
)

Definition at line 617 of file tm6000-core.c.

int tm6000_set_audio_rinput ( struct tm6000_core dev)

Definition at line 659 of file tm6000-core.c.

void tm6000_set_fourcc_format ( struct tm6000_core dev)

Definition at line 201 of file tm6000-core.c.

int tm6000_set_reg ( struct tm6000_core dev,
u8  req,
u16  value,
u16  index 
)

Definition at line 111 of file tm6000-core.c.

int tm6000_set_reg_mask ( struct tm6000_core dev,
u8  req,
u16  value,
u16  index,
u16  mask 
)

Definition at line 134 of file tm6000-core.c.

void tm6000_set_volume ( struct tm6000_core dev,
int  vol 
)

Definition at line 806 of file tm6000-core.c.

int tm6000_tvaudio_set_mute ( struct tm6000_core dev,
u8  mute 
)

Definition at line 746 of file tm6000-core.c.

void tm6000_unregister_extension ( struct tm6000_ops ops)

Definition at line 895 of file tm6000-core.c.