Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
f2ba9e5d
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看板
提交
f2ba9e5d
编写于
7月 23, 2011
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[media] az6007: make driver less verbose
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
上级
067fb88c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
17 addition
and
18 deletion
+17
-18
drivers/media/dvb/dvb-usb/az6007.c
drivers/media/dvb/dvb-usb/az6007.c
+17
-18
未找到文件。
drivers/media/dvb/dvb-usb/az6007.c
浏览文件 @
f2ba9e5d
...
...
@@ -62,9 +62,9 @@ static int drxk_gate_ctrl(struct dvb_frontend *fe, int enable)
{
struct
dvb_usb_adapter
*
adap
=
fe
->
sec_priv
;
struct
az6007_device_state
*
st
;
int
status
;
int
status
=
0
;
info
(
"%s: %s
"
,
__func__
,
enable
?
"enable"
:
"disable"
);
deb_info
(
"%s: %s
\n
"
,
__func__
,
enable
?
"enable"
:
"disable"
);
if
(
!
adap
)
return
-
EINVAL
;
...
...
@@ -127,8 +127,7 @@ static int az6007_usb_out_op(struct dvb_usb_device *d, u8 req, u16 value,
debug_dump
(
b
,
blen
,
deb_xfer
);
if
(
blen
>
64
)
{
printk
(
KERN_ERR
"az6007: doesn't suport I2C transactions longer than 64 bytes
\n
"
);
err
(
"az6007: doesn't suport I2C transactions longer than 64 bytes
\n
"
);
return
-
EOPNOTSUPP
;
}
...
...
@@ -138,7 +137,7 @@ static int az6007_usb_out_op(struct dvb_usb_device *d, u8 req, u16 value,
USB_TYPE_VENDOR
|
USB_DIR_OUT
,
value
,
index
,
b
,
blen
,
5000
);
if
(
ret
!=
blen
)
{
warn
(
"usb out operation failed. (%d)"
,
ret
);
err
(
"usb out operation failed. (%d)"
,
ret
);
return
-
EIO
;
}
...
...
@@ -207,7 +206,8 @@ static int az6007_frontend_poweron(struct dvb_usb_adapter *adap)
u16
index
;
int
blen
;
info
(
"az6007_frontend_poweron adap=%p adap->dev=%p"
,
adap
,
adap
->
dev
);
deb_info
(
"az6007_frontend_poweron adap=%p adap->dev=%p
\n
"
,
adap
,
adap
->
dev
);
req
=
0xBC
;
value
=
1
;
/* power on */
...
...
@@ -245,7 +245,7 @@ static int az6007_frontend_poweron(struct dvb_usb_adapter *adap)
err
(
"az6007_frontend_poweron failed!!!"
);
return
-
EIO
;
}
info
(
"az6007_frontend_poweron: OK
"
);
deb_info
(
"az6007_frontend_poweron: OK
\n
"
);
return
0
;
}
...
...
@@ -258,7 +258,7 @@ static int az6007_frontend_reset(struct dvb_usb_adapter *adap)
u16
index
;
int
blen
;
info
(
"az6007_frontend_reset adap=%p adap->dev=%p
"
,
adap
,
adap
->
dev
);
deb_info
(
"az6007_frontend_reset adap=%p adap->dev=%p
\n
"
,
adap
,
adap
->
dev
);
/* reset demodulator */
req
=
0xC0
;
...
...
@@ -295,7 +295,7 @@ static int az6007_frontend_reset(struct dvb_usb_adapter *adap)
msleep_interruptible
(
200
);
info
(
"reset az6007 frontend
"
);
deb_info
(
"reset az6007 frontend
\n
"
);
return
0
;
}
...
...
@@ -361,8 +361,7 @@ static int az6007_frontend_attach(struct dvb_usb_adapter *adap)
az6007_frontend_poweron
(
adap
);
az6007_frontend_reset
(
adap
);
info
(
"az6007_frontend_attach: drxk"
);
info
(
"az6007: attaching demod drxk"
);
adap
->
fe
=
dvb_attach
(
drxk_attach
,
&
terratec_h7_drxk
,
&
adap
->
dev
->
i2c_adap
,
&
adap
->
fe2
);
if
(
!
adap
->
fe
)
{
...
...
@@ -370,7 +369,7 @@ static int az6007_frontend_attach(struct dvb_usb_adapter *adap)
goto
out_free
;
}
info
(
"Setting hacks
"
);
deb_info
(
"Setting hacks
\n
"
);
/* FIXME: do we need a pll semaphore? */
adap
->
fe
->
sec_priv
=
adap
;
...
...
@@ -379,7 +378,7 @@ static int az6007_frontend_attach(struct dvb_usb_adapter *adap)
adap
->
fe
->
ops
.
i2c_gate_ctrl
=
drxk_gate_ctrl
;
adap
->
fe2
->
id
=
1
;
info
(
"az6007
_frontend_attach:
mt2063"
);
info
(
"az6007
: attaching tuner
mt2063"
);
/* Attach mt2063 to DVB-C frontend */
if
(
adap
->
fe
->
ops
.
i2c_gate_ctrl
)
adap
->
fe
->
ops
.
i2c_gate_ctrl
(
adap
->
fe
,
1
);
...
...
@@ -513,7 +512,7 @@ static int az6007_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[],
mutex_unlock
(
&
d
->
i2c_mutex
);
if
(
ret
<
0
)
{
info
(
"%s ERROR: %i
\n
"
,
__func__
,
ret
);
info
(
"%s ERROR: %i"
,
__func__
,
ret
);
return
ret
;
}
return
num
;
...
...
@@ -538,11 +537,11 @@ int az6007_identify_state(struct usb_device *udev,
0xb7
,
USB_TYPE_VENDOR
|
USB_DIR_IN
,
6
,
0
,
b
,
6
,
USB_CTRL_GET_TIMEOUT
);
info
(
"FW GET_VERSION length: %d
"
,
ret
);
deb_info
(
"FW GET_VERSION length: %d
\n
"
,
ret
);
*
cold
=
ret
<=
0
;
info
(
"cold: %d
"
,
*
cold
);
deb_info
(
"cold: %d
\n
"
,
*
cold
);
return
0
;
}
...
...
@@ -629,7 +628,7 @@ static struct usb_driver az6007_usb_driver = {
static
int
__init
az6007_usb_module_init
(
void
)
{
int
result
;
info
(
"az6007 usb module init
"
);
deb_info
(
"az6007 usb module init
\n
"
);
result
=
usb_register
(
&
az6007_usb_driver
);
if
(
result
)
{
...
...
@@ -643,7 +642,7 @@ static int __init az6007_usb_module_init(void)
static
void
__exit
az6007_usb_module_exit
(
void
)
{
/* deregister this driver from the USB subsystem */
info
(
"az6007 usb module exit
"
);
deb_info
(
"az6007 usb module exit
\n
"
);
usb_deregister
(
&
az6007_usb_driver
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录