Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
73e13d0f
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
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看板
未验证
提交
73e13d0f
编写于
11月 10, 2017
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/topic/component' into asoc-next
上级
4d0210e6
e0dac41b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
30 addition
and
11 deletion
+30
-11
include/sound/soc.h
include/sound/soc.h
+7
-0
sound/soc/soc-core.c
sound/soc/soc-core.c
+23
-11
未找到文件。
include/sound/soc.h
浏览文件 @
73e13d0f
...
...
@@ -468,6 +468,11 @@ int snd_soc_register_codec(struct device *dev,
const
struct
snd_soc_codec_driver
*
codec_drv
,
struct
snd_soc_dai_driver
*
dai_drv
,
int
num_dai
);
void
snd_soc_unregister_codec
(
struct
device
*
dev
);
int
snd_soc_add_component
(
struct
device
*
dev
,
struct
snd_soc_component
*
component
,
const
struct
snd_soc_component_driver
*
component_driver
,
struct
snd_soc_dai_driver
*
dai_drv
,
int
num_dai
);
int
snd_soc_register_component
(
struct
device
*
dev
,
const
struct
snd_soc_component_driver
*
component_driver
,
struct
snd_soc_dai_driver
*
dai_drv
,
int
num_dai
);
...
...
@@ -1487,6 +1492,8 @@ int snd_soc_component_set_sysclk(struct snd_soc_component *component,
int
snd_soc_component_set_pll
(
struct
snd_soc_component
*
component
,
int
pll_id
,
int
source
,
unsigned
int
freq_in
,
unsigned
int
freq_out
);
int
snd_soc_component_set_jack
(
struct
snd_soc_component
*
component
,
struct
snd_soc_jack
*
jack
,
void
*
data
);
#ifdef CONFIG_REGMAP
...
...
sound/soc/soc-core.c
浏览文件 @
73e13d0f
...
...
@@ -3371,20 +3371,14 @@ static void snd_soc_component_del_unlocked(struct snd_soc_component *component)
list_del
(
&
component
->
list
);
}
int
snd_soc_register_component
(
struct
device
*
dev
,
const
struct
snd_soc_component_driver
*
component_driver
,
struct
snd_soc_dai_driver
*
dai_drv
,
int
num_dai
)
int
snd_soc_add_component
(
struct
device
*
dev
,
struct
snd_soc_component
*
component
,
const
struct
snd_soc_component_driver
*
component_driver
,
struct
snd_soc_dai_driver
*
dai_drv
,
int
num_dai
)
{
struct
snd_soc_component
*
component
;
int
ret
;
component
=
kzalloc
(
sizeof
(
*
component
),
GFP_KERNEL
);
if
(
!
component
)
{
dev_err
(
dev
,
"ASoC: Failed to allocate memory
\n
"
);
return
-
ENOMEM
;
}
ret
=
snd_soc_component_initialize
(
component
,
component_driver
,
dev
);
if
(
ret
)
goto
err_free
;
...
...
@@ -3408,6 +3402,24 @@ int snd_soc_register_component(struct device *dev,
kfree
(
component
);
return
ret
;
}
EXPORT_SYMBOL_GPL
(
snd_soc_add_component
);
int
snd_soc_register_component
(
struct
device
*
dev
,
const
struct
snd_soc_component_driver
*
component_driver
,
struct
snd_soc_dai_driver
*
dai_drv
,
int
num_dai
)
{
struct
snd_soc_component
*
component
;
component
=
kzalloc
(
sizeof
(
*
component
),
GFP_KERNEL
);
if
(
!
component
)
{
dev_err
(
dev
,
"ASoC: Failed to allocate memory
\n
"
);
return
-
ENOMEM
;
}
return
snd_soc_add_component
(
dev
,
component
,
component_driver
,
dai_drv
,
num_dai
);
}
EXPORT_SYMBOL_GPL
(
snd_soc_register_component
);
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录