Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
f3b368d3
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看板
提交
f3b368d3
编写于
6月 05, 2015
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/topic/rt5645' into asoc-next
上级
977732b0
345b0f50
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
847 addition
and
266 deletion
+847
-266
include/sound/rt5645.h
include/sound/rt5645.h
+0
-3
sound/soc/codecs/rt5645.c
sound/soc/codecs/rt5645.c
+829
-249
sound/soc/codecs/rt5645.h
sound/soc/codecs/rt5645.h
+17
-13
sound/soc/intel/boards/cht_bsw_rt5645.c
sound/soc/intel/boards/cht_bsw_rt5645.c
+1
-1
未找到文件。
include/sound/rt5645.h
浏览文件 @
f3b368d3
...
...
@@ -15,7 +15,6 @@ struct rt5645_platform_data {
/* IN2 can optionally be differential */
bool
in2_diff
;
bool
dmic_en
;
unsigned
int
dmic1_data_pin
;
/* 0 = IN2N; 1 = GPIO5; 2 = GPIO11 */
unsigned
int
dmic2_data_pin
;
...
...
@@ -24,8 +23,6 @@ struct rt5645_platform_data {
unsigned
int
hp_det_gpio
;
bool
gpio_hp_det_active_high
;
/* true if codec's jd function is used */
bool
en_jd_func
;
unsigned
int
jd_mode
;
};
...
...
sound/soc/codecs/rt5645.c
浏览文件 @
f3b368d3
此差异已折叠。
点击以展开。
sound/soc/codecs/rt5645.h
浏览文件 @
f3b368d3
...
...
@@ -105,6 +105,7 @@
#define RT5645_TDM_CTRL_1 0x77
#define RT5645_TDM_CTRL_2 0x78
#define RT5645_TDM_CTRL_3 0x79
#define RT5650_TDM_CTRL_4 0x7a
/* Function - Analog */
#define RT5645_GLB_CLK 0x80
...
...
@@ -942,10 +943,6 @@
#define RT5645_I2S2_SDI_I2S2 (0x1 << 6)
/* ADC/DAC Clock Control 1 (0x73) */
#define RT5645_I2S_BCLK_MS1_MASK (0x1 << 15)
#define RT5645_I2S_BCLK_MS1_SFT 15
#define RT5645_I2S_BCLK_MS1_32 (0x0 << 15)
#define RT5645_I2S_BCLK_MS1_64 (0x1 << 15)
#define RT5645_I2S_PD1_MASK (0x7 << 12)
#define RT5645_I2S_PD1_SFT 12
#define RT5645_I2S_PD1_1 (0x0 << 12)
...
...
@@ -1067,13 +1064,14 @@
#define RT5645_SCLK_SRC_SFT 14
#define RT5645_SCLK_SRC_MCLK (0x0 << 14)
#define RT5645_SCLK_SRC_PLL1 (0x1 << 14)
#define RT5645_SCLK_SRC_RCCLK (0x2 << 14)
/* 15MHz */
#define RT5645_PLL1_SRC_MASK (0x3 << 12)
#define RT5645_PLL1_SRC_SFT 12
#define RT5645_PLL1_SRC_MCLK (0x0 << 12)
#define RT5645_PLL1_SRC_BCLK1 (0x1 << 12)
#define RT5645_PLL1_SRC_BCLK2 (0x2 << 12)
#define RT5645_PLL1_SRC_BCLK3 (0x3 << 12)
#define RT5645_SCLK_SRC_RCCLK (0x2 << 14)
#define RT5645_PLL1_SRC_MASK (0x7 << 11)
#define RT5645_PLL1_SRC_SFT 11
#define RT5645_PLL1_SRC_MCLK (0x0 << 11)
#define RT5645_PLL1_SRC_BCLK1 (0x1 << 11)
#define RT5645_PLL1_SRC_BCLK2 (0x2 << 11)
#define RT5645_PLL1_SRC_BCLK3 (0x3 << 11)
#define RT5645_PLL1_SRC_RCCLK (0x4 << 11)
#define RT5645_PLL1_PD_MASK (0x1 << 3)
#define RT5645_PLL1_PD_SFT 3
#define RT5645_PLL1_PD_1 (0x0 << 3)
...
...
@@ -2147,6 +2145,7 @@ enum {
};
enum
{
RT5645_DMIC1_DISABLE
,
RT5645_DMIC_DATA_IN2P
,
RT5645_DMIC_DATA_GPIO6
,
RT5645_DMIC_DATA_GPIO10
,
...
...
@@ -2154,6 +2153,7 @@ enum {
};
enum
{
RT5645_DMIC2_DISABLE
,
RT5645_DMIC_DATA_IN2N
,
RT5645_DMIC_DATA_GPIO5
,
RT5645_DMIC_DATA_GPIO11
,
...
...
@@ -2184,6 +2184,7 @@ struct rt5645_priv {
struct
i2c_client
*
i2c
;
struct
snd_soc_jack
*
hp_jack
;
struct
snd_soc_jack
*
mic_jack
;
struct
snd_soc_jack
*
btn_jack
;
struct
delayed_work
jack_detect_work
;
int
codec_type
;
...
...
@@ -2196,9 +2197,12 @@ struct rt5645_priv {
int
pll_src
;
int
pll_in
;
int
pll_out
;
int
jack_type
;
bool
en_button_func
;
};
int
rt5645_set_jack_detect
(
struct
snd_soc_codec
*
codec
,
struct
snd_soc_jack
*
hp_jack
,
struct
snd_soc_jack
*
mic_jack
);
struct
snd_soc_jack
*
hp_jack
,
struct
snd_soc_jack
*
mic_jack
,
struct
snd_soc_jack
*
btn_jack
);
#endif
/* __RT5645_H__ */
sound/soc/intel/boards/cht_bsw_rt5645.c
浏览文件 @
f3b368d3
...
...
@@ -185,7 +185,7 @@ static int cht_codec_init(struct snd_soc_pcm_runtime *runtime)
return
ret
;
}
rt5645_set_jack_detect
(
codec
,
&
ctx
->
hp_jack
,
&
ctx
->
mic_jack
);
rt5645_set_jack_detect
(
codec
,
&
ctx
->
hp_jack
,
&
ctx
->
mic_jack
,
NULL
);
return
ret
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录