Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
d2893232
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d2893232
编写于
2月 11, 2013
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/topic/core' into asoc-next
上级
6a473669
b5a8fe43
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
19 deletion
+15
-19
include/sound/soc-dai.h
include/sound/soc-dai.h
+1
-1
include/sound/soc.h
include/sound/soc.h
+2
-2
sound/soc/soc-core.c
sound/soc/soc-core.c
+9
-7
sound/soc/soc-pcm.c
sound/soc/soc-pcm.c
+3
-9
未找到文件。
include/sound/soc-dai.h
浏览文件 @
d2893232
...
...
@@ -53,7 +53,7 @@ struct snd_compr_stream;
* Specifies whether the DAI can also support inverted clocks for the specified
* format.
*/
#define SND_SOC_DAIFMT_NB_NF (
1
<< 8)
/* normal bit clock + frame */
#define SND_SOC_DAIFMT_NB_NF (
0
<< 8)
/* normal bit clock + frame */
#define SND_SOC_DAIFMT_NB_IF (2 << 8)
/* normal BCLK + inv FRM */
#define SND_SOC_DAIFMT_IB_NF (3 << 8)
/* invert BCLK + nor FRM */
#define SND_SOC_DAIFMT_IB_IF (4 << 8)
/* invert BCLK + FRM */
...
...
include/sound/soc.h
浏览文件 @
d2893232
...
...
@@ -906,8 +906,8 @@ struct snd_soc_dai_link {
struct
snd_pcm_hw_params
*
params
);
/* machine stream operations */
struct
snd_soc_ops
*
ops
;
struct
snd_soc_compr_ops
*
compr_ops
;
const
struct
snd_soc_ops
*
ops
;
const
struct
snd_soc_compr_ops
*
compr_ops
;
};
struct
snd_soc_codec_conf
{
...
...
sound/soc/soc-core.c
浏览文件 @
d2893232
...
...
@@ -1107,6 +1107,10 @@ static int soc_probe_codec(struct snd_soc_card *card,
"ASoC: failed to probe CODEC %d
\n
"
,
ret
);
goto
err_probe
;
}
WARN
(
codec
->
dapm
.
idle_bias_off
&&
codec
->
dapm
.
bias_level
!=
SND_SOC_BIAS_OFF
,
"codec %s can not start from non-off bias"
" with idle_bias_off==1
\n
"
,
codec
->
name
);
}
/* If the driver didn't set I/O up try regmap */
...
...
@@ -3122,9 +3126,12 @@ int snd_soc_bytes_put(struct snd_kcontrol *kcontrol,
if
(
!
codec
->
using_regmap
)
return
-
EINVAL
;
data
=
ucontrol
->
value
.
bytes
.
data
;
len
=
params
->
num_regs
*
codec
->
val_bytes
;
data
=
kmemdup
(
ucontrol
->
value
.
bytes
.
data
,
len
,
GFP_KERNEL
|
GFP_DMA
);
if
(
!
data
)
return
-
ENOMEM
;
/*
* If we've got a mask then we need to preserve the register
* bits. We shouldn't modify the incoming data so take a
...
...
@@ -3137,10 +3144,6 @@ int snd_soc_bytes_put(struct snd_kcontrol *kcontrol,
val
&=
params
->
mask
;
data
=
kmemdup
(
data
,
len
,
GFP_KERNEL
);
if
(
!
data
)
return
-
ENOMEM
;
switch
(
codec
->
val_bytes
)
{
case
1
:
((
u8
*
)
data
)[
0
]
&=
~
params
->
mask
;
...
...
@@ -3162,8 +3165,7 @@ int snd_soc_bytes_put(struct snd_kcontrol *kcontrol,
ret
=
regmap_raw_write
(
codec
->
control_data
,
params
->
base
,
data
,
len
);
if
(
params
->
mask
)
kfree
(
data
);
kfree
(
data
);
return
ret
;
}
...
...
sound/soc/soc-pcm.c
浏览文件 @
d2893232
...
...
@@ -1728,20 +1728,16 @@ static int dpcm_run_update_startup(struct snd_soc_pcm_runtime *fe, int stream)
/* startup must always be called for new BEs */
ret
=
dpcm_be_dai_startup
(
fe
,
stream
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
goto
disconnect
;
return
ret
;
}
/* keep going if FE state is > open */
if
(
fe
->
dpcm
[
stream
].
state
==
SND_SOC_DPCM_STATE_OPEN
)
return
0
;
ret
=
dpcm_be_dai_hw_params
(
fe
,
stream
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
goto
close
;
return
ret
;
}
/* keep going if FE state is > hw_params */
if
(
fe
->
dpcm
[
stream
].
state
==
SND_SOC_DPCM_STATE_HW_PARAMS
)
...
...
@@ -1749,10 +1745,8 @@ static int dpcm_run_update_startup(struct snd_soc_pcm_runtime *fe, int stream)
ret
=
dpcm_be_dai_prepare
(
fe
,
stream
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
goto
hw_free
;
return
ret
;
}
/* run the stream event for each BE */
dpcm_dapm_stream_event
(
fe
,
stream
,
SND_SOC_DAPM_STREAM_NOP
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录