Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
783ec5e9
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
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看板
未验证
提交
783ec5e9
编写于
5月 02, 2018
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/for-4.17' into asoc-4.18 to resolve a
conflict between a fix and new development in mtk
上级
9e6a469e
40c57963
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
16 deletion
+18
-16
include/sound/soc-dai.h
include/sound/soc-dai.h
+2
-2
sound/soc/cirrus/edb93xx.c
sound/soc/cirrus/edb93xx.c
+1
-1
sound/soc/cirrus/ep93xx-i2s.c
sound/soc/cirrus/ep93xx-i2s.c
+14
-12
sound/soc/cirrus/snappercl15.c
sound/soc/cirrus/snappercl15.c
+1
-1
未找到文件。
include/sound/soc-dai.h
浏览文件 @
783ec5e9
...
...
@@ -294,8 +294,8 @@ struct snd_soc_dai {
struct
snd_soc_dai_driver
*
driver
;
/* DAI runtime info */
unsigned
int
capture_active
:
1
;
/* stream is in use
*/
unsigned
int
playback_active
:
1
;
/* stream is in use
*/
unsigned
int
capture_active
;
/* stream usage count
*/
unsigned
int
playback_active
;
/* stream usage count
*/
unsigned
int
probed
:
1
;
unsigned
int
active
;
...
...
sound/soc/cirrus/edb93xx.c
浏览文件 @
783ec5e9
...
...
@@ -67,7 +67,7 @@ static struct snd_soc_dai_link edb93xx_dai = {
.
cpu_dai_name
=
"ep93xx-i2s"
,
.
codec_name
=
"spi0.0"
,
.
codec_dai_name
=
"cs4271-hifi"
,
.
dai_fmt
=
SND_SOC_DAIFMT_I2S
|
SND_SOC_DAIFMT_NB_
I
F
|
.
dai_fmt
=
SND_SOC_DAIFMT_I2S
|
SND_SOC_DAIFMT_NB_
N
F
|
SND_SOC_DAIFMT_CBS_CFS
,
.
ops
=
&
edb93xx_ops
,
};
...
...
sound/soc/cirrus/ep93xx-i2s.c
浏览文件 @
783ec5e9
...
...
@@ -51,7 +51,9 @@
#define EP93XX_I2S_WRDLEN_24 (1 << 0)
#define EP93XX_I2S_WRDLEN_32 (2 << 0)
#define EP93XX_I2S_LINCTRLDATA_R_JUST (1 << 2)
/* Right justify */
#define EP93XX_I2S_RXLINCTRLDATA_R_JUST BIT(1)
/* Right justify */
#define EP93XX_I2S_TXLINCTRLDATA_R_JUST BIT(2)
/* Right justify */
#define EP93XX_I2S_CLKCFG_LRS (1 << 0)
/* lrclk polarity */
#define EP93XX_I2S_CLKCFG_CKP (1 << 1)
/* Bit clock polarity */
...
...
@@ -170,25 +172,25 @@ static int ep93xx_i2s_set_dai_fmt(struct snd_soc_dai *cpu_dai,
unsigned
int
fmt
)
{
struct
ep93xx_i2s_info
*
info
=
snd_soc_dai_get_drvdata
(
cpu_dai
);
unsigned
int
clk_cfg
,
lin_ctrl
;
unsigned
int
clk_cfg
;
unsigned
int
txlin_ctrl
=
0
;
unsigned
int
rxlin_ctrl
=
0
;
clk_cfg
=
ep93xx_i2s_read_reg
(
info
,
EP93XX_I2S_RXCLKCFG
);
lin_ctrl
=
ep93xx_i2s_read_reg
(
info
,
EP93XX_I2S_RXLINCTRLDATA
);
switch
(
fmt
&
SND_SOC_DAIFMT_FORMAT_MASK
)
{
case
SND_SOC_DAIFMT_I2S
:
clk_cfg
|=
EP93XX_I2S_CLKCFG_REL
;
lin_ctrl
&=
~
EP93XX_I2S_LINCTRLDATA_R_JUST
;
break
;
case
SND_SOC_DAIFMT_LEFT_J
:
clk_cfg
&=
~
EP93XX_I2S_CLKCFG_REL
;
lin_ctrl
&=
~
EP93XX_I2S_LINCTRLDATA_R_JUST
;
break
;
case
SND_SOC_DAIFMT_RIGHT_J
:
clk_cfg
&=
~
EP93XX_I2S_CLKCFG_REL
;
lin_ctrl
|=
EP93XX_I2S_LINCTRLDATA_R_JUST
;
rxlin_ctrl
|=
EP93XX_I2S_RXLINCTRLDATA_R_JUST
;
txlin_ctrl
|=
EP93XX_I2S_TXLINCTRLDATA_R_JUST
;
break
;
default:
...
...
@@ -213,32 +215,32 @@ static int ep93xx_i2s_set_dai_fmt(struct snd_soc_dai *cpu_dai,
switch
(
fmt
&
SND_SOC_DAIFMT_INV_MASK
)
{
case
SND_SOC_DAIFMT_NB_NF
:
/* Negative bit clock, lrclk low on left word */
clk_cfg
&=
~
(
EP93XX_I2S_CLKCFG_CKP
|
EP93XX_I2S_CLKCFG_
REL
);
clk_cfg
&=
~
(
EP93XX_I2S_CLKCFG_CKP
|
EP93XX_I2S_CLKCFG_
LRS
);
break
;
case
SND_SOC_DAIFMT_NB_IF
:
/* Negative bit clock, lrclk low on right word */
clk_cfg
&=
~
EP93XX_I2S_CLKCFG_CKP
;
clk_cfg
|=
EP93XX_I2S_CLKCFG_
REL
;
clk_cfg
|=
EP93XX_I2S_CLKCFG_
LRS
;
break
;
case
SND_SOC_DAIFMT_IB_NF
:
/* Positive bit clock, lrclk low on left word */
clk_cfg
|=
EP93XX_I2S_CLKCFG_CKP
;
clk_cfg
&=
~
EP93XX_I2S_CLKCFG_
REL
;
clk_cfg
&=
~
EP93XX_I2S_CLKCFG_
LRS
;
break
;
case
SND_SOC_DAIFMT_IB_IF
:
/* Positive bit clock, lrclk low on right word */
clk_cfg
|=
EP93XX_I2S_CLKCFG_CKP
|
EP93XX_I2S_CLKCFG_
REL
;
clk_cfg
|=
EP93XX_I2S_CLKCFG_CKP
|
EP93XX_I2S_CLKCFG_
LRS
;
break
;
}
/* Write new register values */
ep93xx_i2s_write_reg
(
info
,
EP93XX_I2S_RXCLKCFG
,
clk_cfg
);
ep93xx_i2s_write_reg
(
info
,
EP93XX_I2S_TXCLKCFG
,
clk_cfg
);
ep93xx_i2s_write_reg
(
info
,
EP93XX_I2S_RXLINCTRLDATA
,
lin_ctrl
);
ep93xx_i2s_write_reg
(
info
,
EP93XX_I2S_TXLINCTRLDATA
,
lin_ctrl
);
ep93xx_i2s_write_reg
(
info
,
EP93XX_I2S_RXLINCTRLDATA
,
rx
lin_ctrl
);
ep93xx_i2s_write_reg
(
info
,
EP93XX_I2S_TXLINCTRLDATA
,
tx
lin_ctrl
);
return
0
;
}
...
...
sound/soc/cirrus/snappercl15.c
浏览文件 @
783ec5e9
...
...
@@ -72,7 +72,7 @@ static struct snd_soc_dai_link snappercl15_dai = {
.
codec_dai_name
=
"tlv320aic23-hifi"
,
.
codec_name
=
"tlv320aic23-codec.0-001a"
,
.
platform_name
=
"ep93xx-i2s"
,
.
dai_fmt
=
SND_SOC_DAIFMT_I2S
|
SND_SOC_DAIFMT_NB_
I
F
|
.
dai_fmt
=
SND_SOC_DAIFMT_I2S
|
SND_SOC_DAIFMT_NB_
N
F
|
SND_SOC_DAIFMT_CBS_CFS
,
.
ops
=
&
snappercl15_ops
,
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录