Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
d853c0cc
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看板
提交
d853c0cc
编写于
2月 23, 2014
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branches 'asoc/fix/ad1980' and 'asoc/fix/isabelle' into asoc-linus
上级
45d39cbf
901bb6c5
cdbb4925
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
32 addition
and
24 deletion
+32
-24
sound/soc/codecs/ad1980.c
sound/soc/codecs/ad1980.c
+2
-2
sound/soc/codecs/isabelle.c
sound/soc/codecs/isabelle.c
+30
-22
未找到文件。
sound/soc/codecs/ad1980.c
浏览文件 @
d853c0cc
...
...
@@ -57,8 +57,8 @@ static const u16 ad1980_reg[] = {
static
const
char
*
ad1980_rec_sel
[]
=
{
"Mic"
,
"CD"
,
"NC"
,
"AUX"
,
"Line"
,
"Stereo Mix"
,
"Mono Mix"
,
"Phone"
};
static
const
struct
soc_enum
ad1980_cap_src
=
SOC_ENUM_DOUBLE
(
AC97_REC_SEL
,
8
,
0
,
7
,
ad1980_rec_sel
);
static
SOC_ENUM_DOUBLE_DECL
(
ad1980_cap_src
,
AC97_REC_SEL
,
8
,
0
,
ad1980_rec_sel
);
static
const
struct
snd_kcontrol_new
ad1980_snd_ac97_controls
[]
=
{
SOC_DOUBLE
(
"Master Playback Volume"
,
AC97_MASTER
,
8
,
0
,
31
,
1
),
...
...
sound/soc/codecs/isabelle.c
浏览文件 @
d853c0cc
...
...
@@ -140,13 +140,17 @@ static const char *isabelle_rx1_texts[] = {"VRX1", "ARX1"};
static
const
char
*
isabelle_rx2_texts
[]
=
{
"VRX2"
,
"ARX2"
};
static
const
struct
soc_enum
isabelle_rx1_enum
[]
=
{
SOC_ENUM_SINGLE
(
ISABELLE_VOICE_HPF_CFG_REG
,
3
,
1
,
isabelle_rx1_texts
),
SOC_ENUM_SINGLE
(
ISABELLE_AUDIO_HPF_CFG_REG
,
5
,
1
,
isabelle_rx1_texts
),
SOC_ENUM_SINGLE
(
ISABELLE_VOICE_HPF_CFG_REG
,
3
,
ARRAY_SIZE
(
isabelle_rx1_texts
),
isabelle_rx1_texts
),
SOC_ENUM_SINGLE
(
ISABELLE_AUDIO_HPF_CFG_REG
,
5
,
ARRAY_SIZE
(
isabelle_rx1_texts
),
isabelle_rx1_texts
),
};
static
const
struct
soc_enum
isabelle_rx2_enum
[]
=
{
SOC_ENUM_SINGLE
(
ISABELLE_VOICE_HPF_CFG_REG
,
2
,
1
,
isabelle_rx2_texts
),
SOC_ENUM_SINGLE
(
ISABELLE_AUDIO_HPF_CFG_REG
,
4
,
1
,
isabelle_rx2_texts
),
SOC_ENUM_SINGLE
(
ISABELLE_VOICE_HPF_CFG_REG
,
2
,
ARRAY_SIZE
(
isabelle_rx2_texts
),
isabelle_rx2_texts
),
SOC_ENUM_SINGLE
(
ISABELLE_AUDIO_HPF_CFG_REG
,
4
,
ARRAY_SIZE
(
isabelle_rx2_texts
),
isabelle_rx2_texts
),
};
/* Headset DAC playback switches */
...
...
@@ -161,13 +165,17 @@ static const char *isabelle_atx_texts[] = {"AMIC1", "DMIC"};
static
const
char
*
isabelle_vtx_texts
[]
=
{
"AMIC2"
,
"DMIC"
};
static
const
struct
soc_enum
isabelle_atx_enum
[]
=
{
SOC_ENUM_SINGLE
(
ISABELLE_AMIC_CFG_REG
,
7
,
1
,
isabelle_atx_texts
),
SOC_ENUM_SINGLE
(
ISABELLE_DMIC_CFG_REG
,
0
,
1
,
isabelle_atx_texts
),
SOC_ENUM_SINGLE
(
ISABELLE_AMIC_CFG_REG
,
7
,
ARRAY_SIZE
(
isabelle_atx_texts
),
isabelle_atx_texts
),
SOC_ENUM_SINGLE
(
ISABELLE_DMIC_CFG_REG
,
0
,
ARRAY_SIZE
(
isabelle_atx_texts
),
isabelle_atx_texts
),
};
static
const
struct
soc_enum
isabelle_vtx_enum
[]
=
{
SOC_ENUM_SINGLE
(
ISABELLE_AMIC_CFG_REG
,
6
,
1
,
isabelle_vtx_texts
),
SOC_ENUM_SINGLE
(
ISABELLE_DMIC_CFG_REG
,
0
,
1
,
isabelle_vtx_texts
),
SOC_ENUM_SINGLE
(
ISABELLE_AMIC_CFG_REG
,
6
,
ARRAY_SIZE
(
isabelle_vtx_texts
),
isabelle_vtx_texts
),
SOC_ENUM_SINGLE
(
ISABELLE_DMIC_CFG_REG
,
0
,
ARRAY_SIZE
(
isabelle_vtx_texts
),
isabelle_vtx_texts
),
};
static
const
struct
snd_kcontrol_new
atx_mux_controls
=
...
...
@@ -183,17 +191,13 @@ static const char *isabelle_amic1_texts[] = {
/* Left analog microphone selection */
static
const
char
*
isabelle_amic2_texts
[]
=
{
"Sub Mic"
,
"Aux/FM Right"
};
static
const
struct
soc_enum
isabelle_amic1_enum
[]
=
{
SOC_ENUM_SINGLE
(
ISABELLE_AMIC_CFG_REG
,
5
,
ARRAY_SIZE
(
isabelle_amic1_texts
),
isabelle_amic1_texts
),
};
static
SOC_ENUM_SINGLE_DECL
(
isabelle_amic1_enum
,
ISABELLE_AMIC_CFG_REG
,
5
,
isabelle_amic1_texts
);
static
const
struct
soc_enum
isabelle_amic2_enum
[]
=
{
SOC_ENUM_SINGLE
(
ISABELLE_AMIC_CFG_REG
,
4
,
ARRAY_SIZE
(
isabelle_amic2_texts
),
isabelle_amic2_texts
),
};
static
SOC_ENUM_SINGLE_DECL
(
isabelle_amic2_enum
,
ISABELLE_AMIC_CFG_REG
,
4
,
isabelle_amic2_texts
);
static
const
struct
snd_kcontrol_new
amic1_control
=
SOC_DAPM_ENUM
(
"Route"
,
isabelle_amic1_enum
);
...
...
@@ -206,16 +210,20 @@ static const char *isabelle_st_audio_texts[] = {"ATX1", "ATX2"};
static
const
char
*
isabelle_st_voice_texts
[]
=
{
"VTX1"
,
"VTX2"
};
static
const
struct
soc_enum
isabelle_st_audio_enum
[]
=
{
SOC_ENUM_SINGLE
(
ISABELLE_ATX_STPGA1_CFG_REG
,
7
,
1
,
SOC_ENUM_SINGLE
(
ISABELLE_ATX_STPGA1_CFG_REG
,
7
,
ARRAY_SIZE
(
isabelle_st_audio_texts
),
isabelle_st_audio_texts
),
SOC_ENUM_SINGLE
(
ISABELLE_ATX_STPGA2_CFG_REG
,
7
,
1
,
SOC_ENUM_SINGLE
(
ISABELLE_ATX_STPGA2_CFG_REG
,
7
,
ARRAY_SIZE
(
isabelle_st_audio_texts
),
isabelle_st_audio_texts
),
};
static
const
struct
soc_enum
isabelle_st_voice_enum
[]
=
{
SOC_ENUM_SINGLE
(
ISABELLE_VTX_STPGA1_CFG_REG
,
7
,
1
,
SOC_ENUM_SINGLE
(
ISABELLE_VTX_STPGA1_CFG_REG
,
7
,
ARRAY_SIZE
(
isabelle_st_voice_texts
),
isabelle_st_voice_texts
),
SOC_ENUM_SINGLE
(
ISABELLE_VTX2_STPGA2_CFG_REG
,
7
,
1
,
SOC_ENUM_SINGLE
(
ISABELLE_VTX2_STPGA2_CFG_REG
,
7
,
ARRAY_SIZE
(
isabelle_st_voice_texts
),
isabelle_st_voice_texts
),
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录