Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
d872f046
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
d872f046
编写于
4月 30, 2017
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/topic/core' into asoc-next
上级
9dfc5394
991454e1
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
6 addition
and
12 deletion
+6
-12
include/sound/soc.h
include/sound/soc.h
+0
-1
sound/soc/soc-core.c
sound/soc/soc-core.c
+6
-11
未找到文件。
include/sound/soc.h
浏览文件 @
d872f046
...
@@ -812,7 +812,6 @@ struct snd_soc_component {
...
@@ -812,7 +812,6 @@ struct snd_soc_component {
unsigned
int
ignore_pmdown_time
:
1
;
/* pmdown_time is ignored at stop */
unsigned
int
ignore_pmdown_time
:
1
;
/* pmdown_time is ignored at stop */
unsigned
int
registered_as_component
:
1
;
unsigned
int
registered_as_component
:
1
;
unsigned
int
auxiliary
:
1
;
/* for auxiliary component of the card */
unsigned
int
suspended
:
1
;
/* is in suspend PM state */
unsigned
int
suspended
:
1
;
/* is in suspend PM state */
struct
list_head
list
;
struct
list_head
list
;
...
...
sound/soc/soc-core.c
浏览文件 @
d872f046
...
@@ -1776,7 +1776,6 @@ static int soc_bind_aux_dev(struct snd_soc_card *card, int num)
...
@@ -1776,7 +1776,6 @@ static int soc_bind_aux_dev(struct snd_soc_card *card, int num)
}
}
component
->
init
=
aux_dev
->
init
;
component
->
init
=
aux_dev
->
init
;
component
->
auxiliary
=
1
;
list_add
(
&
component
->
card_aux_list
,
&
card
->
aux_comp_list
);
list_add
(
&
component
->
card_aux_list
,
&
card
->
aux_comp_list
);
return
0
;
return
0
;
...
@@ -1788,14 +1787,13 @@ static int soc_bind_aux_dev(struct snd_soc_card *card, int num)
...
@@ -1788,14 +1787,13 @@ static int soc_bind_aux_dev(struct snd_soc_card *card, int num)
static
int
soc_probe_aux_devices
(
struct
snd_soc_card
*
card
)
static
int
soc_probe_aux_devices
(
struct
snd_soc_card
*
card
)
{
{
struct
snd_soc_component
*
comp
,
*
tmp
;
struct
snd_soc_component
*
comp
;
int
order
;
int
order
;
int
ret
;
int
ret
;
for
(
order
=
SND_SOC_COMP_ORDER_FIRST
;
order
<=
SND_SOC_COMP_ORDER_LAST
;
for
(
order
=
SND_SOC_COMP_ORDER_FIRST
;
order
<=
SND_SOC_COMP_ORDER_LAST
;
order
++
)
{
order
++
)
{
list_for_each_entry_safe
(
comp
,
tmp
,
&
card
->
aux_comp_list
,
list_for_each_entry
(
comp
,
&
card
->
aux_comp_list
,
card_aux_list
)
{
card_aux_list
)
{
if
(
comp
->
driver
->
probe_order
==
order
)
{
if
(
comp
->
driver
->
probe_order
==
order
)
{
ret
=
soc_probe_component
(
card
,
comp
);
ret
=
soc_probe_component
(
card
,
comp
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
...
@@ -1804,7 +1802,6 @@ static int soc_probe_aux_devices(struct snd_soc_card *card)
...
@@ -1804,7 +1802,6 @@ static int soc_probe_aux_devices(struct snd_soc_card *card)
comp
->
name
,
ret
);
comp
->
name
,
ret
);
return
ret
;
return
ret
;
}
}
list_del
(
&
comp
->
card_aux_list
);
}
}
}
}
}
}
...
@@ -1820,14 +1817,12 @@ static void soc_remove_aux_devices(struct snd_soc_card *card)
...
@@ -1820,14 +1817,12 @@ static void soc_remove_aux_devices(struct snd_soc_card *card)
for
(
order
=
SND_SOC_COMP_ORDER_FIRST
;
order
<=
SND_SOC_COMP_ORDER_LAST
;
for
(
order
=
SND_SOC_COMP_ORDER_FIRST
;
order
<=
SND_SOC_COMP_ORDER_LAST
;
order
++
)
{
order
++
)
{
list_for_each_entry_safe
(
comp
,
_comp
,
list_for_each_entry_safe
(
comp
,
_comp
,
&
card
->
component_dev_list
,
card_list
)
{
&
card
->
aux_comp_list
,
card_aux_list
)
{
if
(
!
comp
->
auxiliary
)
continue
;
if
(
comp
->
driver
->
remove_order
==
order
)
{
if
(
comp
->
driver
->
remove_order
==
order
)
{
soc_remove_component
(
comp
);
soc_remove_component
(
comp
);
comp
->
auxiliary
=
0
;
/* remove it from the card's aux_comp_list */
list_del
(
&
comp
->
card_aux_list
);
}
}
}
}
}
}
...
@@ -3139,7 +3134,7 @@ static int snd_soc_component_initialize(struct snd_soc_component *component,
...
@@ -3139,7 +3134,7 @@ static int snd_soc_component_initialize(struct snd_soc_component *component,
component
->
suspend
=
component
->
driver
->
suspend
;
component
->
suspend
=
component
->
driver
->
suspend
;
component
->
resume
=
component
->
driver
->
resume
;
component
->
resume
=
component
->
driver
->
resume
;
component
->
pcm_new
=
component
->
driver
->
pcm_new
;
component
->
pcm_new
=
component
->
driver
->
pcm_new
;
component
->
pcm_free
=
component
->
driver
->
pcm_free
;
component
->
pcm_free
=
component
->
driver
->
pcm_free
;
dapm
=
&
component
->
dapm
;
dapm
=
&
component
->
dapm
;
dapm
->
dev
=
dev
;
dapm
->
dev
=
dev
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录