Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
01c2a84c
K
Kernel
项目概览
openeuler
/
Kernel
接近 2 年 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
01c2a84c
编写于
1月 10, 2017
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/fix/component' into asoc-linus
上级
a121103c
d2e3a135
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
5 deletion
+8
-5
include/sound/soc.h
include/sound/soc.h
+3
-0
sound/soc/soc-core.c
sound/soc/soc-core.c
+5
-5
未找到文件。
include/sound/soc.h
浏览文件 @
01c2a84c
...
...
@@ -813,6 +813,7 @@ struct snd_soc_component {
unsigned
int
suspended
:
1
;
/* is in suspend PM state */
struct
list_head
list
;
struct
list_head
card_aux_list
;
/* for auxiliary bound components */
struct
list_head
card_list
;
struct
snd_soc_dai_driver
*
dai_drv
;
...
...
@@ -1152,6 +1153,7 @@ struct snd_soc_card {
*/
struct
snd_soc_aux_dev
*
aux_dev
;
int
num_aux_devs
;
struct
list_head
aux_comp_list
;
const
struct
snd_kcontrol_new
*
controls
;
int
num_controls
;
...
...
@@ -1547,6 +1549,7 @@ static inline void snd_soc_initialize_card_lists(struct snd_soc_card *card)
INIT_LIST_HEAD
(
&
card
->
widgets
);
INIT_LIST_HEAD
(
&
card
->
paths
);
INIT_LIST_HEAD
(
&
card
->
dapm_list
);
INIT_LIST_HEAD
(
&
card
->
aux_comp_list
);
INIT_LIST_HEAD
(
&
card
->
component_dev_list
);
}
...
...
sound/soc/soc-core.c
浏览文件 @
01c2a84c
...
...
@@ -1748,6 +1748,7 @@ static int soc_bind_aux_dev(struct snd_soc_card *card, int num)
component
->
init
=
aux_dev
->
init
;
component
->
auxiliary
=
1
;
list_add
(
&
component
->
card_aux_list
,
&
card
->
aux_comp_list
);
return
0
;
...
...
@@ -1758,16 +1759,14 @@ static int soc_bind_aux_dev(struct snd_soc_card *card, int num)
static
int
soc_probe_aux_devices
(
struct
snd_soc_card
*
card
)
{
struct
snd_soc_component
*
comp
;
struct
snd_soc_component
*
comp
,
*
tmp
;
int
order
;
int
ret
;
for
(
order
=
SND_SOC_COMP_ORDER_FIRST
;
order
<=
SND_SOC_COMP_ORDER_LAST
;
order
++
)
{
list_for_each_entry
(
comp
,
&
card
->
component_dev_list
,
card_list
)
{
if
(
!
comp
->
auxiliary
)
continue
;
list_for_each_entry_safe
(
comp
,
tmp
,
&
card
->
aux_comp_list
,
card_aux_list
)
{
if
(
comp
->
driver
->
probe_order
==
order
)
{
ret
=
soc_probe_component
(
card
,
comp
);
if
(
ret
<
0
)
{
...
...
@@ -1776,6 +1775,7 @@ static int soc_probe_aux_devices(struct snd_soc_card *card)
comp
->
name
,
ret
);
return
ret
;
}
list_del
(
&
comp
->
card_aux_list
);
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录