Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
29a0a4fe
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
29a0a4fe
编写于
7月 20, 2011
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[media] mt2063: Remove unused data structures
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
上级
fdf77a4f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
83 deletion
+14
-83
drivers/media/common/tuners/mt2063.c
drivers/media/common/tuners/mt2063.c
+14
-83
未找到文件。
drivers/media/common/tuners/mt2063.c
浏览文件 @
29a0a4fe
...
...
@@ -16,52 +16,34 @@ module_param(verbose, int, 0644);
#define DVBFE_TUNER_SOFTWARE_SHUTDOWN 100
#define DVBFE_TUNER_CLEAR_POWER_MASKBITS 101
/* FIXME: Those error codes need conversion*/
/* FIXME: Those
two
error codes need conversion*/
/* Error: Upconverter PLL is not locked */
#define MT2063_UPC_UNLOCK (0x80000002)
/* Error: Downconverter PLL is not locked */
#define MT2063_DNC_UNLOCK (0x80000004)
/* Info: Unavoidable LO-related spur may be present in the output */
#define MT2063_SPUR_PRESENT_ERR
(0x00800000)
#define MT2063_SPUR_PRESENT_ERR (0x00800000)
/* Info: Mask of bits used for # of LO-related spurs that were avoided during tuning */
#define MT2063_SPUR_CNT_MASK (0x001f0000)
#define MT2063_SPUR_SHIFT (16)
/* Info: Tuner input frequency is out of range */
#define MT2063_FIN_RANGE (0x01000000)
/* Info: Tuner output frequency is out of range */
#define MT2063_FOUT_RANGE (0x02000000)
/* Info: Upconverter frequency is out of range (may be reason for MT_UPC_UNLOCK) */
#define MT2063_UPC_RANGE (0x04000000)
/* Info: Downconverter frequency is out of range (may be reason for MT_DPC_UNLOCK) */
#define MT2063_DNC_RANGE (0x08000000)
/*
* Data Types
*/
#define MAX_UDATA (4294967295)
/* max value storable in u32 */
/*
* Define an MTxxxx_CNT macro for each type of tuner that will be built
* into your application (e.g., MT2121, MT2060). MT_TUNER_CNT
* must be set to the SUM of all of the MTxxxx_CNT macros.
*
* #define MT2050_CNT (1)
* #define MT2060_CNT (1)
* #define MT2111_CNT (1)
* #define MT2121_CNT (3)
*/
#define MT2063_TUNER_CNT (1)
/* total num of MicroTuner tuners */
#define MT2063_I2C (0xC0)
/*
* Data Types
*/
/*
* Constant defining the version of the following structure
* and therefore the API for this code.
...
...
@@ -89,8 +71,6 @@ enum MT2063_DECT_Avoid_Type {
#define MT2063_MAX_ZONES 48
struct
MT2063_ExclZone_t
;
struct
MT2063_ExclZone_t
{
u32
min_
;
u32
max_
;
...
...
@@ -129,57 +109,6 @@ struct MT2063_AvoidSpursData_t {
struct
MT2063_ExclZone_t
MT2063_ExclZones
[
MT2063_MAX_ZONES
];
};
/*
* Values returned by the MT2063's on-chip temperature sensor
* to be read/written.
*/
enum
MT2063_Temperature
{
MT2063_T_0C
=
0
,
/* Temperature approx 0C */
MT2063_T_10C
,
/* Temperature approx 10C */
MT2063_T_20C
,
/* Temperature approx 20C */
MT2063_T_30C
,
/* Temperature approx 30C */
MT2063_T_40C
,
/* Temperature approx 40C */
MT2063_T_50C
,
/* Temperature approx 50C */
MT2063_T_60C
,
/* Temperature approx 60C */
MT2063_T_70C
,
/* Temperature approx 70C */
MT2063_T_80C
,
/* Temperature approx 80C */
MT2063_T_90C
,
/* Temperature approx 90C */
MT2063_T_100C
,
/* Temperature approx 100C */
MT2063_T_110C
,
/* Temperature approx 110C */
MT2063_T_120C
,
/* Temperature approx 120C */
MT2063_T_130C
,
/* Temperature approx 130C */
MT2063_T_140C
,
/* Temperature approx 140C */
MT2063_T_150C
,
/* Temperature approx 150C */
};
/*
* Parameters for selecting GPIO bits
*/
enum
MT2063_GPIO_Attr
{
MT2063_GPIO_IN
,
MT2063_GPIO_DIR
,
MT2063_GPIO_OUT
,
};
enum
MT2063_GPIO_ID
{
MT2063_GPIO0
,
MT2063_GPIO1
,
MT2063_GPIO2
,
};
/*
* Parameter for function MT2063_SetExtSRO that specifies the external
* SRO drive frequency.
*
* MT2063_EXT_SRO_OFF is the power-up default value.
*/
enum
MT2063_Ext_SRO
{
MT2063_EXT_SRO_OFF
,
/* External SRO drive off */
MT2063_EXT_SRO_BY_4
,
/* External SRO drive divide by 4 */
MT2063_EXT_SRO_BY_2
,
/* External SRO drive divide by 2 */
MT2063_EXT_SRO_BY_1
/* External SRO drive divide by 1 */
};
/*
* Parameter for function MT2063_SetPowerMask that specifies the power down
* of various sections of the MT2063.
...
...
@@ -456,7 +385,6 @@ struct MT2063_Info_t {
u32
num_regs
;
u8
reg
[
MT2063_REG_END_REGS
];
};
typedef
struct
MT2063_Info_t
*
pMT2063_Info_t
;
enum
MTTune_atv_standard
{
MTTUNEA_UNKNOWN
=
0
,
...
...
@@ -498,7 +426,8 @@ static u32 MT2063_Close(struct MT2063_Info_t *pInfo);
static
u32
MT2063_GetReg
(
struct
MT2063_Info_t
*
pInfo
,
u8
reg
,
u8
*
val
);
static
u32
MT2063_GetParam
(
struct
MT2063_Info_t
*
pInfo
,
enum
MT2063_Param
param
,
u32
*
pValue
);
static
u32
MT2063_SetReg
(
struct
MT2063_Info_t
*
pInfo
,
u8
reg
,
u8
val
);
static
u32
MT2063_SetParam
(
struct
MT2063_Info_t
*
pInfo
,
enum
MT2063_Param
param
,
u32
nValue
);
static
u32
MT2063_SetParam
(
struct
MT2063_Info_t
*
pInfo
,
enum
MT2063_Param
param
,
enum
MT2063_DNC_Output_Enable
nValue
);
/*****************/
/* From drivers/media/common/tuners/mt2063_cfg.h */
...
...
@@ -2236,7 +2165,7 @@ static u32 MT2063_GetLocked(struct MT2063_Info_t *pInfo)
** 06-24-2008 PINZ Ver 1.18: Add Get/SetParam CTFILT_SW
**
****************************************************************************/
static
u32
MT2063_GetParam
(
struct
MT2063_Info_t
*
pInfo
,
enum
MT2063_Param
param
,
u32
*
pValue
)
static
u32
MT2063_GetParam
(
struct
MT2063_Info_t
*
pInfo
,
enum
MT2063_Param
param
,
u32
*
pValue
)
{
u32
status
=
0
;
/* Status to be returned */
u32
Div
;
...
...
@@ -3221,7 +3150,9 @@ static u32 MT2063_ReInit(struct MT2063_Info_t *pInfo)
** 06-24-2008 PINZ Ver 1.18: Add Get/SetParam CTFILT_SW
**
****************************************************************************/
static
u32
MT2063_SetParam
(
struct
MT2063_Info_t
*
pInfo
,
enum
MT2063_Param
param
,
u32
nValue
)
static
u32
MT2063_SetParam
(
struct
MT2063_Info_t
*
pInfo
,
enum
MT2063_Param
param
,
enum
MT2063_DNC_Output_Enable
nValue
)
{
u32
status
=
0
;
/* Status to be returned */
u8
val
=
0
;
...
...
@@ -3599,7 +3530,7 @@ static u32 MT2063_SetParam(struct MT2063_Info_t *pInfo, enum MT2063_Param param,
case
MT2063_DNC_OUTPUT_ENABLE
:
/* selects, which DNC output is used */
switch
(
(
enum
MT2063_DNC_Output_Enable
)
nValue
)
{
switch
(
nValue
)
{
case
MT2063_DNC_NONE
:
{
val
=
(
pInfo
->
reg
[
MT2063_REG_DNC_GAIN
]
&
0xFC
)
|
0x03
;
/* Set DNC1GC=3 */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录