Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
1804aff6
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看板
提交
1804aff6
编写于
5月 17, 2013
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ASoC: wm5102: Stub hookup for Slimbus interface
Signed-off-by:
N
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
上级
bd1dd885
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
179 addition
and
0 deletion
+179
-0
sound/soc/codecs/wm5102.c
sound/soc/codecs/wm5102.c
+179
-0
未找到文件。
sound/soc/codecs/wm5102.c
浏览文件 @
1804aff6
...
...
@@ -852,6 +852,15 @@ ARIZONA_MIXER_CONTROLS("AIF2TX2", ARIZONA_AIF2TX2MIX_INPUT_1_SOURCE),
ARIZONA_MIXER_CONTROLS
(
"AIF3TX1"
,
ARIZONA_AIF3TX1MIX_INPUT_1_SOURCE
),
ARIZONA_MIXER_CONTROLS
(
"AIF3TX2"
,
ARIZONA_AIF3TX2MIX_INPUT_1_SOURCE
),
ARIZONA_MIXER_CONTROLS
(
"SLIMTX1"
,
ARIZONA_SLIMTX1MIX_INPUT_1_SOURCE
),
ARIZONA_MIXER_CONTROLS
(
"SLIMTX2"
,
ARIZONA_SLIMTX2MIX_INPUT_1_SOURCE
),
ARIZONA_MIXER_CONTROLS
(
"SLIMTX3"
,
ARIZONA_SLIMTX3MIX_INPUT_1_SOURCE
),
ARIZONA_MIXER_CONTROLS
(
"SLIMTX4"
,
ARIZONA_SLIMTX4MIX_INPUT_1_SOURCE
),
ARIZONA_MIXER_CONTROLS
(
"SLIMTX5"
,
ARIZONA_SLIMTX5MIX_INPUT_1_SOURCE
),
ARIZONA_MIXER_CONTROLS
(
"SLIMTX6"
,
ARIZONA_SLIMTX6MIX_INPUT_1_SOURCE
),
ARIZONA_MIXER_CONTROLS
(
"SLIMTX7"
,
ARIZONA_SLIMTX7MIX_INPUT_1_SOURCE
),
ARIZONA_MIXER_CONTROLS
(
"SLIMTX8"
,
ARIZONA_SLIMTX8MIX_INPUT_1_SOURCE
),
};
ARIZONA_MIXER_ENUMS
(
EQ1
,
ARIZONA_EQ1MIX_INPUT_1_SOURCE
);
...
...
@@ -898,6 +907,15 @@ ARIZONA_MIXER_ENUMS(AIF2TX2, ARIZONA_AIF2TX2MIX_INPUT_1_SOURCE);
ARIZONA_MIXER_ENUMS
(
AIF3TX1
,
ARIZONA_AIF3TX1MIX_INPUT_1_SOURCE
);
ARIZONA_MIXER_ENUMS
(
AIF3TX2
,
ARIZONA_AIF3TX2MIX_INPUT_1_SOURCE
);
ARIZONA_MIXER_ENUMS
(
SLIMTX1
,
ARIZONA_SLIMTX1MIX_INPUT_1_SOURCE
);
ARIZONA_MIXER_ENUMS
(
SLIMTX2
,
ARIZONA_SLIMTX2MIX_INPUT_1_SOURCE
);
ARIZONA_MIXER_ENUMS
(
SLIMTX3
,
ARIZONA_SLIMTX3MIX_INPUT_1_SOURCE
);
ARIZONA_MIXER_ENUMS
(
SLIMTX4
,
ARIZONA_SLIMTX4MIX_INPUT_1_SOURCE
);
ARIZONA_MIXER_ENUMS
(
SLIMTX5
,
ARIZONA_SLIMTX5MIX_INPUT_1_SOURCE
);
ARIZONA_MIXER_ENUMS
(
SLIMTX6
,
ARIZONA_SLIMTX6MIX_INPUT_1_SOURCE
);
ARIZONA_MIXER_ENUM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FT
,
0
),
SND_SOC_DAPM_AIF_IN
(
"SLIMRX8"
,
NULL
,
0
,
ARIZONA_SLIMBUS_RX_CHANNEL_ENABLE
,
ARIZONA_SLIMRX8_ENA_SHIFT
,
0
),
ARIZONA_DSP_WIDGETS
(
DSP1
,
"DSP1"
),
SND_SOC_DAPM_VALUE_MUX
(
"AEC Loopback"
,
ARIZONA_DAC_AEC_CONTROL_1
,
...
...
@@ -1188,6 +1256,15 @@ ARIZONA_MIXER_WIDGETS(AIF2TX2, "AIF2TX2"),
ARIZONA_MIXER_WIDGETS
(
AIF3TX1
,
"AIF3TX1"
),
ARIZONA_MIXER_WIDGETS
(
AIF3TX2
,
"AIF3TX2"
),
ARIZONA_MIXER_WIDGETS
(
SLIMTX1
,
"SLIMTX1"
),
ARIZONA_MIXER_WIDGETS
(
SLIMTX2
,
"SLIMTX2"
),
ARIZONA_MIXER_WIDGETS
(
SLIMTX3
,
"SLIMTX3"
),
ARIZONA_MIXER_WIDGETS
(
SLIMTX4
,
"SLIMTX4"
),
ARIZONA_MIXER_WIDGETS
(
SLIMTX5
,
"SLIMTX5"
),
ARIZONA_MIXER_WIDGETS
(
SLIMTX6
,
"SLIMTX6"
),
ARIZONA_MIXER_WIDGETS
(
SLIMTX7
,
"SLIMTX7"
),
ARIZONA_MIXER_WIDGETS
(
SLIMTX8
,
"SLIMTX8"
),
ARIZONA_MUX_WIDGETS
(
ASRC1L
,
"ASRC1L"
),
ARIZONA_MUX_WIDGETS
(
ASRC1R
,
"ASRC1R"
),
ARIZONA_MUX_WIDGETS
(
ASRC2L
,
"ASRC2L"
),
...
...
@@ -1248,6 +1325,14 @@ SND_SOC_DAPM_OUTPUT("MICSUPP"),
{ name, "AIF2RX2", "AIF2RX2" }, \
{ name, "AIF3RX1", "AIF3RX1" }, \
{ name, "AIF3RX2", "AIF3RX2" }, \
{ name, "SLIMRX1", "SLIMRX1" }, \
{ name, "SLIMRX2", "SLIMRX2" }, \
{ name, "SLIMRX3", "SLIMRX3" }, \
{ name, "SLIMRX4", "SLIMRX4" }, \
{ name, "SLIMRX5", "SLIMRX5" }, \
{ name, "SLIMRX6", "SLIMRX6" }, \
{ name, "SLIMRX7", "SLIMRX7" }, \
{ name, "SLIMRX8", "SLIMRX8" }, \
{ name, "EQ1", "EQ1" }, \
{ name, "EQ2", "EQ2" }, \
{ name, "EQ3", "EQ3" }, \
...
...
@@ -1344,13 +1429,41 @@ static const struct snd_soc_dapm_route wm5102_dapm_routes[] = {
{
"AIF3RX1"
,
NULL
,
"AIF3 Playback"
},
{
"AIF3RX2"
,
NULL
,
"AIF3 Playback"
},
{
"Slim1 Capture"
,
NULL
,
"SLIMTX1"
},
{
"Slim1 Capture"
,
NULL
,
"SLIMTX2"
},
{
"Slim1 Capture"
,
NULL
,
"SLIMTX3"
},
{
"Slim1 Capture"
,
NULL
,
"SLIMTX4"
},
{
"SLIMRX1"
,
NULL
,
"Slim1 Playback"
},
{
"SLIMRX2"
,
NULL
,
"Slim1 Playback"
},
{
"SLIMRX3"
,
NULL
,
"Slim1 Playback"
},
{
"SLIMRX4"
,
NULL
,
"Slim1 Playback"
},
{
"Slim2 Capture"
,
NULL
,
"SLIMTX5"
},
{
"Slim2 Capture"
,
NULL
,
"SLIMTX6"
},
{
"SLIMRX5"
,
NULL
,
"Slim2 Playback"
},
{
"SLIMRX6"
,
NULL
,
"Slim2 Playback"
},
{
"Slim3 Capture"
,
NULL
,
"SLIMTX7"
},
{
"Slim3 Capture"
,
NULL
,
"SLIMTX8"
},
{
"SLIMRX7"
,
NULL
,
"Slim3 Playback"
},
{
"SLIMRX8"
,
NULL
,
"Slim3 Playback"
},
{
"AIF1 Playback"
,
NULL
,
"SYSCLK"
},
{
"AIF2 Playback"
,
NULL
,
"SYSCLK"
},
{
"AIF3 Playback"
,
NULL
,
"SYSCLK"
},
{
"Slim1 Playback"
,
NULL
,
"SYSCLK"
},
{
"Slim2 Playback"
,
NULL
,
"SYSCLK"
},
{
"Slim3 Playback"
,
NULL
,
"SYSCLK"
},
{
"AIF1 Capture"
,
NULL
,
"SYSCLK"
},
{
"AIF2 Capture"
,
NULL
,
"SYSCLK"
},
{
"AIF3 Capture"
,
NULL
,
"SYSCLK"
},
{
"Slim1 Capture"
,
NULL
,
"SYSCLK"
},
{
"Slim2 Capture"
,
NULL
,
"SYSCLK"
},
{
"Slim3 Capture"
,
NULL
,
"SYSCLK"
},
{
"IN1L PGA"
,
NULL
,
"IN1L"
},
{
"IN1R PGA"
,
NULL
,
"IN1R"
},
...
...
@@ -1407,6 +1520,15 @@ static const struct snd_soc_dapm_route wm5102_dapm_routes[] = {
ARIZONA_MIXER_ROUTES
(
"AIF3TX1"
,
"AIF3TX1"
),
ARIZONA_MIXER_ROUTES
(
"AIF3TX2"
,
"AIF3TX2"
),
ARIZONA_MIXER_ROUTES
(
"SLIMTX1"
,
"SLIMTX1"
),
ARIZONA_MIXER_ROUTES
(
"SLIMTX2"
,
"SLIMTX2"
),
ARIZONA_MIXER_ROUTES
(
"SLIMTX3"
,
"SLIMTX3"
),
ARIZONA_MIXER_ROUTES
(
"SLIMTX4"
,
"SLIMTX4"
),
ARIZONA_MIXER_ROUTES
(
"SLIMTX5"
,
"SLIMTX5"
),
ARIZONA_MIXER_ROUTES
(
"SLIMTX6"
,
"SLIMTX6"
),
ARIZONA_MIXER_ROUTES
(
"SLIMTX7"
,
"SLIMTX7"
),
ARIZONA_MIXER_ROUTES
(
"SLIMTX8"
,
"SLIMTX8"
),
ARIZONA_MIXER_ROUTES
(
"EQ1"
,
"EQ1"
),
ARIZONA_MIXER_ROUTES
(
"EQ2"
,
"EQ2"
),
ARIZONA_MIXER_ROUTES
(
"EQ3"
,
"EQ3"
),
...
...
@@ -1559,6 +1681,63 @@ static struct snd_soc_dai_driver wm5102_dai[] = {
.
ops
=
&
arizona_dai_ops
,
.
symmetric_rates
=
1
,
},
{
.
name
=
"wm5102-slim1"
,
.
id
=
4
,
.
playback
=
{
.
stream_name
=
"Slim1 Playback"
,
.
channels_min
=
1
,
.
channels_max
=
4
,
.
rates
=
WM5102_RATES
,
.
formats
=
WM5102_FORMATS
,
},
.
capture
=
{
.
stream_name
=
"Slim1 Capture"
,
.
channels_min
=
1
,
.
channels_max
=
4
,
.
rates
=
WM5102_RATES
,
.
formats
=
WM5102_FORMATS
,
},
.
ops
=
&
arizona_simple_dai_ops
,
},
{
.
name
=
"wm5102-slim2"
,
.
id
=
5
,
.
playback
=
{
.
stream_name
=
"Slim2 Playback"
,
.
channels_min
=
1
,
.
channels_max
=
2
,
.
rates
=
WM5102_RATES
,
.
formats
=
WM5102_FORMATS
,
},
.
capture
=
{
.
stream_name
=
"Slim2 Capture"
,
.
channels_min
=
1
,
.
channels_max
=
2
,
.
rates
=
WM5102_RATES
,
.
formats
=
WM5102_FORMATS
,
},
.
ops
=
&
arizona_simple_dai_ops
,
},
{
.
name
=
"wm5102-slim3"
,
.
id
=
6
,
.
playback
=
{
.
stream_name
=
"Slim3 Playback"
,
.
channels_min
=
1
,
.
channels_max
=
2
,
.
rates
=
WM5102_RATES
,
.
formats
=
WM5102_FORMATS
,
},
.
capture
=
{
.
stream_name
=
"Slim3 Capture"
,
.
channels_min
=
1
,
.
channels_max
=
2
,
.
rates
=
WM5102_RATES
,
.
formats
=
WM5102_FORMATS
,
},
.
ops
=
&
arizona_simple_dai_ops
,
},
};
static
int
wm5102_codec_probe
(
struct
snd_soc_codec
*
codec
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录