Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
56c32c75
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看板
提交
56c32c75
编写于
4月 12, 2013
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/topic/core' into asoc-next
上级
54b019cb
379cf397
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
21 addition
and
26 deletion
+21
-26
include/sound/soc-dapm.h
include/sound/soc-dapm.h
+0
-1
include/sound/soc.h
include/sound/soc.h
+4
-5
sound/soc/codecs/Kconfig
sound/soc/codecs/Kconfig
+1
-1
sound/soc/soc-core.c
sound/soc/soc-core.c
+15
-14
sound/soc/soc-dapm.c
sound/soc/soc-dapm.c
+0
-1
sound/soc/soc-io.c
sound/soc/soc-io.c
+1
-4
未找到文件。
include/sound/soc-dapm.h
浏览文件 @
56c32c75
...
...
@@ -566,7 +566,6 @@ struct snd_soc_dapm_update {
/* DAPM context */
struct
snd_soc_dapm_context
{
int
n_widgets
;
/* number of widgets in this context */
enum
snd_soc_bias_level
bias_level
;
enum
snd_soc_bias_level
suspend_bias_level
;
struct
delayed_work
delayed_work
;
...
...
include/sound/soc.h
浏览文件 @
56c32c75
...
...
@@ -373,7 +373,7 @@ int snd_soc_suspend(struct device *dev);
int
snd_soc_resume
(
struct
device
*
dev
);
int
snd_soc_poweroff
(
struct
device
*
dev
);
int
snd_soc_register_platform
(
struct
device
*
dev
,
struct
snd_soc_platform_driver
*
platform_drv
);
const
struct
snd_soc_platform_driver
*
platform_drv
);
void
snd_soc_unregister_platform
(
struct
device
*
dev
);
int
snd_soc_register_codec
(
struct
device
*
dev
,
const
struct
snd_soc_codec_driver
*
codec_drv
,
...
...
@@ -807,10 +807,10 @@ struct snd_soc_platform_driver {
struct
snd_soc_dai
*
);
/* platform stream pcm ops */
struct
snd_pcm_ops
*
ops
;
const
struct
snd_pcm_ops
*
ops
;
/* platform stream compress ops */
struct
snd_compr_ops
*
compr_ops
;
const
struct
snd_compr_ops
*
compr_ops
;
/* platform stream completion event */
int
(
*
stream_event
)(
struct
snd_soc_dapm_context
*
dapm
,
int
event
);
...
...
@@ -829,7 +829,7 @@ struct snd_soc_platform {
const
char
*
name
;
int
id
;
struct
device
*
dev
;
struct
snd_soc_platform_driver
*
driver
;
const
struct
snd_soc_platform_driver
*
driver
;
struct
mutex
mutex
;
unsigned
int
suspended
:
1
;
/* platform is suspended */
...
...
@@ -1106,7 +1106,6 @@ struct soc_enum {
unsigned
int
mask
;
const
char
*
const
*
texts
;
const
unsigned
int
*
values
;
void
*
dapm
;
};
/* codec IO */
...
...
sound/soc/codecs/Kconfig
浏览文件 @
56c32c75
...
...
@@ -328,7 +328,7 @@ config SND_SOC_TLV320AIC23
tristate
config SND_SOC_TLV320AIC26
tristate
"TI TLV320AIC26 Codec support" if SND_SOC_OF_SIMPLE
tristate
depends on SPI
config SND_SOC_TLV320AIC32X4
...
...
sound/soc/soc-core.c
浏览文件 @
56c32c75
...
...
@@ -3905,7 +3905,7 @@ static void snd_soc_unregister_dais(struct device *dev, size_t count)
* @platform: platform to register
*/
int
snd_soc_register_platform
(
struct
device
*
dev
,
struct
snd_soc_platform_driver
*
platform_drv
)
const
struct
snd_soc_platform_driver
*
platform_drv
)
{
struct
snd_soc_platform
*
platform
;
...
...
@@ -4021,8 +4021,8 @@ int snd_soc_register_codec(struct device *dev,
/* create CODEC component name */
codec
->
name
=
fmt_single_name
(
dev
,
&
codec
->
id
);
if
(
codec
->
name
==
NULL
)
{
kfree
(
codec
)
;
return
-
ENOMEM
;
ret
=
-
ENOMEM
;
goto
fail_codec
;
}
if
(
codec_drv
->
compress_type
)
...
...
@@ -4061,7 +4061,7 @@ int snd_soc_register_codec(struct device *dev,
reg_size
,
GFP_KERNEL
);
if
(
!
codec
->
reg_def_copy
)
{
ret
=
-
ENOMEM
;
goto
fail
;
goto
fail
_codec_name
;
}
}
}
...
...
@@ -4085,18 +4085,22 @@ int snd_soc_register_codec(struct device *dev,
mutex_unlock
(
&
client_mutex
);
/* register any DAIs */
if
(
num_dai
)
{
ret
=
snd_soc_register_dais
(
dev
,
dai_drv
,
num_dai
);
if
(
ret
<
0
)
dev_err
(
codec
->
dev
,
"ASoC: Failed to regster"
" DAIs: %d
\n
"
,
ret
);
ret
=
snd_soc_register_dais
(
dev
,
dai_drv
,
num_dai
);
if
(
ret
<
0
)
{
dev_err
(
codec
->
dev
,
"ASoC: Failed to regster DAIs: %d
\n
"
,
ret
);
goto
fail_codec_name
;
}
dev_dbg
(
codec
->
dev
,
"ASoC: Registered codec '%s'
\n
"
,
codec
->
name
);
return
0
;
fail:
fail_codec_name:
mutex_lock
(
&
client_mutex
);
list_del
(
&
codec
->
list
);
mutex_unlock
(
&
client_mutex
);
kfree
(
codec
->
name
);
fail_codec:
kfree
(
codec
);
return
ret
;
}
...
...
@@ -4110,7 +4114,6 @@ EXPORT_SYMBOL_GPL(snd_soc_register_codec);
void
snd_soc_unregister_codec
(
struct
device
*
dev
)
{
struct
snd_soc_codec
*
codec
;
int
i
;
list_for_each_entry
(
codec
,
&
codec_list
,
list
)
{
if
(
dev
==
codec
->
dev
)
...
...
@@ -4119,9 +4122,7 @@ void snd_soc_unregister_codec(struct device *dev)
return
;
found:
if
(
codec
->
num_dai
)
for
(
i
=
0
;
i
<
codec
->
num_dai
;
i
++
)
snd_soc_unregister_dai
(
dev
);
snd_soc_unregister_dais
(
dev
,
codec
->
num_dai
);
mutex_lock
(
&
client_mutex
);
list_del
(
&
codec
->
list
);
...
...
sound/soc/soc-dapm.c
浏览文件 @
56c32c75
...
...
@@ -3137,7 +3137,6 @@ snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm,
break
;
}
dapm
->
n_widgets
++
;
w
->
dapm
=
dapm
;
w
->
codec
=
dapm
->
codec
;
w
->
platform
=
dapm
->
platform
;
...
...
sound/soc/soc-io.c
浏览文件 @
56c32c75
...
...
@@ -158,10 +158,7 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec,
return
-
EINVAL
;
}
if
(
IS_ERR
(
codec
->
control_data
))
return
PTR_ERR
(
codec
->
control_data
);
return
0
;
return
PTR_RET
(
codec
->
control_data
);
}
EXPORT_SYMBOL_GPL
(
snd_soc_codec_set_cache_io
);
#else
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录