Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
c44ddeb8
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看板
提交
c44ddeb8
编写于
6月 17, 2013
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/topic/dfmbcs320' into asoc-next
上级
684d8c51
200ceb96
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
29 addition
and
20 deletion
+29
-20
sound/soc/codecs/Kconfig
sound/soc/codecs/Kconfig
+2
-2
sound/soc/codecs/Makefile
sound/soc/codecs/Makefile
+2
-2
sound/soc/codecs/bt-sco.c
sound/soc/codecs/bt-sco.c
+23
-14
sound/soc/samsung/Kconfig
sound/soc/samsung/Kconfig
+1
-1
sound/soc/samsung/neo1973_wm8753.c
sound/soc/samsung/neo1973_wm8753.c
+1
-1
未找到文件。
sound/soc/codecs/Kconfig
浏览文件 @
c44ddeb8
...
...
@@ -40,7 +40,7 @@ config SND_SOC_ALL_CODECS
select SND_SOC_DA7213 if I2C
select SND_SOC_DA732X if I2C
select SND_SOC_DA9055 if I2C
select SND_SOC_
DFBMCS320
select SND_SOC_
BT_SCO
select SND_SOC_ISABELLE if I2C
select SND_SOC_JZ4740_CODEC
select SND_SOC_LM4857 if I2C
...
...
@@ -263,7 +263,7 @@ config SND_SOC_DA732X
config SND_SOC_DA9055
tristate
config SND_SOC_
DFBMCS320
config SND_SOC_
BT_SCO
tristate
config SND_SOC_DMIC
...
...
sound/soc/codecs/Makefile
浏览文件 @
c44ddeb8
...
...
@@ -27,7 +27,7 @@ snd-soc-da7210-objs := da7210.o
snd-soc-da7213-objs
:=
da7213.o
snd-soc-da732x-objs
:=
da732x.o
snd-soc-da9055-objs
:=
da9055.o
snd-soc-
dfbmcs320-objs
:=
dfbmcs320
.o
snd-soc-
bt-sco-objs
:=
bt-sco
.o
snd-soc-dmic-objs
:=
dmic.o
snd-soc-isabelle-objs
:=
isabelle.o
snd-soc-jz4740-codec-objs
:=
jz4740.o
...
...
@@ -154,7 +154,7 @@ obj-$(CONFIG_SND_SOC_DA7210) += snd-soc-da7210.o
obj-$(CONFIG_SND_SOC_DA7213)
+=
snd-soc-da7213.o
obj-$(CONFIG_SND_SOC_DA732X)
+=
snd-soc-da732x.o
obj-$(CONFIG_SND_SOC_DA9055)
+=
snd-soc-da9055.o
obj-$(CONFIG_SND_SOC_
DFBMCS320)
+=
snd-soc-dfbmcs320
.o
obj-$(CONFIG_SND_SOC_
BT_SCO)
+=
snd-soc-bt-sco
.o
obj-$(CONFIG_SND_SOC_DMIC)
+=
snd-soc-dmic.o
obj-$(CONFIG_SND_SOC_ISABELLE)
+=
snd-soc-isabelle.o
obj-$(CONFIG_SND_SOC_JZ4740_CODEC)
+=
snd-soc-jz4740-codec.o
...
...
sound/soc/codecs/
dfbmcs320
.c
→
sound/soc/codecs/
bt-sco
.c
浏览文件 @
c44ddeb8
/*
* Driver for
the DFBM-CS320 bluetooth module
* Driver for
generic Bluetooth SCO link
* Copyright 2011 Lars-Peter Clausen <lars@metafoo.de>
*
* This program is free software; you can redistribute it and/or modify it
...
...
@@ -15,8 +15,8 @@
#include <sound/soc.h>
static
struct
snd_soc_dai_driver
dfbmcs320
_dai
=
{
.
name
=
"
dfbmcs320
-pcm"
,
static
struct
snd_soc_dai_driver
bt_sco
_dai
=
{
.
name
=
"
bt-sco
-pcm"
,
.
playback
=
{
.
channels_min
=
1
,
.
channels_max
=
1
,
...
...
@@ -31,32 +31,41 @@ static struct snd_soc_dai_driver dfbmcs320_dai = {
},
};
static
struct
snd_soc_codec_driver
soc_codec_dev_
dfbmcs320
;
static
struct
snd_soc_codec_driver
soc_codec_dev_
bt_sco
;
static
int
dfbmcs320
_probe
(
struct
platform_device
*
pdev
)
static
int
bt_sco
_probe
(
struct
platform_device
*
pdev
)
{
return
snd_soc_register_codec
(
&
pdev
->
dev
,
&
soc_codec_dev_
dfbmcs320
,
&
dfbmcs320
_dai
,
1
);
return
snd_soc_register_codec
(
&
pdev
->
dev
,
&
soc_codec_dev_
bt_sco
,
&
bt_sco
_dai
,
1
);
}
static
int
dfbmcs320
_remove
(
struct
platform_device
*
pdev
)
static
int
bt_sco
_remove
(
struct
platform_device
*
pdev
)
{
snd_soc_unregister_codec
(
&
pdev
->
dev
);
return
0
;
}
static
struct
platform_driver
dfmcs320_driver
=
{
static
struct
platform_device_id
bt_sco_driver_ids
[]
=
{
{
.
name
=
"dfbmcs320"
,
},
{},
};
MODULE_DEVICE_TABLE
(
platform
,
bt_sco_driver_ids
);
static
struct
platform_driver
bt_sco_driver
=
{
.
driver
=
{
.
name
=
"
dfbmcs320
"
,
.
name
=
"
bt-sco
"
,
.
owner
=
THIS_MODULE
,
},
.
probe
=
dfbmcs320_probe
,
.
remove
=
dfbmcs320_remove
,
.
probe
=
bt_sco_probe
,
.
remove
=
bt_sco_remove
,
.
id_table
=
bt_sco_driver_ids
,
};
module_platform_driver
(
dfmcs320
_driver
);
module_platform_driver
(
bt_sco
_driver
);
MODULE_AUTHOR
(
"Lars-Peter Clausen <lars@metafoo.de>"
);
MODULE_DESCRIPTION
(
"ASoC
DFBM-CS320 bluethooth module
driver"
);
MODULE_DESCRIPTION
(
"ASoC
generic bluethooth sco link
driver"
);
MODULE_LICENSE
(
"GPL"
);
sound/soc/samsung/Kconfig
浏览文件 @
c44ddeb8
...
...
@@ -39,7 +39,7 @@ config SND_SOC_SAMSUNG_NEO1973_WM8753
depends on SND_SOC_SAMSUNG && MACH_NEO1973_GTA02
select SND_S3C24XX_I2S
select SND_SOC_WM8753
select SND_SOC_
DFBMCS320
select SND_SOC_
SCO
help
Say Y here to enable audio support for the Openmoko Neo1973
Smartphones.
...
...
sound/soc/samsung/neo1973_wm8753.c
浏览文件 @
c44ddeb8
...
...
@@ -373,7 +373,7 @@ static struct snd_soc_dai_link neo1973_dai[] = {
{
/* Voice via BT */
.
name
=
"Bluetooth"
,
.
stream_name
=
"Voice"
,
.
cpu_dai_name
=
"
dfbmcs320
-pcm"
,
.
cpu_dai_name
=
"
bt-sco
-pcm"
,
.
codec_dai_name
=
"wm8753-voice"
,
.
codec_name
=
"wm8753.0-001a"
,
.
ops
=
&
neo1973_voice_ops
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录