Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
6791142f
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看板
提交
6791142f
编写于
6月 22, 2015
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/topic/arizona' into asoc-next
上级
25305dcf
336d0442
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
48 addition
and
48 deletion
+48
-48
sound/soc/codecs/arizona.c
sound/soc/codecs/arizona.c
+27
-0
sound/soc/codecs/arizona.h
sound/soc/codecs/arizona.h
+2
-0
sound/soc/codecs/wm2200.c
sound/soc/codecs/wm2200.c
+1
-1
sound/soc/codecs/wm5102.c
sound/soc/codecs/wm5102.c
+5
-0
sound/soc/codecs/wm5110.c
sound/soc/codecs/wm5110.c
+6
-0
sound/soc/codecs/wm_adsp.c
sound/soc/codecs/wm_adsp.c
+6
-46
sound/soc/codecs/wm_adsp.h
sound/soc/codecs/wm_adsp.h
+1
-1
未找到文件。
sound/soc/codecs/arizona.c
浏览文件 @
6791142f
...
...
@@ -2286,6 +2286,33 @@ int arizona_set_output_mode(struct snd_soc_codec *codec, int output, bool diff)
}
EXPORT_SYMBOL_GPL
(
arizona_set_output_mode
);
static
const
struct
soc_enum
arizona_adsp2_rate_enum
[]
=
{
SOC_VALUE_ENUM_SINGLE
(
ARIZONA_DSP1_CONTROL_1
,
ARIZONA_DSP1_RATE_SHIFT
,
0xf
,
ARIZONA_RATE_ENUM_SIZE
,
arizona_rate_text
,
arizona_rate_val
),
SOC_VALUE_ENUM_SINGLE
(
ARIZONA_DSP2_CONTROL_1
,
ARIZONA_DSP1_RATE_SHIFT
,
0xf
,
ARIZONA_RATE_ENUM_SIZE
,
arizona_rate_text
,
arizona_rate_val
),
SOC_VALUE_ENUM_SINGLE
(
ARIZONA_DSP3_CONTROL_1
,
ARIZONA_DSP1_RATE_SHIFT
,
0xf
,
ARIZONA_RATE_ENUM_SIZE
,
arizona_rate_text
,
arizona_rate_val
),
SOC_VALUE_ENUM_SINGLE
(
ARIZONA_DSP4_CONTROL_1
,
ARIZONA_DSP1_RATE_SHIFT
,
0xf
,
ARIZONA_RATE_ENUM_SIZE
,
arizona_rate_text
,
arizona_rate_val
),
};
const
struct
snd_kcontrol_new
arizona_adsp2_rate_controls
[]
=
{
SOC_ENUM
(
"DSP1 Rate"
,
arizona_adsp2_rate_enum
[
0
]),
SOC_ENUM
(
"DSP2 Rate"
,
arizona_adsp2_rate_enum
[
1
]),
SOC_ENUM
(
"DSP3 Rate"
,
arizona_adsp2_rate_enum
[
2
]),
SOC_ENUM
(
"DSP4 Rate"
,
arizona_adsp2_rate_enum
[
3
]),
};
EXPORT_SYMBOL_GPL
(
arizona_adsp2_rate_controls
);
MODULE_DESCRIPTION
(
"ASoC Wolfson Arizona class device support"
);
MODULE_AUTHOR
(
"Mark Brown <broonie@opensource.wolfsonmicro.com>"
);
MODULE_LICENSE
(
"GPL"
);
sound/soc/codecs/arizona.h
浏览文件 @
6791142f
...
...
@@ -217,6 +217,8 @@ extern const struct soc_enum arizona_ng_hold;
extern
const
struct
soc_enum
arizona_in_hpf_cut_enum
;
extern
const
struct
soc_enum
arizona_in_dmic_osr
[];
extern
const
struct
snd_kcontrol_new
arizona_adsp2_rate_controls
[];
extern
int
arizona_in_ev
(
struct
snd_soc_dapm_widget
*
w
,
struct
snd_kcontrol
*
kcontrol
,
int
event
);
...
...
sound/soc/codecs/wm2200.c
浏览文件 @
6791142f
...
...
@@ -1555,7 +1555,7 @@ static int wm2200_probe(struct snd_soc_codec *codec)
wm2200
->
codec
=
codec
;
ret
=
snd_soc_add_codec_controls
(
codec
,
wm_adsp
1
_fw_controls
,
2
);
ret
=
snd_soc_add_codec_controls
(
codec
,
wm_adsp_fw_controls
,
2
);
if
(
ret
!=
0
)
return
ret
;
...
...
sound/soc/codecs/wm5102.c
浏览文件 @
6791142f
...
...
@@ -1880,6 +1880,11 @@ static int wm5102_codec_probe(struct snd_soc_codec *codec)
if
(
ret
)
return
ret
;
ret
=
snd_soc_add_codec_controls
(
codec
,
arizona_adsp2_rate_controls
,
1
);
if
(
ret
)
return
ret
;
arizona_init_spk
(
codec
);
arizona_init_gpio
(
codec
);
...
...
sound/soc/codecs/wm5110.c
浏览文件 @
6791142f
...
...
@@ -1614,6 +1614,12 @@ static int wm5110_codec_probe(struct snd_soc_codec *codec)
return
ret
;
}
ret
=
snd_soc_add_codec_controls
(
codec
,
arizona_adsp2_rate_controls
,
WM5110_NUM_ADSP
);
if
(
ret
)
return
ret
;
snd_soc_dapm_disable_pin
(
dapm
,
"HAPTICS"
);
return
0
;
...
...
sound/soc/codecs/wm_adsp.c
浏览文件 @
6791142f
...
...
@@ -458,57 +458,17 @@ static const struct soc_enum wm_adsp_fw_enum[] = {
SOC_ENUM_SINGLE
(
0
,
3
,
ARRAY_SIZE
(
wm_adsp_fw_text
),
wm_adsp_fw_text
),
};
const
struct
snd_kcontrol_new
wm_adsp
1
_fw_controls
[]
=
{
const
struct
snd_kcontrol_new
wm_adsp_fw_controls
[]
=
{
SOC_ENUM_EXT
(
"DSP1 Firmware"
,
wm_adsp_fw_enum
[
0
],
wm_adsp_fw_get
,
wm_adsp_fw_put
),
SOC_ENUM_EXT
(
"DSP2 Firmware"
,
wm_adsp_fw_enum
[
1
],
wm_adsp_fw_get
,
wm_adsp_fw_put
),
SOC_ENUM_EXT
(
"DSP3 Firmware"
,
wm_adsp_fw_enum
[
2
],
wm_adsp_fw_get
,
wm_adsp_fw_put
),
SOC_ENUM_EXT
(
"DSP4 Firmware"
,
wm_adsp_fw_enum
[
3
],
wm_adsp_fw_get
,
wm_adsp_fw_put
),
};
EXPORT_SYMBOL_GPL
(
wm_adsp1_fw_controls
);
static
const
struct
soc_enum
wm_adsp2_rate_enum
[]
=
{
SOC_VALUE_ENUM_SINGLE
(
ARIZONA_DSP1_CONTROL_1
,
ARIZONA_DSP1_RATE_SHIFT
,
0xf
,
ARIZONA_RATE_ENUM_SIZE
,
arizona_rate_text
,
arizona_rate_val
),
SOC_VALUE_ENUM_SINGLE
(
ARIZONA_DSP2_CONTROL_1
,
ARIZONA_DSP1_RATE_SHIFT
,
0xf
,
ARIZONA_RATE_ENUM_SIZE
,
arizona_rate_text
,
arizona_rate_val
),
SOC_VALUE_ENUM_SINGLE
(
ARIZONA_DSP3_CONTROL_1
,
ARIZONA_DSP1_RATE_SHIFT
,
0xf
,
ARIZONA_RATE_ENUM_SIZE
,
arizona_rate_text
,
arizona_rate_val
),
SOC_VALUE_ENUM_SINGLE
(
ARIZONA_DSP4_CONTROL_1
,
ARIZONA_DSP1_RATE_SHIFT
,
0xf
,
ARIZONA_RATE_ENUM_SIZE
,
arizona_rate_text
,
arizona_rate_val
),
};
static
const
struct
snd_kcontrol_new
wm_adsp2_fw_controls
[
4
][
2
]
=
{
{
SOC_ENUM_EXT
(
"DSP1 Firmware"
,
wm_adsp_fw_enum
[
0
],
wm_adsp_fw_get
,
wm_adsp_fw_put
),
SOC_ENUM
(
"DSP1 Rate"
,
wm_adsp2_rate_enum
[
0
]),
},
{
SOC_ENUM_EXT
(
"DSP2 Firmware"
,
wm_adsp_fw_enum
[
1
],
wm_adsp_fw_get
,
wm_adsp_fw_put
),
SOC_ENUM
(
"DSP2 Rate"
,
wm_adsp2_rate_enum
[
1
]),
},
{
SOC_ENUM_EXT
(
"DSP3 Firmware"
,
wm_adsp_fw_enum
[
2
],
wm_adsp_fw_get
,
wm_adsp_fw_put
),
SOC_ENUM
(
"DSP3 Rate"
,
wm_adsp2_rate_enum
[
2
]),
},
{
SOC_ENUM_EXT
(
"DSP4 Firmware"
,
wm_adsp_fw_enum
[
3
],
wm_adsp_fw_get
,
wm_adsp_fw_put
),
SOC_ENUM
(
"DSP4 Rate"
,
wm_adsp2_rate_enum
[
3
]),
},
};
EXPORT_SYMBOL_GPL
(
wm_adsp_fw_controls
);
static
struct
wm_adsp_region
const
*
wm_adsp_find_region
(
struct
wm_adsp
*
dsp
,
int
type
)
...
...
@@ -2125,8 +2085,8 @@ int wm_adsp2_codec_probe(struct wm_adsp *dsp, struct snd_soc_codec *codec)
wm_adsp2_init_debugfs
(
dsp
,
codec
);
return
snd_soc_add_codec_controls
(
codec
,
wm_adsp2
_fw_controls
[
dsp
->
num
-
1
],
ARRAY_SIZE
(
wm_adsp2_fw_controls
[
0
])
);
&
wm_adsp
_fw_controls
[
dsp
->
num
-
1
],
1
);
}
EXPORT_SYMBOL_GPL
(
wm_adsp2_codec_probe
);
...
...
sound/soc/codecs/wm_adsp.h
浏览文件 @
6791142f
...
...
@@ -83,7 +83,7 @@ struct wm_adsp {
#define WM_ADSP2(wname, num) \
WM_ADSP2_E(wname, num, wm_adsp2_early_event)
extern
const
struct
snd_kcontrol_new
wm_adsp
1
_fw_controls
[];
extern
const
struct
snd_kcontrol_new
wm_adsp_fw_controls
[];
int
wm_adsp1_init
(
struct
wm_adsp
*
dsp
);
int
wm_adsp2_init
(
struct
wm_adsp
*
dsp
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录