Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
a39fbe00
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a39fbe00
编写于
7月 24, 2016
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/topic/rt5645' into asoc-next
上级
2d2c6e3b
79c89031
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
24 addition
and
2 deletion
+24
-2
sound/soc/codecs/rt5645.c
sound/soc/codecs/rt5645.c
+21
-2
sound/soc/codecs/rt5645.h
sound/soc/codecs/rt5645.h
+3
-0
未找到文件。
sound/soc/codecs/rt5645.c
浏览文件 @
a39fbe00
...
@@ -63,6 +63,7 @@ static const struct reg_sequence init_list[] = {
...
@@ -63,6 +63,7 @@ static const struct reg_sequence init_list[] = {
{
RT5645_PR_BASE
+
0x20
,
0x611f
},
{
RT5645_PR_BASE
+
0x20
,
0x611f
},
{
RT5645_PR_BASE
+
0x21
,
0x4040
},
{
RT5645_PR_BASE
+
0x21
,
0x4040
},
{
RT5645_PR_BASE
+
0x23
,
0x0004
},
{
RT5645_PR_BASE
+
0x23
,
0x0004
},
{
RT5645_ASRC_4
,
0x0120
},
};
};
static
const
struct
reg_sequence
rt5650_init_list
[]
=
{
static
const
struct
reg_sequence
rt5650_init_list
[]
=
{
...
@@ -157,7 +158,7 @@ static const struct reg_default rt5645_reg[] = {
...
@@ -157,7 +158,7 @@ static const struct reg_default rt5645_reg[] = {
{
0x83
,
0x0000
},
{
0x83
,
0x0000
},
{
0x84
,
0x0000
},
{
0x84
,
0x0000
},
{
0x85
,
0x0000
},
{
0x85
,
0x0000
},
{
0x8a
,
0x0
00
0
},
{
0x8a
,
0x0
12
0
},
{
0x8e
,
0x0004
},
{
0x8e
,
0x0004
},
{
0x8f
,
0x1100
},
{
0x8f
,
0x1100
},
{
0x90
,
0x0646
},
{
0x90
,
0x0646
},
...
@@ -314,7 +315,7 @@ static const struct reg_default rt5650_reg[] = {
...
@@ -314,7 +315,7 @@ static const struct reg_default rt5650_reg[] = {
{
0x83
,
0x0000
},
{
0x83
,
0x0000
},
{
0x84
,
0x0000
},
{
0x84
,
0x0000
},
{
0x85
,
0x0000
},
{
0x85
,
0x0000
},
{
0x8a
,
0x0
00
0
},
{
0x8a
,
0x0
12
0
},
{
0x8e
,
0x0004
},
{
0x8e
,
0x0004
},
{
0x8f
,
0x1100
},
{
0x8f
,
0x1100
},
{
0x90
,
0x0646
},
{
0x90
,
0x0646
},
...
@@ -741,6 +742,14 @@ static int rt5645_spk_put_volsw(struct snd_kcontrol *kcontrol,
...
@@ -741,6 +742,14 @@ static int rt5645_spk_put_volsw(struct snd_kcontrol *kcontrol,
return
ret
;
return
ret
;
}
}
static
const
char
*
const
rt5645_dac1_vol_ctrl_mode_text
[]
=
{
"immediately"
,
"zero crossing"
,
"soft ramp"
};
static
SOC_ENUM_SINGLE_DECL
(
rt5645_dac1_vol_ctrl_mode
,
RT5645_PR_BASE
,
RT5645_DA1_ZDET_SFT
,
rt5645_dac1_vol_ctrl_mode_text
);
static
const
struct
snd_kcontrol_new
rt5645_snd_controls
[]
=
{
static
const
struct
snd_kcontrol_new
rt5645_snd_controls
[]
=
{
/* Speaker Output Volume */
/* Speaker Output Volume */
SOC_DOUBLE
(
"Speaker Channel Switch"
,
RT5645_SPK_VOL
,
SOC_DOUBLE
(
"Speaker Channel Switch"
,
RT5645_SPK_VOL
,
...
@@ -807,6 +816,9 @@ static const struct snd_kcontrol_new rt5645_snd_controls[] = {
...
@@ -807,6 +816,9 @@ static const struct snd_kcontrol_new rt5645_snd_controls[] = {
SOC_SINGLE
(
"I2S2 Func Switch"
,
RT5645_GPIO_CTRL1
,
RT5645_I2S2_SEL_SFT
,
SOC_SINGLE
(
"I2S2 Func Switch"
,
RT5645_GPIO_CTRL1
,
RT5645_I2S2_SEL_SFT
,
1
,
1
),
1
,
1
),
RT5645_HWEQ
(
"Speaker HWEQ"
),
RT5645_HWEQ
(
"Speaker HWEQ"
),
/* Digital Soft Volume Control */
SOC_ENUM
(
"DAC1 Digital Volume Control Func"
,
rt5645_dac1_vol_ctrl_mode
),
};
};
/**
/**
...
@@ -3532,6 +3544,7 @@ MODULE_DEVICE_TABLE(i2c, rt5645_i2c_id);
...
@@ -3532,6 +3544,7 @@ MODULE_DEVICE_TABLE(i2c, rt5645_i2c_id);
static
const
struct
acpi_device_id
rt5645_acpi_match
[]
=
{
static
const
struct
acpi_device_id
rt5645_acpi_match
[]
=
{
{
"10EC5645"
,
0
},
{
"10EC5645"
,
0
},
{
"10EC5650"
,
0
},
{
"10EC5650"
,
0
},
{
"10EC5640"
,
0
},
{},
{},
};
};
MODULE_DEVICE_TABLE
(
acpi
,
rt5645_acpi_match
);
MODULE_DEVICE_TABLE
(
acpi
,
rt5645_acpi_match
);
...
@@ -3562,6 +3575,12 @@ static const struct dmi_system_id dmi_platform_intel_braswell[] = {
...
@@ -3562,6 +3575,12 @@ static const struct dmi_system_id dmi_platform_intel_braswell[] = {
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"Setzer"
),
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"Setzer"
),
},
},
},
},
{
.
ident
=
"Microsoft Surface 3"
,
.
matches
=
{
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"Surface 3"
),
},
},
{
}
{
}
};
};
...
...
sound/soc/codecs/rt5645.h
浏览文件 @
a39fbe00
...
@@ -2018,6 +2018,9 @@
...
@@ -2018,6 +2018,9 @@
/* Codec Private Register definition */
/* Codec Private Register definition */
/* DAC ADC Digital Volume (0x00) */
#define RT5645_DA1_ZDET_SFT 6
/* 3D Speaker Control (0x63) */
/* 3D Speaker Control (0x63) */
#define RT5645_3D_SPK_MASK (0x1 << 15)
#define RT5645_3D_SPK_MASK (0x1 << 15)
#define RT5645_3D_SPK_SFT 15
#define RT5645_3D_SPK_SFT 15
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录