Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
a0b15506
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
a0b15506
编写于
3月 26, 2011
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-2.6.39' into for-2.6.40
上级
31215871
e1bb31b4
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
29 addition
and
13 deletion
+29
-13
include/sound/soc-dapm.h
include/sound/soc-dapm.h
+8
-8
sound/soc/codecs/sgtl5000.c
sound/soc/codecs/sgtl5000.c
+14
-0
sound/soc/imx/imx-pcm-dma-mx2.c
sound/soc/imx/imx-pcm-dma-mx2.c
+7
-2
sound/soc/imx/imx-ssi.h
sound/soc/imx/imx-ssi.h
+0
-3
未找到文件。
include/sound/soc-dapm.h
浏览文件 @
a0b15506
...
...
@@ -45,25 +45,25 @@
/* platform domain */
#define SND_SOC_DAPM_INPUT(wname) \
{ .id = snd_soc_dapm_input, .name = wname, .kcontrols = NULL, \
.num_kcontrols = 0}
.num_kcontrols = 0
, .reg = SND_SOC_NOPM
}
#define SND_SOC_DAPM_OUTPUT(wname) \
{ .id = snd_soc_dapm_output, .name = wname, .kcontrols = NULL, \
.num_kcontrols = 0}
.num_kcontrols = 0
, .reg = SND_SOC_NOPM
}
#define SND_SOC_DAPM_MIC(wname, wevent) \
{ .id = snd_soc_dapm_mic, .name = wname, .kcontrols = NULL, \
.num_kcontrols = 0, .event = wevent, \
.num_kcontrols = 0, .
reg = SND_SOC_NOPM, .
event = wevent, \
.event_flags = SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD}
#define SND_SOC_DAPM_HP(wname, wevent) \
{ .id = snd_soc_dapm_hp, .name = wname, .kcontrols = NULL, \
.num_kcontrols = 0, .event = wevent, \
.num_kcontrols = 0, .
reg = SND_SOC_NOPM, .
event = wevent, \
.event_flags = SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD}
#define SND_SOC_DAPM_SPK(wname, wevent) \
{ .id = snd_soc_dapm_spk, .name = wname, .kcontrols = NULL, \
.num_kcontrols = 0, .event = wevent, \
.num_kcontrols = 0, .
reg = SND_SOC_NOPM, .
event = wevent, \
.event_flags = SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD}
#define SND_SOC_DAPM_LINE(wname, wevent) \
{ .id = snd_soc_dapm_line, .name = wname, .kcontrols = NULL, \
.num_kcontrols = 0, .event = wevent, \
.num_kcontrols = 0, .
reg = SND_SOC_NOPM, .
event = wevent, \
.event_flags = SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD}
/* path domain */
...
...
@@ -189,11 +189,11 @@
/* events that are pre and post DAPM */
#define SND_SOC_DAPM_PRE(wname, wevent) \
{ .id = snd_soc_dapm_pre, .name = wname, .kcontrols = NULL, \
.num_kcontrols = 0, .event = wevent, \
.num_kcontrols = 0, .
reg = SND_SOC_NOPM, .
event = wevent, \
.event_flags = SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_PRE_PMD}
#define SND_SOC_DAPM_POST(wname, wevent) \
{ .id = snd_soc_dapm_post, .name = wname, .kcontrols = NULL, \
.num_kcontrols = 0, .event = wevent, \
.num_kcontrols = 0, .
reg = SND_SOC_NOPM, .
event = wevent, \
.event_flags = SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD}
/* stream domain */
...
...
sound/soc/codecs/sgtl5000.c
浏览文件 @
a0b15506
...
...
@@ -772,6 +772,7 @@ static int sgtl5000_pcm_hw_params(struct snd_pcm_substream *substream,
return
0
;
}
#ifdef CONFIG_REGULATOR
static
int
ldo_regulator_is_enabled
(
struct
regulator_dev
*
dev
)
{
struct
ldo_regulator
*
ldo
=
rdev_get_drvdata
(
dev
);
...
...
@@ -901,6 +902,19 @@ static int ldo_regulator_remove(struct snd_soc_codec *codec)
return
0
;
}
#else
static
int
ldo_regulator_register
(
struct
snd_soc_codec
*
codec
,
struct
regulator_init_data
*
init_data
,
int
voltage
)
{
return
-
EINVAL
;
}
static
int
ldo_regulator_remove
(
struct
snd_soc_codec
*
codec
)
{
return
0
;
}
#endif
/*
* set dac bias
...
...
sound/soc/imx/imx-pcm-dma-mx2.c
浏览文件 @
a0b15506
...
...
@@ -110,12 +110,12 @@ static int imx_ssi_dma_alloc(struct snd_pcm_substream *substream,
slave_config
.
direction
=
DMA_TO_DEVICE
;
slave_config
.
dst_addr
=
dma_params
->
dma_addr
;
slave_config
.
dst_addr_width
=
buswidth
;
slave_config
.
dst_maxburst
=
dma_params
->
burstsize
;
slave_config
.
dst_maxburst
=
dma_params
->
burstsize
*
buswidth
;
}
else
{
slave_config
.
direction
=
DMA_FROM_DEVICE
;
slave_config
.
src_addr
=
dma_params
->
dma_addr
;
slave_config
.
src_addr_width
=
buswidth
;
slave_config
.
src_maxburst
=
dma_params
->
burstsize
;
slave_config
.
src_maxburst
=
dma_params
->
burstsize
*
buswidth
;
}
ret
=
dmaengine_slave_config
(
iprtd
->
dma_chan
,
&
slave_config
);
...
...
@@ -303,6 +303,11 @@ static struct snd_soc_platform_driver imx_soc_platform_mx2 = {
static
int
__devinit
imx_soc_platform_probe
(
struct
platform_device
*
pdev
)
{
struct
imx_ssi
*
ssi
=
platform_get_drvdata
(
pdev
);
ssi
->
dma_params_tx
.
burstsize
=
6
;
ssi
->
dma_params_rx
.
burstsize
=
4
;
return
snd_soc_register_platform
(
&
pdev
->
dev
,
&
imx_soc_platform_mx2
);
}
...
...
sound/soc/imx/imx-ssi.h
浏览文件 @
a0b15506
...
...
@@ -234,7 +234,4 @@ void imx_pcm_free(struct snd_pcm *pcm);
*/
#define IMX_SSI_DMABUF_SIZE (64 * 1024)
#define DMA_RXFIFO_BURST 0x4
#define DMA_TXFIFO_BURST 0x6
#endif
/* _IMX_SSI_H */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录