Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
872d65f6
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看板
提交
872d65f6
编写于
4月 16, 2010
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'fix/misc' into for-linus
上级
d336905e
b68b58fd
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
23 addition
and
8 deletion
+23
-8
sound/arm/aaci.c
sound/arm/aaci.c
+5
-2
sound/usb/usbmidi.c
sound/usb/usbmidi.c
+18
-6
未找到文件。
sound/arm/aaci.c
浏览文件 @
872d65f6
...
...
@@ -863,7 +863,6 @@ static int __devinit aaci_probe_ac97(struct aaci *aaci)
struct
snd_ac97
*
ac97
;
int
ret
;
writel
(
0
,
aaci
->
base
+
AC97_POWERDOWN
);
/*
* Assert AACIRESET for 2us
*/
...
...
@@ -1047,7 +1046,11 @@ static int __devinit aaci_probe(struct amba_device *dev, struct amba_id *id)
writel
(
0x1fff
,
aaci
->
base
+
AACI_INTCLR
);
writel
(
aaci
->
maincr
,
aaci
->
base
+
AACI_MAINCR
);
/*
* Fix: ac97 read back fail errors by reading
* from any arbitrary aaci register.
*/
readl
(
aaci
->
base
+
AACI_CSCH1
);
ret
=
aaci_probe_ac97
(
aaci
);
if
(
ret
)
goto
out
;
...
...
sound/usb/usbmidi.c
浏览文件 @
872d65f6
...
...
@@ -986,6 +986,8 @@ static void snd_usbmidi_output_drain(struct snd_rawmidi_substream *substream)
DEFINE_WAIT
(
wait
);
long
timeout
=
msecs_to_jiffies
(
50
);
if
(
ep
->
umidi
->
disconnected
)
return
;
/*
* The substream buffer is empty, but some data might still be in the
* currently active URBs, so we have to wait for those to complete.
...
...
@@ -1123,14 +1125,21 @@ static int snd_usbmidi_in_endpoint_create(struct snd_usb_midi* umidi,
* Frees an output endpoint.
* May be called when ep hasn't been initialized completely.
*/
static
void
snd_usbmidi_out_endpoint_
delete
(
struct
snd_usb_midi_out_endpoint
*
ep
)
static
void
snd_usbmidi_out_endpoint_
clear
(
struct
snd_usb_midi_out_endpoint
*
ep
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
OUTPUT_URBS
;
++
i
)
if
(
ep
->
urbs
[
i
].
urb
)
if
(
ep
->
urbs
[
i
].
urb
)
{
free_urb_and_buffer
(
ep
->
umidi
,
ep
->
urbs
[
i
].
urb
,
ep
->
max_transfer
);
ep
->
urbs
[
i
].
urb
=
NULL
;
}
}
static
void
snd_usbmidi_out_endpoint_delete
(
struct
snd_usb_midi_out_endpoint
*
ep
)
{
snd_usbmidi_out_endpoint_clear
(
ep
);
kfree
(
ep
);
}
...
...
@@ -1262,15 +1271,18 @@ void snd_usbmidi_disconnect(struct list_head* p)
usb_kill_urb
(
ep
->
out
->
urbs
[
j
].
urb
);
if
(
umidi
->
usb_protocol_ops
->
finish_out_endpoint
)
umidi
->
usb_protocol_ops
->
finish_out_endpoint
(
ep
->
out
);
ep
->
out
->
active_urbs
=
0
;
if
(
ep
->
out
->
drain_urbs
)
{
ep
->
out
->
drain_urbs
=
0
;
wake_up
(
&
ep
->
out
->
drain_wait
);
}
}
if
(
ep
->
in
)
for
(
j
=
0
;
j
<
INPUT_URBS
;
++
j
)
usb_kill_urb
(
ep
->
in
->
urbs
[
j
]);
/* free endpoints here; later call can result in Oops */
if
(
ep
->
out
)
{
snd_usbmidi_out_endpoint_delete
(
ep
->
out
);
ep
->
out
=
NULL
;
}
if
(
ep
->
out
)
snd_usbmidi_out_endpoint_clear
(
ep
->
out
);
if
(
ep
->
in
)
{
snd_usbmidi_in_endpoint_delete
(
ep
->
in
);
ep
->
in
=
NULL
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录