Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
6fb65a66
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
6fb65a66
编写于
1月 20, 2012
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[media] drxk: add support for Mpeg output clock drive strength config
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
上级
6e5caf84
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
9 deletion
+10
-9
drivers/media/dvb/dvb-usb/az6007.c
drivers/media/dvb/dvb-usb/az6007.c
+1
-2
drivers/media/dvb/frontends/drxk.h
drivers/media/dvb/frontends/drxk.h
+3
-1
drivers/media/dvb/frontends/drxk_hard.c
drivers/media/dvb/frontends/drxk_hard.c
+6
-6
未找到文件。
drivers/media/dvb/dvb-usb/az6007.c
浏览文件 @
6fb65a66
...
...
@@ -69,6 +69,7 @@ static struct drxk_config terratec_h7_drxk = {
.
single_master
=
true
,
.
no_i2c_bridge
=
false
,
.
chunk_size
=
64
,
.
mpeg_out_clk_strength
=
0x02
,
.
microcode_name
=
"dvb-usb-terratec-h7-az6007.fw"
,
};
...
...
@@ -278,12 +279,10 @@ static int az6007_led_on_off(struct usb_interface *intf, int onoff)
{
struct
usb_device
*
udev
=
interface_to_usbdev
(
intf
);
int
ret
;
/* TS through */
ret
=
az6007_write
(
udev
,
AZ6007_POWER
,
onoff
,
0
,
NULL
,
0
);
if
(
ret
<
0
)
err
(
"%s failed with error %d"
,
__func__
,
ret
);
return
ret
;
}
...
...
drivers/media/dvb/frontends/drxk.h
浏览文件 @
6fb65a66
...
...
@@ -17,6 +17,7 @@
* @antenna_gpio: GPIO bit used to control the antenna
* @antenna_dvbt: GPIO bit for changing antenna to DVB-C. A value of 1
* means that 1=DVBC, 0 = DVBT. Zero means the opposite.
* @mpeg_out_clk_strength: DRXK Mpeg output clock drive strength.
* @microcode_name: Name of the firmware file with the microcode
*
* On the *_gpio vars, bit 0 is UIO-1, bit 1 is UIO-2 and bit 2 is
...
...
@@ -32,7 +33,8 @@ struct drxk_config {
bool
antenna_dvbt
;
u16
antenna_gpio
;
int
chunk_size
;
u8
mpeg_out_clk_strength
;
int
chunk_size
;
const
char
*
microcode_name
;
};
...
...
drivers/media/dvb/frontends/drxk_hard.c
浏览文件 @
6fb65a66
...
...
@@ -91,10 +91,6 @@ bool IsA1WithRomCode(struct drxk_state *state)
#define DRXK_MPEG_PARALLEL_OUTPUT_PIN_DRIVE_STRENGTH (0x03)
#endif
#ifndef DRXK_MPEG_OUTPUT_CLK_DRIVE_STRENGTH
#define DRXK_MPEG_OUTPUT_CLK_DRIVE_STRENGTH (0x06)
#endif
#define DEFAULT_DRXK_MPEG_LOCK_TIMEOUT 700
#define DEFAULT_DRXK_DEMOD_LOCK_TIMEOUT 500
...
...
@@ -659,7 +655,6 @@ static int init_state(struct drxk_state *state)
u32
ulGPIOCfg
=
0x0113
;
u32
ulInvertTSClock
=
0
;
u32
ulTSDataStrength
=
DRXK_MPEG_SERIAL_OUTPUT_PIN_DRIVE_STRENGTH
;
u32
ulTSClockkStrength
=
DRXK_MPEG_OUTPUT_CLK_DRIVE_STRENGTH
;
u32
ulDVBTBitrate
=
50000000
;
u32
ulDVBCBitrate
=
DRXK_QAM_SYMBOLRATE_MAX
*
8
;
...
...
@@ -820,7 +815,6 @@ static int init_state(struct drxk_state *state)
state
->
m_DVBCBitrate
=
ulDVBCBitrate
;
state
->
m_TSDataStrength
=
(
ulTSDataStrength
&
0x07
);
state
->
m_TSClockkStrength
=
(
ulTSClockkStrength
&
0x07
);
/* Maximum bitrate in b/s in case static clockrate is selected */
state
->
m_mpegTsStaticBitrate
=
19392658
;
...
...
@@ -6394,6 +6388,12 @@ struct dvb_frontend *drxk_attach(const struct drxk_config *config,
state
->
m_DVBCStaticCLK
=
1
;
}
if
(
config
->
mpeg_out_clk_strength
)
state
->
m_TSClockkStrength
=
config
->
mpeg_out_clk_strength
&
0x07
;
else
state
->
m_TSClockkStrength
=
0x06
;
if
(
config
->
parallel_ts
)
state
->
m_enableParallel
=
true
;
else
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录