Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
a4c83a2d
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看板
提交
a4c83a2d
编写于
1月 16, 2014
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/topic/arizona' into for-tiwai
上级
2f43a23a
afb6d4ed
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
40 addition
and
0 deletion
+40
-0
drivers/mfd/wm5110-tables.c
drivers/mfd/wm5110-tables.c
+6
-0
include/linux/mfd/arizona/registers.h
include/linux/mfd/arizona/registers.h
+27
-0
sound/soc/codecs/wm5110.c
sound/soc/codecs/wm5110.c
+7
-0
未找到文件。
drivers/mfd/wm5110-tables.c
浏览文件 @
a4c83a2d
...
...
@@ -610,6 +610,9 @@ static const struct reg_default wm5110_reg_default[] = {
{
0x00000491
,
0x0000
},
/* R1169 - PDM SPK1 CTRL 2 */
{
0x00000492
,
0x0069
},
/* R1170 - PDM SPK2 CTRL 1 */
{
0x00000493
,
0x0000
},
/* R1171 - PDM SPK2 CTRL 2 */
{
0x000004A0
,
0x3480
},
/* R1184 - HP1 Short Circuit Ctrl */
{
0x000004A1
,
0x3480
},
/* R1185 - HP2 Short Circuit Ctrl */
{
0x000004A2
,
0x3480
},
/* R1186 - HP3 Short Circuit Ctrl */
{
0x00000500
,
0x000C
},
/* R1280 - AIF1 BCLK Ctrl */
{
0x00000501
,
0x0008
},
/* R1281 - AIF1 Tx Pin Ctrl */
{
0x00000502
,
0x0000
},
/* R1282 - AIF1 Rx Pin Ctrl */
...
...
@@ -1639,6 +1642,9 @@ static bool wm5110_readable_register(struct device *dev, unsigned int reg)
case
ARIZONA_PDM_SPK1_CTRL_2
:
case
ARIZONA_PDM_SPK2_CTRL_1
:
case
ARIZONA_PDM_SPK2_CTRL_2
:
case
ARIZONA_HP1_SHORT_CIRCUIT_CTRL
:
case
ARIZONA_HP2_SHORT_CIRCUIT_CTRL
:
case
ARIZONA_HP3_SHORT_CIRCUIT_CTRL
:
case
ARIZONA_AIF1_BCLK_CTRL
:
case
ARIZONA_AIF1_TX_PIN_CTRL
:
case
ARIZONA_AIF1_RX_PIN_CTRL
:
...
...
include/linux/mfd/arizona/registers.h
浏览文件 @
a4c83a2d
...
...
@@ -226,6 +226,9 @@
#define ARIZONA_PDM_SPK1_CTRL_2 0x491
#define ARIZONA_PDM_SPK2_CTRL_1 0x492
#define ARIZONA_PDM_SPK2_CTRL_2 0x493
#define ARIZONA_HP1_SHORT_CIRCUIT_CTRL 0x4A0
#define ARIZONA_HP2_SHORT_CIRCUIT_CTRL 0x4A1
#define ARIZONA_HP3_SHORT_CIRCUIT_CTRL 0x4A2
#define ARIZONA_SPK_CTRL_2 0x4B5
#define ARIZONA_SPK_CTRL_3 0x4B6
#define ARIZONA_DAC_COMP_1 0x4DC
...
...
@@ -3332,6 +3335,30 @@
#define ARIZONA_SPK2_FMT_SHIFT 0
/* SPK2_FMT */
#define ARIZONA_SPK2_FMT_WIDTH 1
/* SPK2_FMT */
/*
* R1184 (0x4A0) - HP1 Short Circuit Ctrl
*/
#define ARIZONA_HP1_SC_ENA 0x1000
/* HP1_SC_ENA */
#define ARIZONA_HP1_SC_ENA_MASK 0x1000
/* HP1_SC_ENA */
#define ARIZONA_HP1_SC_ENA_SHIFT 12
/* HP1_SC_ENA */
#define ARIZONA_HP1_SC_ENA_WIDTH 1
/* HP1_SC_ENA */
/*
* R1185 (0x4A1) - HP2 Short Circuit Ctrl
*/
#define ARIZONA_HP2_SC_ENA 0x1000
/* HP2_SC_ENA */
#define ARIZONA_HP2_SC_ENA_MASK 0x1000
/* HP2_SC_ENA */
#define ARIZONA_HP2_SC_ENA_SHIFT 12
/* HP2_SC_ENA */
#define ARIZONA_HP2_SC_ENA_WIDTH 1
/* HP2_SC_ENA */
/*
* R1186 (0x4A2) - HP3 Short Circuit Ctrl
*/
#define ARIZONA_HP3_SC_ENA 0x1000
/* HP3_SC_ENA */
#define ARIZONA_HP3_SC_ENA_MASK 0x1000
/* HP3_SC_ENA */
#define ARIZONA_HP3_SC_ENA_SHIFT 12
/* HP3_SC_ENA */
#define ARIZONA_HP3_SC_ENA_WIDTH 1
/* HP3_SC_ENA */
/*
* R1244 (0x4DC) - DAC comp 1
*/
...
...
sound/soc/codecs/wm5110.c
浏览文件 @
a4c83a2d
...
...
@@ -313,6 +313,13 @@ ARIZONA_MIXER_CONTROLS("SPKDAT1R", ARIZONA_OUT5RMIX_INPUT_1_SOURCE),
ARIZONA_MIXER_CONTROLS
(
"SPKDAT2L"
,
ARIZONA_OUT6LMIX_INPUT_1_SOURCE
),
ARIZONA_MIXER_CONTROLS
(
"SPKDAT2R"
,
ARIZONA_OUT6RMIX_INPUT_1_SOURCE
),
SOC_SINGLE
(
"HPOUT1 SC Protect Switch"
,
ARIZONA_HP1_SHORT_CIRCUIT_CTRL
,
ARIZONA_HP1_SC_ENA_SHIFT
,
1
,
0
),
SOC_SINGLE
(
"HPOUT2 SC Protect Switch"
,
ARIZONA_HP2_SHORT_CIRCUIT_CTRL
,
ARIZONA_HP2_SC_ENA_SHIFT
,
1
,
0
),
SOC_SINGLE
(
"HPOUT3 SC Protect Switch"
,
ARIZONA_HP3_SHORT_CIRCUIT_CTRL
,
ARIZONA_HP3_SC_ENA_SHIFT
,
1
,
0
),
SOC_DOUBLE_R
(
"HPOUT1 Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_1L
,
ARIZONA_DAC_DIGITAL_VOLUME_1R
,
ARIZONA_OUT1L_MUTE_SHIFT
,
1
,
1
),
SOC_DOUBLE_R
(
"HPOUT2 Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_2L
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录