Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
46dd30a8
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看板
提交
46dd30a8
编写于
6月 17, 2013
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/topic/jz4740' into asoc-next
上级
18923d7e
010187fb
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
11 deletion
+8
-11
sound/soc/codecs/jz4740.c
sound/soc/codecs/jz4740.c
+0
-2
sound/soc/jz4740/jz4740-i2s.c
sound/soc/jz4740/jz4740-i2s.c
+8
-9
未找到文件。
sound/soc/codecs/jz4740.c
浏览文件 @
46dd30a8
...
...
@@ -384,8 +384,6 @@ static int jz4740_codec_remove(struct platform_device *pdev)
{
snd_soc_unregister_codec
(
&
pdev
->
dev
);
platform_set_drvdata
(
pdev
,
NULL
);
return
0
;
}
...
...
sound/soc/jz4740/jz4740-i2s.c
浏览文件 @
46dd30a8
...
...
@@ -118,7 +118,7 @@ static int jz4740_i2s_startup(struct snd_pcm_substream *substream,
ctrl
|=
JZ_AIC_CTRL_FLUSH
;
jz4740_i2s_write
(
i2s
,
JZ_REG_AIC_CTRL
,
ctrl
);
clk_enable
(
i2s
->
clk_i2s
);
clk_
prepare_
enable
(
i2s
->
clk_i2s
);
conf
=
jz4740_i2s_read
(
i2s
,
JZ_REG_AIC_CONF
);
conf
|=
JZ_AIC_CONF_ENABLE
;
...
...
@@ -140,7 +140,7 @@ static void jz4740_i2s_shutdown(struct snd_pcm_substream *substream,
conf
&=
~
JZ_AIC_CONF_ENABLE
;
jz4740_i2s_write
(
i2s
,
JZ_REG_AIC_CONF
,
conf
);
clk_disable
(
i2s
->
clk_i2s
);
clk_disable
_unprepare
(
i2s
->
clk_i2s
);
}
static
int
jz4740_i2s_trigger
(
struct
snd_pcm_substream
*
substream
,
int
cmd
,
...
...
@@ -314,10 +314,10 @@ static int jz4740_i2s_suspend(struct snd_soc_dai *dai)
conf
&=
~
JZ_AIC_CONF_ENABLE
;
jz4740_i2s_write
(
i2s
,
JZ_REG_AIC_CONF
,
conf
);
clk_disable
(
i2s
->
clk_i2s
);
clk_disable
_unprepare
(
i2s
->
clk_i2s
);
}
clk_disable
(
i2s
->
clk_aic
);
clk_disable
_unprepare
(
i2s
->
clk_aic
);
return
0
;
}
...
...
@@ -327,10 +327,10 @@ static int jz4740_i2s_resume(struct snd_soc_dai *dai)
struct
jz4740_i2s
*
i2s
=
snd_soc_dai_get_drvdata
(
dai
);
uint32_t
conf
;
clk_enable
(
i2s
->
clk_aic
);
clk_
prepare_
enable
(
i2s
->
clk_aic
);
if
(
dai
->
active
)
{
clk_enable
(
i2s
->
clk_i2s
);
clk_
prepare_
enable
(
i2s
->
clk_i2s
);
conf
=
jz4740_i2s_read
(
i2s
,
JZ_REG_AIC_CONF
);
conf
|=
JZ_AIC_CONF_ENABLE
;
...
...
@@ -368,7 +368,7 @@ static int jz4740_i2s_dai_probe(struct snd_soc_dai *dai)
struct
jz4740_i2s
*
i2s
=
snd_soc_dai_get_drvdata
(
dai
);
uint32_t
conf
;
clk_enable
(
i2s
->
clk_aic
);
clk_
prepare_
enable
(
i2s
->
clk_aic
);
jz4740_i2c_init_pcm_config
(
i2s
);
...
...
@@ -388,7 +388,7 @@ static int jz4740_i2s_dai_remove(struct snd_soc_dai *dai)
{
struct
jz4740_i2s
*
i2s
=
snd_soc_dai_get_drvdata
(
dai
);
clk_disable
(
i2s
->
clk_aic
);
clk_disable
_unprepare
(
i2s
->
clk_aic
);
return
0
;
}
...
...
@@ -509,7 +509,6 @@ static int jz4740_i2s_dev_remove(struct platform_device *pdev)
iounmap
(
i2s
->
base
);
release_mem_region
(
i2s
->
mem
->
start
,
resource_size
(
i2s
->
mem
));
platform_set_drvdata
(
pdev
,
NULL
);
kfree
(
i2s
);
return
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录