Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
61461241
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看板
提交
61461241
编写于
2月 13, 2011
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'fix/asoc' into for-linus
上级
965b76d2
6ed8f148
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
38 addition
and
8 deletion
+38
-8
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm8994.c
+22
-4
sound/soc/davinci/davinci-evm.c
sound/soc/davinci/davinci-evm.c
+15
-3
sound/soc/soc-core.c
sound/soc/soc-core.c
+1
-1
未找到文件。
sound/soc/codecs/wm8994.c
浏览文件 @
61461241
...
...
@@ -1287,9 +1287,9 @@ SND_SOC_DAPM_SUPPLY("DSPINTCLK", WM8994_CLOCKING_1, 1, 0, NULL, 0),
SND_SOC_DAPM_SUPPLY
(
"AIF1CLK"
,
WM8994_AIF1_CLOCKING_1
,
0
,
0
,
NULL
,
0
),
SND_SOC_DAPM_SUPPLY
(
"AIF2CLK"
,
WM8994_AIF2_CLOCKING_1
,
0
,
0
,
NULL
,
0
),
SND_SOC_DAPM_AIF_OUT
(
"AIF1ADC1L"
,
"AIF1 Capture"
,
SND_SOC_DAPM_AIF_OUT
(
"AIF1ADC1L"
,
NULL
,
0
,
WM8994_POWER_MANAGEMENT_4
,
9
,
0
),
SND_SOC_DAPM_AIF_OUT
(
"AIF1ADC1R"
,
"AIF1 Capture"
,
SND_SOC_DAPM_AIF_OUT
(
"AIF1ADC1R"
,
NULL
,
0
,
WM8994_POWER_MANAGEMENT_4
,
8
,
0
),
SND_SOC_DAPM_AIF_IN_E
(
"AIF1DAC1L"
,
NULL
,
0
,
WM8994_POWER_MANAGEMENT_5
,
9
,
0
,
wm8958_aif_ev
,
...
...
@@ -1298,9 +1298,9 @@ SND_SOC_DAPM_AIF_IN_E("AIF1DAC1R", NULL, 0,
WM8994_POWER_MANAGEMENT_5
,
8
,
0
,
wm8958_aif_ev
,
SND_SOC_DAPM_POST_PMU
|
SND_SOC_DAPM_POST_PMD
),
SND_SOC_DAPM_AIF_OUT
(
"AIF1ADC2L"
,
"AIF1 Capture"
,
SND_SOC_DAPM_AIF_OUT
(
"AIF1ADC2L"
,
NULL
,
0
,
WM8994_POWER_MANAGEMENT_4
,
11
,
0
),
SND_SOC_DAPM_AIF_OUT
(
"AIF1ADC2R"
,
"AIF1 Capture"
,
SND_SOC_DAPM_AIF_OUT
(
"AIF1ADC2R"
,
NULL
,
0
,
WM8994_POWER_MANAGEMENT_4
,
10
,
0
),
SND_SOC_DAPM_AIF_IN_E
(
"AIF1DAC2L"
,
NULL
,
0
,
WM8994_POWER_MANAGEMENT_5
,
11
,
0
,
wm8958_aif_ev
,
...
...
@@ -1345,6 +1345,7 @@ SND_SOC_DAPM_AIF_IN_E("AIF2DACR", NULL, 0,
SND_SOC_DAPM_AIF_IN
(
"AIF1DACDAT"
,
"AIF1 Playback"
,
0
,
SND_SOC_NOPM
,
0
,
0
),
SND_SOC_DAPM_AIF_IN
(
"AIF2DACDAT"
,
"AIF2 Playback"
,
0
,
SND_SOC_NOPM
,
0
,
0
),
SND_SOC_DAPM_AIF_OUT
(
"AIF1ADCDAT"
,
"AIF1 Capture"
,
0
,
SND_SOC_NOPM
,
0
,
0
),
SND_SOC_DAPM_AIF_OUT
(
"AIF2ADCDAT"
,
"AIF2 Capture"
,
0
,
SND_SOC_NOPM
,
0
,
0
),
SND_SOC_DAPM_MUX
(
"AIF1DAC Mux"
,
SND_SOC_NOPM
,
0
,
0
,
&
aif1dac_mux
),
...
...
@@ -1546,6 +1547,11 @@ static const struct snd_soc_dapm_route intercon[] = {
{
"AIF2DAC2R Mixer"
,
"Left Sidetone Switch"
,
"Left Sidetone"
},
{
"AIF2DAC2R Mixer"
,
"Right Sidetone Switch"
,
"Right Sidetone"
},
{
"AIF1ADCDAT"
,
NULL
,
"AIF1ADC1L"
},
{
"AIF1ADCDAT"
,
NULL
,
"AIF1ADC1R"
},
{
"AIF1ADCDAT"
,
NULL
,
"AIF1ADC2L"
},
{
"AIF1ADCDAT"
,
NULL
,
"AIF1ADC2R"
},
{
"AIF2ADCDAT"
,
NULL
,
"AIF2ADC Mux"
},
/* AIF3 output */
...
...
@@ -1578,6 +1584,13 @@ static const struct snd_soc_dapm_route intercon[] = {
{
"Right Headphone Mux"
,
"DAC"
,
"DAC1R"
},
};
static
const
struct
snd_soc_dapm_route
wm8994_revd_intercon
[]
=
{
{
"AIF1DACDAT"
,
NULL
,
"AIF2DACDAT"
},
{
"AIF2DACDAT"
,
NULL
,
"AIF1DACDAT"
},
{
"AIF1ADCDAT"
,
NULL
,
"AIF2ADCDAT"
},
{
"AIF2ADCDAT"
,
NULL
,
"AIF1ADCDAT"
},
};
static
const
struct
snd_soc_dapm_route
wm8994_intercon
[]
=
{
{
"AIF2DACL"
,
NULL
,
"AIF2DAC Mux"
},
{
"AIF2DACR"
,
NULL
,
"AIF2DAC Mux"
},
...
...
@@ -3129,6 +3142,11 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)
case
WM8994
:
snd_soc_dapm_add_routes
(
dapm
,
wm8994_intercon
,
ARRAY_SIZE
(
wm8994_intercon
));
if
(
wm8994
->
revision
<
4
)
snd_soc_dapm_add_routes
(
dapm
,
wm8994_revd_intercon
,
ARRAY_SIZE
(
wm8994_revd_intercon
));
break
;
case
WM8958
:
snd_soc_dapm_add_routes
(
dapm
,
wm8958_intercon
,
...
...
sound/soc/davinci/davinci-evm.c
浏览文件 @
61461241
...
...
@@ -218,7 +218,19 @@ static struct snd_soc_dai_link dm6467_evm_dai[] = {
.
ops
=
&
evm_spdif_ops
,
},
};
static
struct
snd_soc_dai_link
da8xx_evm_dai
=
{
static
struct
snd_soc_dai_link
da830_evm_dai
=
{
.
name
=
"TLV320AIC3X"
,
.
stream_name
=
"AIC3X"
,
.
cpu_dai_name
=
"davinci-mcasp.1"
,
.
codec_dai_name
=
"tlv320aic3x-hifi"
,
.
codec_name
=
"tlv320aic3x-codec.1-0018"
,
.
platform_name
=
"davinci-pcm-audio"
,
.
init
=
evm_aic3x_init
,
.
ops
=
&
evm_ops
,
};
static
struct
snd_soc_dai_link
da850_evm_dai
=
{
.
name
=
"TLV320AIC3X"
,
.
stream_name
=
"AIC3X"
,
.
cpu_dai_name
=
"davinci-mcasp.0"
,
...
...
@@ -259,13 +271,13 @@ static struct snd_soc_card dm6467_snd_soc_card_evm = {
static
struct
snd_soc_card
da830_snd_soc_card
=
{
.
name
=
"DA830/OMAP-L137 EVM"
,
.
dai_link
=
&
da8
xx
_evm_dai
,
.
dai_link
=
&
da8
30
_evm_dai
,
.
num_links
=
1
,
};
static
struct
snd_soc_card
da850_snd_soc_card
=
{
.
name
=
"DA850/OMAP-L138 EVM"
,
.
dai_link
=
&
da8
xx
_evm_dai
,
.
dai_link
=
&
da8
50
_evm_dai
,
.
num_links
=
1
,
};
...
...
sound/soc/soc-core.c
浏览文件 @
61461241
...
...
@@ -1449,6 +1449,7 @@ static int soc_post_component_init(struct snd_soc_card *card,
rtd
=
&
card
->
rtd_aux
[
num
];
name
=
aux_dev
->
name
;
}
rtd
->
card
=
card
;
/* machine controls, routes and widgets are not prefixed */
temp
=
codec
->
name_prefix
;
...
...
@@ -1471,7 +1472,6 @@ static int soc_post_component_init(struct snd_soc_card *card,
/* register the rtd device */
rtd
->
codec
=
codec
;
rtd
->
card
=
card
;
rtd
->
dev
.
parent
=
card
->
dev
;
rtd
->
dev
.
release
=
rtd_release
;
rtd
->
dev
.
init_name
=
name
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录