Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
6cb393c8
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看板
提交
6cb393c8
编写于
1月 05, 2012
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[media] drxk_hard: fix locking issues when changing the delsys
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
上级
fa4b2a17
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
24 addition
and
22 deletion
+24
-22
drivers/media/dvb/frontends/drxk_hard.c
drivers/media/dvb/frontends/drxk_hard.c
+24
-21
drivers/media/dvb/frontends/drxk_hard.h
drivers/media/dvb/frontends/drxk_hard.h
+0
-1
未找到文件。
drivers/media/dvb/frontends/drxk_hard.c
浏览文件 @
6cb393c8
...
...
@@ -6188,7 +6188,6 @@ static int drxk_sleep(struct dvb_frontend *fe)
dprintk
(
1
,
"
\n
"
);
ShutDown
(
state
);
mutex_unlock
(
&
state
->
ctlock
);
return
0
;
}
...
...
@@ -6203,7 +6202,7 @@ static int drxk_gate_ctrl(struct dvb_frontend *fe, int enable)
static
int
drxk_set_parameters
(
struct
dvb_frontend
*
fe
)
{
struct
dtv_frontend_properties
*
p
=
&
fe
->
dtv_property_cache
;
u32
delsys
=
p
->
delivery_system
;
u32
delsys
=
p
->
delivery_system
,
old_delsys
;
struct
drxk_state
*
state
=
fe
->
demodulator_priv
;
u32
IF
;
...
...
@@ -6221,28 +6220,33 @@ static int drxk_set_parameters(struct dvb_frontend *fe)
fe
->
ops
.
tuner_ops
.
set_params
(
fe
);
if
(
fe
->
ops
.
i2c_gate_ctrl
)
fe
->
ops
.
i2c_gate_ctrl
(
fe
,
0
);
old_delsys
=
state
->
props
.
delivery_system
;
state
->
props
=
*
p
;
switch
(
delsys
)
{
case
SYS_DVBC_ANNEX_A
:
case
SYS_DVBC_ANNEX_C
:
if
(
!
state
->
m_hasDVBC
)
return
-
EINVAL
;
state
->
m_itut_annex_c
=
(
delsys
==
SYS_DVBC_ANNEX_C
)
?
true
:
false
;
if
(
state
->
m_itut_annex_c
)
SetOperationMode
(
state
,
OM_QAM_ITU_C
);
else
SetOperationMode
(
state
,
OM_QAM_ITU_A
);
if
(
old_delsys
!=
delsys
)
{
ShutDown
(
state
);
switch
(
delsys
)
{
case
SYS_DVBC_ANNEX_A
:
case
SYS_DVBC_ANNEX_C
:
if
(
!
state
->
m_hasDVBC
)
return
-
EINVAL
;
state
->
m_itut_annex_c
=
(
delsys
==
SYS_DVBC_ANNEX_C
)
?
true
:
false
;
if
(
state
->
m_itut_annex_c
)
SetOperationMode
(
state
,
OM_QAM_ITU_C
);
else
SetOperationMode
(
state
,
OM_QAM_ITU_A
);
break
;
state
->
m_itut_annex_c
=
true
;
break
;
state
->
m_itut_annex_c
=
true
;
break
;
case
SYS_DVBT
:
if
(
!
state
->
m_hasDVBT
)
case
SYS_DVBT
:
if
(
!
state
->
m_hasDVBT
)
return
-
EINVAL
;
SetOperationMode
(
state
,
OM_DVBT
);
break
;
default:
return
-
EINVAL
;
SetOperationMode
(
state
,
OM_DVBT
);
break
;
default:
return
-
EINVAL
;
}
}
fe
->
ops
.
tuner_ops
.
get_if_frequency
(
fe
,
&
IF
);
...
...
@@ -6405,7 +6409,6 @@ struct dvb_frontend *drxk_attach(const struct drxk_config *config,
state
->
m_GPIO
&=
~
state
->
antenna_gpio
;
mutex_init
(
&
state
->
mutex
);
mutex_init
(
&
state
->
ctlock
);
memcpy
(
&
state
->
frontend
.
ops
,
&
drxk_ops
,
sizeof
(
drxk_ops
));
state
->
frontend
.
demodulator_priv
=
state
;
...
...
drivers/media/dvb/frontends/drxk_hard.h
浏览文件 @
6cb393c8
...
...
@@ -204,7 +204,6 @@ struct drxk_state {
void
*
priv
;
struct
mutex
mutex
;
struct
mutex
ctlock
;
u32
m_Instance
;
/**< Channel 1,2,3 or 4 */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录