Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
e61c0924
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看板
提交
e61c0924
编写于
3月 07, 2013
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/fix/arizona' into tmp
上级
6dbe51c2
82968b7e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
21 addition
and
10 deletion
+21
-10
sound/soc/codecs/wm5102.c
sound/soc/codecs/wm5102.c
+13
-2
sound/soc/codecs/wm5110.c
sound/soc/codecs/wm5110.c
+8
-8
未找到文件。
sound/soc/codecs/wm5102.c
浏览文件 @
e61c0924
...
...
@@ -573,6 +573,13 @@ static const struct reg_default wm5102_sysclk_reva_patch[] = {
{
0x025e
,
0x0112
},
};
static
const
struct
reg_default
wm5102_sysclk_revb_patch
[]
=
{
{
0x3081
,
0x08FE
},
{
0x3083
,
0x00ED
},
{
0x30C1
,
0x08FE
},
{
0x30C3
,
0x00ED
},
};
static
int
wm5102_sysclk_ev
(
struct
snd_soc_dapm_widget
*
w
,
struct
snd_kcontrol
*
kcontrol
,
int
event
)
{
...
...
@@ -587,6 +594,10 @@ static int wm5102_sysclk_ev(struct snd_soc_dapm_widget *w,
patch
=
wm5102_sysclk_reva_patch
;
patch_size
=
ARRAY_SIZE
(
wm5102_sysclk_reva_patch
);
break
;
default:
patch
=
wm5102_sysclk_revb_patch
;
patch_size
=
ARRAY_SIZE
(
wm5102_sysclk_revb_patch
);
break
;
}
switch
(
event
)
{
...
...
@@ -755,7 +766,7 @@ SOC_SINGLE("SPKDAT1 High Performance Switch", ARIZONA_OUTPUT_PATH_CONFIG_5L,
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
(
"OUT2 Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_2L
,
SOC_DOUBLE_R
(
"
HP
OUT2 Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_2L
,
ARIZONA_DAC_DIGITAL_VOLUME_2R
,
ARIZONA_OUT2L_MUTE_SHIFT
,
1
,
1
),
SOC_SINGLE
(
"EPOUT Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_3L
,
ARIZONA_OUT3L_MUTE_SHIFT
,
1
,
1
),
...
...
@@ -767,7 +778,7 @@ SOC_DOUBLE_R("SPKDAT1 Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_5L,
SOC_DOUBLE_R_TLV
(
"HPOUT1 Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_1L
,
ARIZONA_DAC_DIGITAL_VOLUME_1R
,
ARIZONA_OUT1L_VOL_SHIFT
,
0xbf
,
0
,
digital_tlv
),
SOC_DOUBLE_R_TLV
(
"OUT2 Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_2L
,
SOC_DOUBLE_R_TLV
(
"
HP
OUT2 Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_2L
,
ARIZONA_DAC_DIGITAL_VOLUME_2R
,
ARIZONA_OUT2L_VOL_SHIFT
,
0xbf
,
0
,
digital_tlv
),
SOC_SINGLE_TLV
(
"EPOUT Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_3L
,
...
...
sound/soc/codecs/wm5110.c
浏览文件 @
e61c0924
...
...
@@ -213,9 +213,9 @@ ARIZONA_MIXER_CONTROLS("SPKDAT2R", ARIZONA_OUT6RMIX_INPUT_1_SOURCE),
SOC_SINGLE
(
"HPOUT1 High Performance Switch"
,
ARIZONA_OUTPUT_PATH_CONFIG_1L
,
ARIZONA_OUT1_OSR_SHIFT
,
1
,
0
),
SOC_SINGLE
(
"OUT2 High Performance Switch"
,
ARIZONA_OUTPUT_PATH_CONFIG_2L
,
SOC_SINGLE
(
"
HP
OUT2 High Performance Switch"
,
ARIZONA_OUTPUT_PATH_CONFIG_2L
,
ARIZONA_OUT2_OSR_SHIFT
,
1
,
0
),
SOC_SINGLE
(
"OUT3 High Performance Switch"
,
ARIZONA_OUTPUT_PATH_CONFIG_3L
,
SOC_SINGLE
(
"
HP
OUT3 High Performance Switch"
,
ARIZONA_OUTPUT_PATH_CONFIG_3L
,
ARIZONA_OUT3_OSR_SHIFT
,
1
,
0
),
SOC_SINGLE
(
"Speaker High Performance Switch"
,
ARIZONA_OUTPUT_PATH_CONFIG_4L
,
ARIZONA_OUT4_OSR_SHIFT
,
1
,
0
),
...
...
@@ -226,9 +226,9 @@ SOC_SINGLE("SPKDAT2 High Performance Switch", ARIZONA_OUTPUT_PATH_CONFIG_6L,
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
(
"OUT2 Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_2L
,
SOC_DOUBLE_R
(
"
HP
OUT2 Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_2L
,
ARIZONA_DAC_DIGITAL_VOLUME_2R
,
ARIZONA_OUT2L_MUTE_SHIFT
,
1
,
1
),
SOC_DOUBLE_R
(
"OUT3 Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_3L
,
SOC_DOUBLE_R
(
"
HP
OUT3 Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_3L
,
ARIZONA_DAC_DIGITAL_VOLUME_3R
,
ARIZONA_OUT3L_MUTE_SHIFT
,
1
,
1
),
SOC_DOUBLE_R
(
"Speaker Digital Switch"
,
ARIZONA_DAC_DIGITAL_VOLUME_4L
,
ARIZONA_DAC_DIGITAL_VOLUME_4R
,
ARIZONA_OUT4L_MUTE_SHIFT
,
1
,
1
),
...
...
@@ -240,10 +240,10 @@ SOC_DOUBLE_R("SPKDAT2 Digital Switch", ARIZONA_DAC_DIGITAL_VOLUME_6L,
SOC_DOUBLE_R_TLV
(
"HPOUT1 Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_1L
,
ARIZONA_DAC_DIGITAL_VOLUME_1R
,
ARIZONA_OUT1L_VOL_SHIFT
,
0xbf
,
0
,
digital_tlv
),
SOC_DOUBLE_R_TLV
(
"OUT2 Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_2L
,
SOC_DOUBLE_R_TLV
(
"
HP
OUT2 Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_2L
,
ARIZONA_DAC_DIGITAL_VOLUME_2R
,
ARIZONA_OUT2L_VOL_SHIFT
,
0xbf
,
0
,
digital_tlv
),
SOC_DOUBLE_R_TLV
(
"OUT3 Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_3L
,
SOC_DOUBLE_R_TLV
(
"
HP
OUT3 Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_3L
,
ARIZONA_DAC_DIGITAL_VOLUME_3R
,
ARIZONA_OUT3L_VOL_SHIFT
,
0xbf
,
0
,
digital_tlv
),
SOC_DOUBLE_R_TLV
(
"Speaker Digital Volume"
,
ARIZONA_DAC_DIGITAL_VOLUME_4L
,
...
...
@@ -260,11 +260,11 @@ SOC_DOUBLE_R_RANGE_TLV("HPOUT1 Volume", ARIZONA_OUTPUT_PATH_CONFIG_1L,
ARIZONA_OUTPUT_PATH_CONFIG_1R
,
ARIZONA_OUT1L_PGA_VOL_SHIFT
,
0x34
,
0x40
,
0
,
ana_tlv
),
SOC_DOUBLE_R_RANGE_TLV
(
"OUT2 Volume"
,
ARIZONA_OUTPUT_PATH_CONFIG_2L
,
SOC_DOUBLE_R_RANGE_TLV
(
"
HP
OUT2 Volume"
,
ARIZONA_OUTPUT_PATH_CONFIG_2L
,
ARIZONA_OUTPUT_PATH_CONFIG_2R
,
ARIZONA_OUT2L_PGA_VOL_SHIFT
,
0x34
,
0x40
,
0
,
ana_tlv
),
SOC_DOUBLE_R_RANGE_TLV
(
"OUT3 Volume"
,
ARIZONA_OUTPUT_PATH_CONFIG_3L
,
SOC_DOUBLE_R_RANGE_TLV
(
"
HP
OUT3 Volume"
,
ARIZONA_OUTPUT_PATH_CONFIG_3L
,
ARIZONA_OUTPUT_PATH_CONFIG_3R
,
ARIZONA_OUT3L_PGA_VOL_SHIFT
,
0x34
,
0x40
,
0
,
ana_tlv
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录