Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
9939b14b
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 3 年多
通知
13
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
9939b14b
编写于
10月 26, 2015
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branches 'asoc/topic/ssm2518' and 'asoc/topic/sunxi' into asoc-next
上级
71831ef6
ce7b8dbd
c570b82c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
24 deletion
+5
-24
Documentation/devicetree/bindings/sound/sun4i-codec.txt
Documentation/devicetree/bindings/sound/sun4i-codec.txt
+0
-6
sound/soc/codecs/ssm2518.c
sound/soc/codecs/ssm2518.c
+0
-6
sound/soc/sunxi/sun4i-codec.c
sound/soc/sunxi/sun4i-codec.c
+5
-12
未找到文件。
Documentation/devicetree/bindings/sound/sun4i-codec.txt
浏览文件 @
9939b14b
...
...
@@ -13,10 +13,6 @@ Required properties:
- clock-names: should contain followings:
- "apb": the parent APB clock for this controller
- "codec": the parent module clock
- routing : A list of the connections between audio components. Each
entry is a pair of strings, the first being the connection's sink,
the second being the connection's source.
Example:
codec: codec@01c22c00 {
...
...
@@ -28,6 +24,4 @@ codec: codec@01c22c00 {
clock-names = "apb", "codec";
dmas = <&dma 0 19>, <&dma 0 19>;
dma-names = "rx", "tx";
routing = "Headphone Jack", "HP Right",
"Headphone Jack", "HP Left";
};
sound/soc/codecs/ssm2518.c
浏览文件 @
9939b14b
...
...
@@ -723,17 +723,11 @@ static struct snd_soc_codec_driver ssm2518_codec_driver = {
.
num_dapm_routes
=
ARRAY_SIZE
(
ssm2518_routes
),
};
static
bool
ssm2518_register_volatile
(
struct
device
*
dev
,
unsigned
int
reg
)
{
return
false
;
}
static
const
struct
regmap_config
ssm2518_regmap_config
=
{
.
val_bits
=
8
,
.
reg_bits
=
8
,
.
max_register
=
SSM2518_REG_DRC_9
,
.
volatile_reg
=
ssm2518_register_volatile
,
.
cache_type
=
REGCACHE_RBTREE
,
.
reg_defaults
=
ssm2518_reg_defaults
,
...
...
sound/soc/sunxi/sun4i-codec.c
浏览文件 @
9939b14b
...
...
@@ -283,7 +283,7 @@ static int sun4i_codec_hw_params(struct snd_pcm_substream *substream,
struct
snd_soc_pcm_runtime
*
rtd
=
substream
->
private_data
;
struct
sun4i_codec
*
scodec
=
snd_soc_card_get_drvdata
(
rtd
->
card
);
unsigned
long
clk_freq
;
int
hwrate
;
int
ret
,
hwrate
;
u32
val
;
if
(
substream
->
stream
!=
SNDRV_PCM_STREAM_PLAYBACK
)
...
...
@@ -293,8 +293,9 @@ static int sun4i_codec_hw_params(struct snd_pcm_substream *substream,
if
(
!
clk_freq
)
return
-
EINVAL
;
if
(
clk_set_rate
(
scodec
->
clk_module
,
clk_freq
))
return
-
EINVAL
;
ret
=
clk_set_rate
(
scodec
->
clk_module
,
clk_freq
);
if
(
ret
)
return
ret
;
hwrate
=
sun4i_codec_get_hw_rate
(
params
);
if
(
hwrate
<
0
)
...
...
@@ -388,8 +389,7 @@ static struct snd_soc_dai_driver sun4i_codec_dai = {
.
rate_max
=
192000
,
.
rates
=
SNDRV_PCM_RATE_8000_48000
|
SNDRV_PCM_RATE_96000
|
SNDRV_PCM_RATE_192000
|
SNDRV_PCM_RATE_KNOT
,
SNDRV_PCM_RATE_192000
,
.
formats
=
SNDRV_PCM_FMTBIT_S16_LE
|
SNDRV_PCM_FMTBIT_S32_LE
,
.
sig_bits
=
24
,
...
...
@@ -571,7 +571,6 @@ static struct snd_soc_dai_link *sun4i_codec_create_link(struct device *dev,
static
struct
snd_soc_card
*
sun4i_codec_create_card
(
struct
device
*
dev
)
{
struct
snd_soc_card
*
card
;
int
ret
;
card
=
devm_kzalloc
(
dev
,
sizeof
(
*
card
),
GFP_KERNEL
);
if
(
!
card
)
...
...
@@ -584,12 +583,6 @@ static struct snd_soc_card *sun4i_codec_create_card(struct device *dev)
card
->
dev
=
dev
;
card
->
name
=
"sun4i-codec"
;
ret
=
snd_soc_of_parse_audio_routing
(
card
,
"routing"
);
if
(
ret
)
{
dev_err
(
dev
,
"Failed to create our audio routing
\n
"
);
return
NULL
;
}
return
card
;
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录