Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cx231xx-avcore.c File Reference
#include <linux/init.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/bitmap.h>
#include <linux/usb.h>
#include <linux/i2c.h>
#include <linux/mm.h>
#include <linux/mutex.h>
#include <media/tuner.h>
#include <media/v4l2-common.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-chip-ident.h>
#include "cx231xx.h"
#include "cx231xx-dif.h"

Go to the source code of this file.

Macros

#define TUNER_MODE_FM_RADIO   0
 

Functions

void initGPIO (struct cx231xx *dev)
 
void uninitGPIO (struct cx231xx *dev)
 
int cx231xx_afe_init_super_block (struct cx231xx *dev, u32 ref_count)
 
int cx231xx_afe_init_channels (struct cx231xx *dev)
 
int cx231xx_afe_setup_AFE_for_baseband (struct cx231xx *dev)
 
int cx231xx_afe_set_input_mux (struct cx231xx *dev, u32 input_mux)
 
int cx231xx_afe_set_mode (struct cx231xx *dev, enum AFE_MODE mode)
 
int cx231xx_afe_update_power_control (struct cx231xx *dev, enum AV_MODE avmode)
 
int cx231xx_afe_adjust_ref_count (struct cx231xx *dev, u32 video_input)
 
int cx231xx_check_fw (struct cx231xx *dev)
 
int cx231xx_set_video_input_mux (struct cx231xx *dev, u8 input)
 
int cx231xx_set_decoder_video_input (struct cx231xx *dev, u8 pin_type, u8 input)
 
void cx231xx_enable656 (struct cx231xx *dev)
 
 EXPORT_SYMBOL_GPL (cx231xx_enable656)
 
void cx231xx_disable656 (struct cx231xx *dev)
 
 EXPORT_SYMBOL_GPL (cx231xx_disable656)
 
int cx231xx_do_mode_ctrl_overrides (struct cx231xx *dev)
 
int cx231xx_unmute_audio (struct cx231xx *dev)
 
 EXPORT_SYMBOL_GPL (cx231xx_unmute_audio)
 
int stopAudioFirmware (struct cx231xx *dev)
 
int restartAudioFirmware (struct cx231xx *dev)
 
int cx231xx_set_audio_input (struct cx231xx *dev, u8 input)
 
int cx231xx_set_audio_decoder_input (struct cx231xx *dev, enum AUDIO_INPUT audio_input)
 
int cx231xx_init_ctrl_pin_status (struct cx231xx *dev)
 
int cx231xx_set_agc_analog_digital_mux_select (struct cx231xx *dev, u8 analog_or_digital)
 
int cx231xx_enable_i2c_port_3 (struct cx231xx *dev, bool is_port_3)
 
 EXPORT_SYMBOL_GPL (cx231xx_enable_i2c_port_3)
 
void update_HH_register_after_set_DIF (struct cx231xx *dev)
 
void cx231xx_dump_HH_reg (struct cx231xx *dev)
 
void cx231xx_dump_SC_reg (struct cx231xx *dev)
 
void cx231xx_Setup_AFE_for_LowIF (struct cx231xx *dev)
 
void cx231xx_set_Colibri_For_LowIF (struct cx231xx *dev, u32 if_freq, u8 spectral_invert, u32 mode)
 
u32 cx231xx_Get_Colibri_CarrierOffset (u32 mode, u32 standerd)
 
void cx231xx_set_DIF_bandpass (struct cx231xx *dev, u32 if_freq, u8 spectral_invert, u32 mode)
 
int cx231xx_dif_configure_C2HH_for_low_IF (struct cx231xx *dev, u32 mode, u32 function_mode, u32 standard)
 
int cx231xx_dif_set_standard (struct cx231xx *dev, u32 standard)
 
int cx231xx_tuner_pre_channel_change (struct cx231xx *dev)
 
int cx231xx_tuner_post_channel_change (struct cx231xx *dev)
 
int cx231xx_i2s_blk_initialize (struct cx231xx *dev)
 
int cx231xx_i2s_blk_update_power_control (struct cx231xx *dev, enum AV_MODE avmode)
 
int cx231xx_i2s_blk_set_audio_input (struct cx231xx *dev, u8 audio_input)
 
int cx231xx_set_power_mode (struct cx231xx *dev, enum AV_MODE mode)
 
int cx231xx_power_suspend (struct cx231xx *dev)
 
int cx231xx_start_stream (struct cx231xx *dev, u32 ep_mask)
 
int cx231xx_stop_stream (struct cx231xx *dev, u32 ep_mask)
 
int cx231xx_initialize_stream_xfer (struct cx231xx *dev, u32 media_type)
 
int cx231xx_capture_start (struct cx231xx *dev, int start, u8 media_type)
 
 EXPORT_SYMBOL_GPL (cx231xx_capture_start)
 
int cx231xx_set_gpio_bit (struct cx231xx *dev, u32 gpio_bit, u8 *gpio_val)
 
int cx231xx_get_gpio_bit (struct cx231xx *dev, u32 gpio_bit, u8 *gpio_val)
 
int cx231xx_set_gpio_direction (struct cx231xx *dev, int pin_number, int pin_value)
 
int cx231xx_set_gpio_value (struct cx231xx *dev, int pin_number, int pin_value)
 
int cx231xx_gpio_i2c_start (struct cx231xx *dev)
 
int cx231xx_gpio_i2c_end (struct cx231xx *dev)
 
int cx231xx_gpio_i2c_write_byte (struct cx231xx *dev, u8 data)
 
int cx231xx_gpio_i2c_read_byte (struct cx231xx *dev, u8 *buf)
 
int cx231xx_gpio_i2c_read_ack (struct cx231xx *dev)
 
int cx231xx_gpio_i2c_write_ack (struct cx231xx *dev)
 
int cx231xx_gpio_i2c_write_nak (struct cx231xx *dev)
 
int cx231xx_gpio_i2c_read (struct cx231xx *dev, u8 dev_addr, u8 *buf, u8 len)
 
int cx231xx_gpio_i2c_write (struct cx231xx *dev, u8 dev_addr, u8 *buf, u8 len)
 

Macro Definition Documentation

#define TUNER_MODE_FM_RADIO   0

Definition at line 43 of file cx231xx-avcore.c.

Function Documentation

int cx231xx_afe_adjust_ref_count ( struct cx231xx dev,
u32  video_input 
)

Definition at line 477 of file cx231xx-avcore.c.

int cx231xx_afe_init_channels ( struct cx231xx dev)

Definition at line 197 of file cx231xx-avcore.c.

int cx231xx_afe_init_super_block ( struct cx231xx dev,
u32  ref_count 
)

Definition at line 129 of file cx231xx-avcore.c.

int cx231xx_afe_set_input_mux ( struct cx231xx dev,
u32  input_mux 
)

Definition at line 267 of file cx231xx-avcore.c.

int cx231xx_afe_set_mode ( struct cx231xx dev,
enum AFE_MODE  mode 
)

Definition at line 304 of file cx231xx-avcore.c.

int cx231xx_afe_setup_AFE_for_baseband ( struct cx231xx dev)

Definition at line 246 of file cx231xx-avcore.c.

int cx231xx_afe_update_power_control ( struct cx231xx dev,
enum AV_MODE  avmode 
)

Definition at line 341 of file cx231xx-avcore.c.

int cx231xx_capture_start ( struct cx231xx dev,
int  start,
u8  media_type 
)

Definition at line 2586 of file cx231xx-avcore.c.

int cx231xx_check_fw ( struct cx231xx dev)

Definition at line 550 of file cx231xx-avcore.c.

int cx231xx_dif_configure_C2HH_for_low_IF ( struct cx231xx dev,
u32  mode,
u32  function_mode,
u32  standard 
)

Definition at line 1610 of file cx231xx-avcore.c.

int cx231xx_dif_set_standard ( struct cx231xx dev,
u32  standard 
)

Definition at line 1704 of file cx231xx-avcore.c.

void cx231xx_disable656 ( struct cx231xx dev)

Definition at line 950 of file cx231xx-avcore.c.

int cx231xx_do_mode_ctrl_overrides ( struct cx231xx dev)

Definition at line 968 of file cx231xx-avcore.c.

void cx231xx_dump_HH_reg ( struct cx231xx dev)

Definition at line 1317 of file cx231xx-avcore.c.

void cx231xx_dump_SC_reg ( struct cx231xx dev)

Definition at line 1350 of file cx231xx-avcore.c.

void cx231xx_enable656 ( struct cx231xx dev)

Definition at line 934 of file cx231xx-avcore.c.

int cx231xx_enable_i2c_port_3 ( struct cx231xx dev,
bool  is_port_3 
)

Definition at line 1266 of file cx231xx-avcore.c.

u32 cx231xx_Get_Colibri_CarrierOffset ( u32  mode,
u32  standerd 
)

Definition at line 1527 of file cx231xx-avcore.c.

int cx231xx_get_gpio_bit ( struct cx231xx dev,
u32  gpio_bit,
u8 gpio_val 
)

Definition at line 2655 of file cx231xx-avcore.c.

int cx231xx_gpio_i2c_end ( struct cx231xx dev)

Definition at line 2779 of file cx231xx-avcore.c.

int cx231xx_gpio_i2c_read ( struct cx231xx dev,
u8  dev_addr,
u8 buf,
u8  len 
)

Definition at line 3012 of file cx231xx-avcore.c.

int cx231xx_gpio_i2c_read_ack ( struct cx231xx dev)

Definition at line 2904 of file cx231xx-avcore.c.

int cx231xx_gpio_i2c_read_byte ( struct cx231xx dev,
u8 buf 
)

Definition at line 2862 of file cx231xx-avcore.c.

int cx231xx_gpio_i2c_start ( struct cx231xx dev)

Definition at line 2746 of file cx231xx-avcore.c.

int cx231xx_gpio_i2c_write ( struct cx231xx dev,
u8  dev_addr,
u8 buf,
u8  len 
)

Definition at line 3056 of file cx231xx-avcore.c.

int cx231xx_gpio_i2c_write_ack ( struct cx231xx dev)

Definition at line 2958 of file cx231xx-avcore.c.

int cx231xx_gpio_i2c_write_byte ( struct cx231xx dev,
u8  data 
)

Definition at line 2815 of file cx231xx-avcore.c.

int cx231xx_gpio_i2c_write_nak ( struct cx231xx dev)

Definition at line 2986 of file cx231xx-avcore.c.

int cx231xx_i2s_blk_initialize ( struct cx231xx dev)

Definition at line 2142 of file cx231xx-avcore.c.

int cx231xx_i2s_blk_set_audio_input ( struct cx231xx dev,
u8  audio_input 
)

Definition at line 2181 of file cx231xx-avcore.c.

int cx231xx_i2s_blk_update_power_control ( struct cx231xx dev,
enum AV_MODE  avmode 
)

Definition at line 2160 of file cx231xx-avcore.c.

int cx231xx_init_ctrl_pin_status ( struct cx231xx dev)

Definition at line 1236 of file cx231xx-avcore.c.

int cx231xx_initialize_stream_xfer ( struct cx231xx dev,
u32  media_type 
)

Definition at line 2511 of file cx231xx-avcore.c.

int cx231xx_power_suspend ( struct cx231xx dev)

Definition at line 2434 of file cx231xx-avcore.c.

int cx231xx_set_agc_analog_digital_mux_select ( struct cx231xx dev,
u8  analog_or_digital 
)

Definition at line 1248 of file cx231xx-avcore.c.

int cx231xx_set_audio_decoder_input ( struct cx231xx dev,
enum AUDIO_INPUT  audio_input 
)

Definition at line 1103 of file cx231xx-avcore.c.

int cx231xx_set_audio_input ( struct cx231xx dev,
u8  input 
)

Definition at line 1081 of file cx231xx-avcore.c.

void cx231xx_set_Colibri_For_LowIF ( struct cx231xx dev,
u32  if_freq,
u8  spectral_invert,
u32  mode 
)

Definition at line 1491 of file cx231xx-avcore.c.

int cx231xx_set_decoder_video_input ( struct cx231xx dev,
u8  pin_type,
u8  input 
)

Definition at line 621 of file cx231xx-avcore.c.

void cx231xx_set_DIF_bandpass ( struct cx231xx dev,
u32  if_freq,
u8  spectral_invert,
u32  mode 
)

Definition at line 1545 of file cx231xx-avcore.c.

int cx231xx_set_gpio_bit ( struct cx231xx dev,
u32  gpio_bit,
u8 gpio_val 
)

Definition at line 2646 of file cx231xx-avcore.c.

int cx231xx_set_gpio_direction ( struct cx231xx dev,
int  pin_number,
int  pin_value 
)

Definition at line 2675 of file cx231xx-avcore.c.

int cx231xx_set_gpio_value ( struct cx231xx dev,
int  pin_number,
int  pin_value 
)

Definition at line 2710 of file cx231xx-avcore.c.

int cx231xx_set_power_mode ( struct cx231xx dev,
enum AV_MODE  mode 
)

Definition at line 2205 of file cx231xx-avcore.c.

int cx231xx_set_video_input_mux ( struct cx231xx dev,
u8  input 
)

Definition at line 562 of file cx231xx-avcore.c.

void cx231xx_Setup_AFE_for_LowIF ( struct cx231xx dev)

Definition at line 1435 of file cx231xx-avcore.c.

int cx231xx_start_stream ( struct cx231xx dev,
u32  ep_mask 
)

Definition at line 2461 of file cx231xx-avcore.c.

int cx231xx_stop_stream ( struct cx231xx dev,
u32  ep_mask 
)

Definition at line 2486 of file cx231xx-avcore.c.

int cx231xx_tuner_post_channel_change ( struct cx231xx dev)

Definition at line 2108 of file cx231xx-avcore.c.

int cx231xx_tuner_pre_channel_change ( struct cx231xx dev)

Definition at line 2093 of file cx231xx-avcore.c.

int cx231xx_unmute_audio ( struct cx231xx dev)

Definition at line 1065 of file cx231xx-avcore.c.

EXPORT_SYMBOL_GPL ( cx231xx_enable656  )
EXPORT_SYMBOL_GPL ( cx231xx_disable656  )
EXPORT_SYMBOL_GPL ( cx231xx_unmute_audio  )
EXPORT_SYMBOL_GPL ( cx231xx_enable_i2c_port_3  )
EXPORT_SYMBOL_GPL ( cx231xx_capture_start  )
void initGPIO ( struct cx231xx dev)

Definition at line 76 of file cx231xx-avcore.c.

int restartAudioFirmware ( struct cx231xx dev)

Definition at line 1076 of file cx231xx-avcore.c.

int stopAudioFirmware ( struct cx231xx dev)

Definition at line 1071 of file cx231xx-avcore.c.

void uninitGPIO ( struct cx231xx dev)

Definition at line 98 of file cx231xx-avcore.c.

void update_HH_register_after_set_DIF ( struct cx231xx dev)

Definition at line 1301 of file cx231xx-avcore.c.