Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
d238ffab
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
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看板
提交
d238ffab
编写于
6月 17, 2013
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/topic/spdif' into asoc-next
上级
0c5f4506
f9c8ba89
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
41 addition
and
1 deletion
+41
-1
Documentation/devicetree/bindings/sound/spdif-receiver.txt
Documentation/devicetree/bindings/sound/spdif-receiver.txt
+10
-0
Documentation/devicetree/bindings/sound/spdif-transmitter.txt
...mentation/devicetree/bindings/sound/spdif-transmitter.txt
+10
-0
sound/soc/codecs/Makefile
sound/soc/codecs/Makefile
+1
-1
sound/soc/codecs/spdif_receiver.c
sound/soc/codecs/spdif_receiver.c
+10
-0
sound/soc/codecs/spdif_transmitter.c
sound/soc/codecs/spdif_transmitter.c
+10
-0
未找到文件。
Documentation/devicetree/bindings/sound/spdif-receiver.txt
0 → 100644
浏览文件 @
d238ffab
Device-Tree bindings for dummy spdif receiver
Required properties:
- compatible: should be "linux,spdif-dir".
Example node:
codec: spdif-receiver {
compatible = "linux,spdif-dir";
};
Documentation/devicetree/bindings/sound/spdif-transmitter.txt
0 → 100644
浏览文件 @
d238ffab
Device-Tree bindings for dummy spdif transmitter
Required properties:
- compatible: should be "linux,spdif-dit".
Example node:
codec: spdif-transmitter {
compatible = "linux,spdif-dit";
};
sound/soc/codecs/Makefile
浏览文件 @
d238ffab
...
...
@@ -51,7 +51,7 @@ snd-soc-alc5632-objs := alc5632.o
snd-soc-sigmadsp-objs
:=
sigmadsp.o
snd-soc-si476x-objs
:=
si476x.o
snd-soc-sn95031-objs
:=
sn95031.o
snd-soc-spdif-tx-objs
:=
spdif_trans
ciev
er.o
snd-soc-spdif-tx-objs
:=
spdif_trans
mitt
er.o
snd-soc-spdif-rx-objs
:=
spdif_receiver.o
snd-soc-ssm2602-objs
:=
ssm2602.o
snd-soc-sta32x-objs
:=
sta32x.o
...
...
sound/soc/codecs/spdif_receiver.c
浏览文件 @
d238ffab
...
...
@@ -21,6 +21,7 @@
#include <sound/soc.h>
#include <sound/pcm.h>
#include <sound/initval.h>
#include <linux/of.h>
#define STUB_RATES SNDRV_PCM_RATE_8000_192000
#define STUB_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \
...
...
@@ -51,12 +52,21 @@ static int spdif_dir_remove(struct platform_device *pdev)
return
0
;
}
#ifdef CONFIG_OF
static
const
struct
of_device_id
spdif_dir_dt_ids
[]
=
{
{
.
compatible
=
"linux,spdif-dir"
,
},
{
}
};
MODULE_DEVICE_TABLE
(
of
,
spdif_dir_dt_ids
);
#endif
static
struct
platform_driver
spdif_dir_driver
=
{
.
probe
=
spdif_dir_probe
,
.
remove
=
spdif_dir_remove
,
.
driver
=
{
.
name
=
"spdif-dir"
,
.
owner
=
THIS_MODULE
,
.
of_match_table
=
of_match_ptr
(
spdif_dir_dt_ids
),
},
};
...
...
sound/soc/codecs/spdif_trans
ciev
er.c
→
sound/soc/codecs/spdif_trans
mitt
er.c
浏览文件 @
d238ffab
...
...
@@ -20,6 +20,7 @@
#include <sound/soc.h>
#include <sound/pcm.h>
#include <sound/initval.h>
#include <linux/of.h>
#define DRV_NAME "spdif-dit"
...
...
@@ -52,12 +53,21 @@ static int spdif_dit_remove(struct platform_device *pdev)
return
0
;
}
#ifdef CONFIG_OF
static
const
struct
of_device_id
spdif_dit_dt_ids
[]
=
{
{
.
compatible
=
"linux,spdif-dit"
,
},
{
}
};
MODULE_DEVICE_TABLE
(
of
,
spdif_dit_dt_ids
);
#endif
static
struct
platform_driver
spdif_dit_driver
=
{
.
probe
=
spdif_dit_probe
,
.
remove
=
spdif_dit_remove
,
.
driver
=
{
.
name
=
DRV_NAME
,
.
owner
=
THIS_MODULE
,
.
of_match_table
=
of_match_ptr
(
spdif_dit_dt_ids
),
},
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录