Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
d4e76681
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d4e76681
编写于
7月 18, 2007
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
V4L/DVB (6427): Some cleanups at tuner-xc2028 driver
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@infradead.org
>
上级
2e4160ca
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
31 deletion
+10
-31
drivers/media/video/tuner-xc2028.c
drivers/media/video/tuner-xc2028.c
+10
-31
未找到文件。
drivers/media/video/tuner-xc2028.c
浏览文件 @
d4e76681
...
@@ -314,28 +314,11 @@ static void generic_set_tv_freq(struct i2c_client *c, u32 freq /* in Hz */,
...
@@ -314,28 +314,11 @@ static void generic_set_tv_freq(struct i2c_client *c, u32 freq /* in Hz */,
struct
tuner
*
t
=
i2c_get_clientdata
(
c
);
struct
tuner
*
t
=
i2c_get_clientdata
(
c
);
u32
div
,
offset
=
0
;
u32
div
,
offset
=
0
;
printk
(
"xc3028: should set frequency %d kHz)
\n
"
,
freq
/
1000
);
/* HACK: It seems that specific firmware need to be reloaded
when freq is changed */
if
(
check_firmware
(
c
,
new_mode
,
bandwidth
)
<
0
)
struct
xc2028_data
*
xc2028
=
t
->
priv
;
return
;
if
(
new_mode
==
T_DIGITAL_TV
)
{
switch
(
bandwidth
)
{
case
BANDWIDTH_8_MHZ
:
offset
=
2750000
;
break
;
case
BANDWIDTH_7_MHZ
:
offset
=
2750000
;
break
;
case
BANDWIDTH_6_MHZ
:
default:
printk
(
KERN_ERR
"xc2028: bandwidth not implemented!
\n
"
);
}
}
div
=
(
freq
-
offset
+
DIV
/
2
)
/
DIV
;
xc2028
->
firm_type
=
0
;
/* Reset GPIO 1 */
/* Reset GPIO 1 */
if
(
t
->
tuner_callback
)
{
if
(
t
->
tuner_callback
)
{
...
@@ -345,17 +328,16 @@ static void generic_set_tv_freq(struct i2c_client *c, u32 freq /* in Hz */,
...
@@ -345,17 +328,16 @@ static void generic_set_tv_freq(struct i2c_client *c, u32 freq /* in Hz */,
return
;
return
;
}
}
msleep
(
10
);
msleep
(
10
);
printk
(
"xc3028: should set frequency %d kHz)
\n
"
,
freq
/
1000
);
char
*
name
;
if
(
check_firmware
(
c
,
new_mode
,
bandwidth
)
<
0
)
return
;
rc
=
load_firmware
(
c
,
firmware_INIT1
);
if
(
new_mode
==
T_DIGITAL_TV
)
offset
=
2750000
;
if
(
t
->
std
&
V4L2_STD_MN
)
div
=
(
freq
-
offset
+
DIV
/
2
)
/
DIV
;
name
=
firmware_MN
;
else
name
=
firmware_DK
;
rc
=
load_firmware
(
c
,
name
);
/* CMD= Set frequency */
/* CMD= Set frequency */
send_seq
(
c
,
{
0x00
,
0x02
,
0x00
,
0x00
});
send_seq
(
c
,
{
0x00
,
0x02
,
0x00
,
0x00
});
if
(
t
->
tuner_callback
)
{
if
(
t
->
tuner_callback
)
{
...
@@ -366,8 +348,6 @@ static void generic_set_tv_freq(struct i2c_client *c, u32 freq /* in Hz */,
...
@@ -366,8 +348,6 @@ static void generic_set_tv_freq(struct i2c_client *c, u32 freq /* in Hz */,
}
}
msleep
(
10
);
msleep
(
10
);
// send_seq(c, {0x00, 0x00, 0x10, 0xd0, 0x00});
// msleep(100);
buf
[
0
]
=
0xff
&
(
div
>>
24
);
buf
[
0
]
=
0xff
&
(
div
>>
24
);
buf
[
1
]
=
0xff
&
(
div
>>
16
);
buf
[
1
]
=
0xff
&
(
div
>>
16
);
...
@@ -383,7 +363,6 @@ static void generic_set_tv_freq(struct i2c_client *c, u32 freq /* in Hz */,
...
@@ -383,7 +363,6 @@ static void generic_set_tv_freq(struct i2c_client *c, u32 freq /* in Hz */,
printk
(
"divider= %02x %02x %02x %02x (freq=%d.%02d)
\n
"
,
printk
(
"divider= %02x %02x %02x %02x (freq=%d.%02d)
\n
"
,
buf
[
1
],
buf
[
2
],
buf
[
3
],
buf
[
4
],
buf
[
1
],
buf
[
2
],
buf
[
3
],
buf
[
4
],
freq
/
16
,
freq
%
16
*
100
/
16
);
freq
/
16
,
freq
%
16
*
100
/
16
);
// printk("signal=%d\n",xc2028_signal(c));
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录