2019-06-03 05:44:51 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2006-06-26 23:58:46 +00:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Copyright (C) 2005 Mike Isely <isely@pobox.com>
|
|
|
|
*/
|
|
|
|
#ifndef __PVRUSB2_HDW_INTERNAL_H
|
|
|
|
#define __PVRUSB2_HDW_INTERNAL_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
This header sets up all the internal structures and definitions needed to
|
|
|
|
track and coordinate the driver's interaction with the hardware. ONLY
|
|
|
|
source files which actually implement part of that whole circus should be
|
|
|
|
including this header. Higher levels, like the external layers to the
|
|
|
|
various public APIs (V4L, sysfs, etc) should NOT ever include this
|
|
|
|
private, internal header. This means that pvrusb2-hdw, pvrusb2-encoder,
|
|
|
|
etc will include this, but pvrusb2-v4l should not.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/videodev2.h>
|
|
|
|
#include <linux/i2c.h>
|
2007-11-26 04:48:52 +00:00
|
|
|
#include <linux/workqueue.h>
|
2006-06-26 23:58:46 +00:00
|
|
|
#include <linux/mutex.h>
|
|
|
|
#include "pvrusb2-hdw.h"
|
|
|
|
#include "pvrusb2-io.h"
|
2009-03-07 02:20:31 +00:00
|
|
|
#include <media/v4l2-device.h>
|
2015-11-13 21:40:07 +00:00
|
|
|
#include <media/drv-intf/cx2341x.h>
|
2015-11-10 14:01:44 +00:00
|
|
|
#include <media/i2c/ir-kbd-i2c.h>
|
2007-11-26 04:53:12 +00:00
|
|
|
#include "pvrusb2-devattr.h"
|
2006-06-26 23:58:46 +00:00
|
|
|
|
|
|
|
/* Legal values for PVR2_CID_HSM */
|
|
|
|
#define PVR2_CVAL_HSM_FAIL 0
|
|
|
|
#define PVR2_CVAL_HSM_FULL 1
|
|
|
|
#define PVR2_CVAL_HSM_HIGH 2
|
|
|
|
|
|
|
|
#define PVR2_VID_ENDPOINT 0x84
|
|
|
|
#define PVR2_UNK_ENDPOINT 0x86 /* maybe raw yuv ? */
|
|
|
|
#define PVR2_VBI_ENDPOINT 0x88
|
|
|
|
|
|
|
|
#define PVR2_CTL_BUFFSIZE 64
|
|
|
|
|
|
|
|
#define FREQTABLE_SIZE 500
|
|
|
|
|
|
|
|
#define LOCK_TAKE(x) do { mutex_lock(&x##_mutex); x##_held = !0; } while (0)
|
|
|
|
#define LOCK_GIVE(x) do { x##_held = 0; mutex_unlock(&x##_mutex); } while (0)
|
|
|
|
|
|
|
|
typedef int (*pvr2_ctlf_is_dirty)(struct pvr2_ctrl *);
|
|
|
|
typedef void (*pvr2_ctlf_clear_dirty)(struct pvr2_ctrl *);
|
2006-12-28 02:28:54 +00:00
|
|
|
typedef int (*pvr2_ctlf_check_value)(struct pvr2_ctrl *,int);
|
2006-06-26 23:58:46 +00:00
|
|
|
typedef int (*pvr2_ctlf_get_value)(struct pvr2_ctrl *,int *);
|
|
|
|
typedef int (*pvr2_ctlf_set_value)(struct pvr2_ctrl *,int msk,int val);
|
|
|
|
typedef int (*pvr2_ctlf_val_to_sym)(struct pvr2_ctrl *,int msk,int val,
|
|
|
|
char *,unsigned int,unsigned int *);
|
|
|
|
typedef int (*pvr2_ctlf_sym_to_val)(struct pvr2_ctrl *,
|
|
|
|
const char *,unsigned int,
|
|
|
|
int *mskp,int *valp);
|
2006-06-25 23:04:44 +00:00
|
|
|
typedef unsigned int (*pvr2_ctlf_get_v4lflags)(struct pvr2_ctrl *);
|
2006-06-26 23:58:46 +00:00
|
|
|
|
|
|
|
/* This structure describes a specific control. A table of these is set up
|
|
|
|
in pvrusb2-hdw.c. */
|
|
|
|
struct pvr2_ctl_info {
|
|
|
|
/* Control's name suitable for use as an identifier */
|
|
|
|
const char *name;
|
|
|
|
|
|
|
|
/* Short description of control */
|
|
|
|
const char *desc;
|
|
|
|
|
|
|
|
/* Control's implementation */
|
|
|
|
pvr2_ctlf_get_value get_value; /* Get its value */
|
2008-08-31 23:55:03 +00:00
|
|
|
pvr2_ctlf_get_value get_def_value; /* Get its default value */
|
2006-08-08 12:10:07 +00:00
|
|
|
pvr2_ctlf_get_value get_min_value; /* Get minimum allowed value */
|
|
|
|
pvr2_ctlf_get_value get_max_value; /* Get maximum allowed value */
|
2006-06-26 23:58:46 +00:00
|
|
|
pvr2_ctlf_set_value set_value; /* Set its value */
|
2006-12-28 02:28:54 +00:00
|
|
|
pvr2_ctlf_check_value check_value; /* Check that value is valid */
|
2006-06-26 23:58:46 +00:00
|
|
|
pvr2_ctlf_val_to_sym val_to_sym; /* Custom convert value->symbol */
|
|
|
|
pvr2_ctlf_sym_to_val sym_to_val; /* Custom convert symbol->value */
|
|
|
|
pvr2_ctlf_is_dirty is_dirty; /* Return true if dirty */
|
|
|
|
pvr2_ctlf_clear_dirty clear_dirty; /* Clear dirty state */
|
2006-06-25 23:04:44 +00:00
|
|
|
pvr2_ctlf_get_v4lflags get_v4lflags;/* Retrieve v4l flags */
|
2006-06-26 23:58:46 +00:00
|
|
|
|
|
|
|
/* Control's type (int, enum, bitmask) */
|
|
|
|
enum pvr2_ctl_type type;
|
|
|
|
|
|
|
|
/* Associated V4L control ID, if any */
|
|
|
|
int v4l_id;
|
|
|
|
|
|
|
|
/* Associated driver internal ID, if any */
|
|
|
|
int internal_id;
|
|
|
|
|
|
|
|
/* Don't implicitly initialize this control's value */
|
|
|
|
int skip_init;
|
|
|
|
|
|
|
|
/* Starting value for this control */
|
|
|
|
int default_value;
|
|
|
|
|
|
|
|
/* Type-specific control information */
|
|
|
|
union {
|
|
|
|
struct { /* Integer control */
|
|
|
|
long min_value; /* lower limit */
|
|
|
|
long max_value; /* upper limit */
|
|
|
|
} type_int;
|
|
|
|
struct { /* enumerated control */
|
|
|
|
unsigned int count; /* enum value count */
|
2010-12-29 17:25:52 +00:00
|
|
|
const char * const *value_names; /* symbol names */
|
2006-06-26 23:58:46 +00:00
|
|
|
} type_enum;
|
|
|
|
struct { /* bitmask control */
|
|
|
|
unsigned int valid_bits; /* bits in use */
|
|
|
|
const char **bit_names; /* symbol name/bit */
|
|
|
|
} type_bitmask;
|
|
|
|
} def;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-06-25 23:04:25 +00:00
|
|
|
/* Same as pvr2_ctl_info, but includes storage for the control description */
|
|
|
|
#define PVR2_CTLD_INFO_DESC_SIZE 32
|
|
|
|
struct pvr2_ctld_info {
|
|
|
|
struct pvr2_ctl_info info;
|
|
|
|
char desc[PVR2_CTLD_INFO_DESC_SIZE];
|
|
|
|
};
|
|
|
|
|
2006-06-26 23:58:46 +00:00
|
|
|
struct pvr2_ctrl {
|
|
|
|
const struct pvr2_ctl_info *info;
|
|
|
|
struct pvr2_hdw *hdw;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Disposition of firmware1 loading situation */
|
|
|
|
#define FW1_STATE_UNKNOWN 0
|
|
|
|
#define FW1_STATE_MISSING 1
|
|
|
|
#define FW1_STATE_FAILED 2
|
|
|
|
#define FW1_STATE_RELOAD 3
|
|
|
|
#define FW1_STATE_OK 4
|
|
|
|
|
2008-04-22 17:45:40 +00:00
|
|
|
/* What state the device is in if it is a hybrid */
|
|
|
|
#define PVR2_PATHWAY_UNKNOWN 0
|
|
|
|
#define PVR2_PATHWAY_ANALOG 1
|
|
|
|
#define PVR2_PATHWAY_DIGITAL 2
|
|
|
|
|
2006-06-26 23:58:46 +00:00
|
|
|
typedef int (*pvr2_i2c_func)(struct pvr2_hdw *,u8,u8 *,u16,u8 *, u16);
|
|
|
|
#define PVR2_I2C_FUNC_CNT 128
|
|
|
|
|
|
|
|
/* This structure contains all state data directly needed to
|
|
|
|
manipulate the hardware (as opposed to complying with a kernel
|
|
|
|
interface) */
|
|
|
|
struct pvr2_hdw {
|
|
|
|
/* Underlying USB device handle */
|
|
|
|
struct usb_device *usb_dev;
|
|
|
|
struct usb_interface *usb_intf;
|
|
|
|
|
2009-03-07 02:20:31 +00:00
|
|
|
/* Our handle into the v4l2 sub-device architecture */
|
|
|
|
struct v4l2_device v4l2_dev;
|
2007-11-26 04:55:07 +00:00
|
|
|
/* Device description, anything that must adjust behavior based on
|
|
|
|
device specific info will use information held here. */
|
2007-11-26 04:53:12 +00:00
|
|
|
const struct pvr2_device_desc *hdw_desc;
|
2006-06-26 23:58:46 +00:00
|
|
|
|
2007-11-26 04:48:52 +00:00
|
|
|
/* Kernel worker thread handling */
|
|
|
|
struct work_struct workpoll; /* Update driver state */
|
|
|
|
|
2006-06-26 23:58:46 +00:00
|
|
|
/* Video spigot */
|
|
|
|
struct pvr2_stream *vid_stream;
|
|
|
|
|
|
|
|
/* Mutex for all hardware state control */
|
|
|
|
struct mutex big_lock_mutex;
|
|
|
|
int big_lock_held; /* For debugging */
|
|
|
|
|
2009-01-14 07:22:56 +00:00
|
|
|
/* This is a simple string which identifies the instance of this
|
|
|
|
driver. It is unique within the set of existing devices, but
|
|
|
|
there is no attempt to keep the name consistent with the same
|
|
|
|
physical device each time. */
|
2006-06-26 23:58:46 +00:00
|
|
|
char name[32];
|
|
|
|
|
2009-01-14 07:22:56 +00:00
|
|
|
/* This is a simple string which identifies the physical device
|
|
|
|
instance itself - if possible. (If not possible, then it is
|
|
|
|
based on the specific driver instance, similar to name above.)
|
|
|
|
The idea here is that userspace might hopefully be able to use
|
|
|
|
this recognize specific tuners. It will encode a serial number,
|
|
|
|
if available. */
|
|
|
|
char identifier[32];
|
|
|
|
|
2006-06-26 23:58:46 +00:00
|
|
|
/* I2C stuff */
|
|
|
|
struct i2c_adapter i2c_adap;
|
|
|
|
struct i2c_algorithm i2c_algo;
|
|
|
|
pvr2_i2c_func i2c_func[PVR2_I2C_FUNC_CNT];
|
|
|
|
int i2c_cx25840_hack_state;
|
|
|
|
int i2c_linked;
|
|
|
|
|
2009-04-06 04:51:38 +00:00
|
|
|
/* IR related */
|
|
|
|
unsigned int ir_scheme_active; /* IR scheme as seen from the outside */
|
2011-01-17 00:21:03 +00:00
|
|
|
struct IR_i2c_init_data ir_init_data; /* params passed to IR modules */
|
2009-04-06 04:51:38 +00:00
|
|
|
|
2006-06-26 23:58:46 +00:00
|
|
|
/* Frequency table */
|
|
|
|
unsigned int freqTable[FREQTABLE_SIZE];
|
|
|
|
unsigned int freqProgSlot;
|
|
|
|
|
|
|
|
/* Stuff for handling low level control interaction with device */
|
|
|
|
struct mutex ctl_lock_mutex;
|
|
|
|
int ctl_lock_held; /* For debugging */
|
|
|
|
struct urb *ctl_write_urb;
|
|
|
|
struct urb *ctl_read_urb;
|
|
|
|
unsigned char *ctl_write_buffer;
|
|
|
|
unsigned char *ctl_read_buffer;
|
2007-12-03 04:43:23 +00:00
|
|
|
int ctl_write_pend_flag;
|
|
|
|
int ctl_read_pend_flag;
|
|
|
|
int ctl_timeout_flag;
|
2006-06-26 23:58:46 +00:00
|
|
|
struct completion ctl_done;
|
|
|
|
unsigned char cmd_buffer[PVR2_CTL_BUFFSIZE];
|
|
|
|
int cmd_debug_state; // Low level command debugging info
|
|
|
|
unsigned char cmd_debug_code; //
|
|
|
|
unsigned int cmd_debug_write_len; //
|
|
|
|
unsigned int cmd_debug_read_len; //
|
|
|
|
|
2007-11-26 04:48:52 +00:00
|
|
|
/* Bits of state that describe what is going on with various parts
|
|
|
|
of the driver. */
|
2008-04-22 17:45:40 +00:00
|
|
|
int state_pathway_ok; /* Pathway config is ok */
|
2007-12-03 04:44:43 +00:00
|
|
|
int state_encoder_ok; /* Encoder is operational */
|
|
|
|
int state_encoder_run; /* Encoder is running */
|
|
|
|
int state_encoder_config; /* Encoder is configured */
|
|
|
|
int state_encoder_waitok; /* Encoder pre-wait done */
|
2008-04-06 07:04:35 +00:00
|
|
|
int state_encoder_runok; /* Encoder has run for >= .25 sec */
|
2007-12-03 04:44:43 +00:00
|
|
|
int state_decoder_run; /* Decoder is running */
|
2010-02-06 05:10:38 +00:00
|
|
|
int state_decoder_ready; /* Decoder is stabilized & streamable */
|
2007-12-03 04:44:43 +00:00
|
|
|
int state_usbstream_run; /* FX2 is streaming */
|
2010-02-06 05:10:38 +00:00
|
|
|
int state_decoder_quiescent; /* Decoder idle for minimal interval */
|
2007-12-03 04:44:43 +00:00
|
|
|
int state_pipeline_config; /* Pipeline is configured */
|
2008-04-22 17:45:39 +00:00
|
|
|
int state_pipeline_req; /* Somebody wants to stream */
|
|
|
|
int state_pipeline_pause; /* Pipeline must be paused */
|
|
|
|
int state_pipeline_idle; /* Pipeline not running */
|
2007-11-26 04:48:52 +00:00
|
|
|
|
|
|
|
/* This is the master state of the driver. It is the combined
|
|
|
|
result of other bits of state. Examining this will indicate the
|
|
|
|
overall state of the driver. Values here are one of
|
|
|
|
PVR2_STATE_xxxx */
|
|
|
|
unsigned int master_state;
|
|
|
|
|
2008-04-22 17:45:42 +00:00
|
|
|
/* True if device led is currently on */
|
|
|
|
int led_on;
|
|
|
|
|
2007-11-26 04:48:52 +00:00
|
|
|
/* True if states must be re-evaluated */
|
|
|
|
int state_stale;
|
|
|
|
|
|
|
|
void (*state_func)(void *);
|
|
|
|
void *state_data;
|
|
|
|
|
2010-02-06 05:10:38 +00:00
|
|
|
/* Timer for measuring required decoder settling time before we're
|
|
|
|
allowed to fire it up again. */
|
2007-11-26 04:48:52 +00:00
|
|
|
struct timer_list quiescent_timer;
|
|
|
|
|
2010-02-06 05:10:38 +00:00
|
|
|
/* Timer for measuring decoder stabilization time, which is the
|
|
|
|
amount of time we need to let the decoder run before we can
|
|
|
|
trust its output (otherwise the encoder might see garbage and
|
|
|
|
then fail to start correctly). */
|
|
|
|
struct timer_list decoder_stabilization_timer;
|
|
|
|
|
2007-11-26 04:48:52 +00:00
|
|
|
/* Timer for measuring encoder pre-wait time */
|
|
|
|
struct timer_list encoder_wait_timer;
|
|
|
|
|
2008-04-06 07:04:35 +00:00
|
|
|
/* Timer for measuring encoder minimum run time */
|
|
|
|
struct timer_list encoder_run_timer;
|
|
|
|
|
2007-11-26 04:48:52 +00:00
|
|
|
/* Place to block while waiting for state changes */
|
|
|
|
wait_queue_head_t state_wait_data;
|
|
|
|
|
|
|
|
|
2009-03-07 04:57:25 +00:00
|
|
|
int force_dirty; /* consider all controls dirty if true */
|
2007-10-14 21:18:12 +00:00
|
|
|
int flag_ok; /* device in known good state */
|
2009-10-12 03:21:20 +00:00
|
|
|
int flag_modulefail; /* true if at least one module failed to load */
|
2007-10-14 21:18:12 +00:00
|
|
|
int flag_disconnected; /* flag_ok == 0 due to disconnect */
|
|
|
|
int flag_init_ok; /* true if structure is fully initialized */
|
|
|
|
int fw1_state; /* current situation with fw1 */
|
2008-04-22 17:45:40 +00:00
|
|
|
int pathway_state; /* one of PVR2_PATHWAY_xxx */
|
2007-11-26 04:48:52 +00:00
|
|
|
int flag_decoder_missed;/* We've noticed missing decoder */
|
|
|
|
int flag_tripped; /* Indicates overall failure to start */
|
2006-06-26 23:58:46 +00:00
|
|
|
|
2009-03-07 03:17:11 +00:00
|
|
|
unsigned int decoder_client_id;
|
2006-06-26 23:58:46 +00:00
|
|
|
|
|
|
|
// CPU firmware info (used to help find / save firmware data)
|
|
|
|
char *fw_buffer;
|
|
|
|
unsigned int fw_size;
|
2007-09-09 01:16:27 +00:00
|
|
|
int fw_cpu_flag; /* True if we are dealing with the CPU */
|
2006-06-26 23:58:46 +00:00
|
|
|
|
|
|
|
/* Tuner / frequency control stuff */
|
|
|
|
unsigned int tuner_type;
|
|
|
|
int tuner_updated;
|
2006-12-28 02:30:13 +00:00
|
|
|
unsigned int freqValTelevision; /* Current freq for tv mode */
|
|
|
|
unsigned int freqValRadio; /* Current freq for radio mode */
|
|
|
|
unsigned int freqSlotTelevision; /* Current slot for tv mode */
|
|
|
|
unsigned int freqSlotRadio; /* Current slot for radio mode */
|
|
|
|
unsigned int freqSelector; /* 0=radio 1=television */
|
2006-06-26 23:58:46 +00:00
|
|
|
int freqDirty;
|
|
|
|
|
2007-01-20 03:09:47 +00:00
|
|
|
/* Current tuner info - this information is polled from the I2C bus */
|
|
|
|
struct v4l2_tuner tuner_signal_info;
|
|
|
|
int tuner_signal_stale;
|
|
|
|
|
2008-09-01 00:02:20 +00:00
|
|
|
/* Cropping capability info */
|
|
|
|
struct v4l2_cropcap cropcap_info;
|
|
|
|
int cropcap_stale;
|
|
|
|
|
2006-06-26 23:58:46 +00:00
|
|
|
/* Video standard handling */
|
|
|
|
v4l2_std_id std_mask_eeprom; // Hardware supported selections
|
|
|
|
v4l2_std_id std_mask_avail; // Which standards we may select from
|
|
|
|
v4l2_std_id std_mask_cur; // Currently selected standard(s)
|
|
|
|
int std_enum_cur; // selected standard enumeration value
|
|
|
|
int std_dirty; // True if std_mask_cur has changed
|
|
|
|
struct pvr2_ctl_info std_info_enum;
|
|
|
|
struct pvr2_ctl_info std_info_avail;
|
|
|
|
struct pvr2_ctl_info std_info_cur;
|
2012-02-20 05:28:56 +00:00
|
|
|
struct pvr2_ctl_info std_info_detect;
|
2006-06-26 23:58:46 +00:00
|
|
|
|
|
|
|
// Generated string names, one per actual V4L2 standard
|
|
|
|
const char *std_mask_ptrs[32];
|
2012-02-20 05:31:25 +00:00
|
|
|
char std_mask_names[32][16];
|
2006-06-26 23:58:46 +00:00
|
|
|
|
|
|
|
int unit_number; /* ID for driver instance */
|
|
|
|
unsigned long serial_number; /* ID for hardware itself */
|
|
|
|
|
2007-04-08 04:11:47 +00:00
|
|
|
char bus_info[32]; /* Bus location info */
|
|
|
|
|
2006-12-28 02:07:58 +00:00
|
|
|
/* Minor numbers used by v4l logic (yes, this is a hack, as there
|
|
|
|
should be no v4l junk here). Probably a better way to do this. */
|
2006-12-28 02:12:28 +00:00
|
|
|
int v4l_minor_number_video;
|
|
|
|
int v4l_minor_number_vbi;
|
2006-12-28 02:11:22 +00:00
|
|
|
int v4l_minor_number_radio;
|
2006-06-26 23:58:46 +00:00
|
|
|
|
2008-04-21 06:47:43 +00:00
|
|
|
/* Bit mask of PVR2_CVAL_INPUT choices which are valid for the hardware */
|
2008-04-22 17:45:37 +00:00
|
|
|
unsigned int input_avail_mask;
|
tree-wide: fix assorted typos all over the place
That is "success", "unknown", "through", "performance", "[re|un]mapping"
, "access", "default", "reasonable", "[con]currently", "temperature"
, "channel", "[un]used", "application", "example","hierarchy", "therefore"
, "[over|under]flow", "contiguous", "threshold", "enough" and others.
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2009-11-14 15:09:05 +00:00
|
|
|
/* Bit mask of PVR2_CVAL_INPUT choices which are currently allowed */
|
2008-04-21 06:47:43 +00:00
|
|
|
unsigned int input_allowed_mask;
|
2008-04-22 17:45:37 +00:00
|
|
|
|
2006-06-26 23:58:46 +00:00
|
|
|
/* Location of eeprom or a negative number if none */
|
|
|
|
int eeprom_addr;
|
|
|
|
|
2007-11-26 04:48:52 +00:00
|
|
|
enum pvr2_config active_stream_type;
|
|
|
|
enum pvr2_config desired_stream_type;
|
2006-06-26 23:58:46 +00:00
|
|
|
|
2006-06-25 23:05:01 +00:00
|
|
|
/* Control state needed for cx2341x module */
|
|
|
|
struct cx2341x_mpeg_params enc_cur_state;
|
|
|
|
struct cx2341x_mpeg_params enc_ctl_state;
|
|
|
|
/* True if an encoder attribute has changed */
|
|
|
|
int enc_stale;
|
2007-11-26 04:48:52 +00:00
|
|
|
/* True if an unsafe encoder attribute has changed */
|
|
|
|
int enc_unsafe_stale;
|
2006-06-25 23:05:01 +00:00
|
|
|
/* True if enc_cur_state is valid */
|
|
|
|
int enc_cur_valid;
|
2006-06-25 23:04:25 +00:00
|
|
|
|
2006-06-26 23:58:46 +00:00
|
|
|
/* Control state */
|
|
|
|
#define VCREATE_DATA(lab) int lab##_val; int lab##_dirty
|
|
|
|
VCREATE_DATA(brightness);
|
|
|
|
VCREATE_DATA(contrast);
|
|
|
|
VCREATE_DATA(saturation);
|
|
|
|
VCREATE_DATA(hue);
|
|
|
|
VCREATE_DATA(volume);
|
|
|
|
VCREATE_DATA(balance);
|
|
|
|
VCREATE_DATA(bass);
|
|
|
|
VCREATE_DATA(treble);
|
|
|
|
VCREATE_DATA(mute);
|
2008-08-30 21:26:39 +00:00
|
|
|
VCREATE_DATA(cropl);
|
|
|
|
VCREATE_DATA(cropt);
|
|
|
|
VCREATE_DATA(cropw);
|
|
|
|
VCREATE_DATA(croph);
|
2006-06-25 23:04:25 +00:00
|
|
|
VCREATE_DATA(input);
|
|
|
|
VCREATE_DATA(audiomode);
|
|
|
|
VCREATE_DATA(res_hor);
|
|
|
|
VCREATE_DATA(res_ver);
|
2006-06-26 23:58:46 +00:00
|
|
|
VCREATE_DATA(srate);
|
|
|
|
#undef VCREATE_DATA
|
|
|
|
|
2006-06-25 23:05:01 +00:00
|
|
|
struct pvr2_ctld_info *mpeg_ctrl_info;
|
2006-06-25 23:04:25 +00:00
|
|
|
|
2006-06-26 23:58:46 +00:00
|
|
|
struct pvr2_ctrl *controls;
|
2006-06-25 23:04:25 +00:00
|
|
|
unsigned int control_cnt;
|
2006-06-26 23:58:46 +00:00
|
|
|
};
|
|
|
|
|
2006-12-28 02:30:13 +00:00
|
|
|
/* This function gets the current frequency */
|
|
|
|
unsigned long pvr2_hdw_get_cur_freq(struct pvr2_hdw *);
|
|
|
|
|
2009-03-07 02:30:37 +00:00
|
|
|
void pvr2_hdw_status_poll(struct pvr2_hdw *);
|
|
|
|
|
2006-06-26 23:58:46 +00:00
|
|
|
#endif /* __PVRUSB2_HDW_INTERNAL_H */
|