Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
ff868b22
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看板
提交
ff868b22
编写于
6月 17, 2013
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/topic/max98090' into asoc-next
上级
65027372
3722dc8e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
20 addition
and
4 deletion
+20
-4
sound/soc/codecs/max98090.c
sound/soc/codecs/max98090.c
+20
-4
未找到文件。
sound/soc/codecs/max98090.c
浏览文件 @
ff868b22
...
...
@@ -857,6 +857,14 @@ static const struct soc_enum mic2_mux_enum =
static
const
struct
snd_kcontrol_new
max98090_mic2_mux
=
SOC_DAPM_ENUM
(
"MIC2 Mux"
,
mic2_mux_enum
);
static
const
char
*
dmic_mux_text
[]
=
{
"ADC"
,
"DMIC"
};
static
const
struct
soc_enum
dmic_mux_enum
=
SOC_ENUM_SINGLE_EXT
(
ARRAY_SIZE
(
dmic_mux_text
),
dmic_mux_text
);
static
const
struct
snd_kcontrol_new
max98090_dmic_mux
=
SOC_DAPM_ENUM_VIRT
(
"DMIC Mux"
,
dmic_mux_enum
);
static
const
char
*
max98090_micpre_text
[]
=
{
"Off"
,
"On"
};
static
const
struct
soc_enum
max98090_pa1en_enum
=
...
...
@@ -1144,6 +1152,9 @@ static const struct snd_soc_dapm_widget max98090_dapm_widgets[] = {
SND_SOC_DAPM_MUX
(
"MIC2 Mux"
,
SND_SOC_NOPM
,
0
,
0
,
&
max98090_mic2_mux
),
SND_SOC_DAPM_VIRT_MUX
(
"DMIC Mux"
,
SND_SOC_NOPM
,
0
,
0
,
&
max98090_dmic_mux
),
SND_SOC_DAPM_PGA_E
(
"MIC1 Input"
,
M98090_REG_MIC1_INPUT_LEVEL
,
M98090_MIC_PA1EN_SHIFT
,
0
,
NULL
,
0
,
max98090_micinput_event
,
SND_SOC_DAPM_POST_PMU
|
SND_SOC_DAPM_POST_PMD
),
...
...
@@ -1336,11 +1347,14 @@ static const struct snd_soc_dapm_route max98090_dapm_routes[] = {
{
"ADCL"
,
NULL
,
"SHDN"
},
{
"ADCR"
,
NULL
,
"SHDN"
},
{
"LBENL Mux"
,
"Normal"
,
"ADCL"
},
{
"LBENL Mux"
,
"Normal"
,
"DMICL"
},
{
"DMIC Mux"
,
"ADC"
,
"ADCL"
},
{
"DMIC Mux"
,
"ADC"
,
"ADCR"
},
{
"DMIC Mux"
,
"DMIC"
,
"DMICL"
},
{
"DMIC Mux"
,
"DMIC"
,
"DMICR"
},
{
"LBENL Mux"
,
"Normal"
,
"DMIC Mux"
},
{
"LBENL Mux"
,
"Loopback"
,
"LTENL Mux"
},
{
"LBENR Mux"
,
"Normal"
,
"ADCR"
},
{
"LBENR Mux"
,
"Normal"
,
"DMICR"
},
{
"LBENR Mux"
,
"Normal"
,
"DMIC Mux"
},
{
"LBENR Mux"
,
"Loopback"
,
"LTENR Mux"
},
{
"AIFOUTL"
,
NULL
,
"LBENL Mux"
},
...
...
@@ -2336,6 +2350,7 @@ static int max98090_i2c_remove(struct i2c_client *client)
return
0
;
}
#ifdef CONFIG_PM_RUNTIME
static
int
max98090_runtime_resume
(
struct
device
*
dev
)
{
struct
max98090_priv
*
max98090
=
dev_get_drvdata
(
dev
);
...
...
@@ -2355,6 +2370,7 @@ static int max98090_runtime_suspend(struct device *dev)
return
0
;
}
#endif
static
const
struct
dev_pm_ops
max98090_pm
=
{
SET_RUNTIME_PM_OPS
(
max98090_runtime_suspend
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录