Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
24ecc23c
cloud-kernel
项目概览
openanolis
/
cloud-kernel
接近 2 年 前同步成功
通知
170
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
24ecc23c
编写于
8月 30, 2015
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/topic/core' into asoc-next
上级
a1780653
abd31b32
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
14 deletion
+18
-14
include/sound/soc.h
include/sound/soc.h
+0
-1
sound/soc/soc-core.c
sound/soc/soc-core.c
+18
-8
sound/soc/soc-dapm.c
sound/soc/soc-dapm.c
+0
-5
未找到文件。
include/sound/soc.h
浏览文件 @
24ecc23c
...
...
@@ -758,7 +758,6 @@ struct snd_soc_component {
unsigned
int
ignore_pmdown_time
:
1
;
/* pmdown_time is ignored at stop */
unsigned
int
registered_as_component
:
1
;
unsigned
int
probed
:
1
;
struct
list_head
list
;
...
...
sound/soc/soc-core.c
浏览文件 @
24ecc23c
...
...
@@ -978,7 +978,7 @@ static int soc_bind_dai_link(struct snd_soc_card *card, int num)
static
void
soc_remove_component
(
struct
snd_soc_component
*
component
)
{
if
(
!
component
->
probe
d
)
if
(
!
component
->
car
d
)
return
;
/* This is a HACK and will be removed soon */
...
...
@@ -991,7 +991,7 @@ static void soc_remove_component(struct snd_soc_component *component)
snd_soc_dapm_free
(
snd_soc_component_get_dapm
(
component
));
soc_cleanup_component_debugfs
(
component
);
component
->
probed
=
0
;
component
->
card
=
NULL
;
module_put
(
component
->
dev
->
driver
->
owner
);
}
...
...
@@ -1102,16 +1102,26 @@ static int soc_probe_component(struct snd_soc_card *card,
struct
snd_soc_dai
*
dai
;
int
ret
;
if
(
component
->
probed
)
if
(
!
strcmp
(
component
->
name
,
"snd-soc-dummy"
)
)
return
0
;
component
->
card
=
card
;
dapm
->
card
=
card
;
soc_set_name_prefix
(
card
,
component
);
if
(
component
->
card
)
{
if
(
component
->
card
!=
card
)
{
dev_err
(
component
->
dev
,
"Trying to bind component to card
\"
%s
\"
but is already bound to card
\"
%s
\"\n
"
,
card
->
name
,
component
->
card
->
name
);
return
-
ENODEV
;
}
return
0
;
}
if
(
!
try_module_get
(
component
->
dev
->
driver
->
owner
))
return
-
ENODEV
;
component
->
card
=
card
;
dapm
->
card
=
card
;
soc_set_name_prefix
(
card
,
component
);
soc_init_component_debugfs
(
component
);
if
(
component
->
dapm_widgets
)
{
...
...
@@ -1155,7 +1165,6 @@ static int soc_probe_component(struct snd_soc_card *card,
snd_soc_dapm_add_routes
(
dapm
,
component
->
dapm_routes
,
component
->
num_dapm_routes
);
component
->
probed
=
1
;
list_add
(
&
dapm
->
list
,
&
card
->
dapm_list
);
/* This is a HACK and will be removed soon */
...
...
@@ -1166,6 +1175,7 @@ static int soc_probe_component(struct snd_soc_card *card,
err_probe:
soc_cleanup_component_debugfs
(
component
);
component
->
card
=
NULL
;
module_put
(
component
->
dev
->
driver
->
owner
);
return
ret
;
...
...
@@ -1449,7 +1459,7 @@ static void soc_remove_aux_dev(struct snd_soc_card *card, int num)
rtd
->
dev_registered
=
0
;
}
if
(
component
&&
component
->
probed
)
if
(
component
)
soc_remove_component
(
component
);
}
...
...
sound/soc/soc-dapm.c
浏览文件 @
24ecc23c
...
...
@@ -3821,11 +3821,6 @@ static void dapm_connect_dai_link_widgets(struct snd_soc_card *card,
for
(
i
=
0
;
i
<
rtd
->
num_codecs
;
i
++
)
{
struct
snd_soc_dai
*
codec_dai
=
rtd
->
codec_dais
[
i
];
/* there is no point in connecting BE DAI links with dummies */
if
(
snd_soc_dai_is_dummy
(
codec_dai
)
||
snd_soc_dai_is_dummy
(
cpu_dai
))
continue
;
/* connect BE DAI playback if widgets are valid */
if
(
codec_dai
->
playback_widget
&&
cpu_dai
->
playback_widget
)
{
source
=
cpu_dai
->
playback_widget
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录