Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
32539443
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看板
提交
32539443
编写于
6月 03, 2014
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/topic/tegra' into asoc-next
上级
39b47b59
fb6b8e71
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
45 addition
and
14 deletion
+45
-14
sound/soc/tegra/tegra_alc5632.c
sound/soc/tegra/tegra_alc5632.c
+13
-3
sound/soc/tegra/tegra_max98090.c
sound/soc/tegra/tegra_max98090.c
+13
-3
sound/soc/tegra/tegra_rt5640.c
sound/soc/tegra/tegra_rt5640.c
+13
-3
sound/soc/tegra/tegra_wm8903.c
sound/soc/tegra/tegra_wm8903.c
+6
-5
未找到文件。
sound/soc/tegra/tegra_alc5632.c
浏览文件 @
32539443
...
...
@@ -125,6 +125,18 @@ static int tegra_alc5632_asoc_init(struct snd_soc_pcm_runtime *rtd)
return
0
;
}
static
int
tegra_alc5632_card_remove
(
struct
snd_soc_card
*
card
)
{
struct
tegra_alc5632
*
machine
=
snd_soc_card_get_drvdata
(
card
);
if
(
gpio_is_valid
(
machine
->
gpio_hp_det
))
{
snd_soc_jack_free_gpios
(
&
tegra_alc5632_hs_jack
,
1
,
&
tegra_alc5632_hp_jack_gpio
);
}
return
0
;
}
static
struct
snd_soc_dai_link
tegra_alc5632_dai
=
{
.
name
=
"ALC5632"
,
.
stream_name
=
"ALC5632 PCM"
,
...
...
@@ -139,6 +151,7 @@ static struct snd_soc_dai_link tegra_alc5632_dai = {
static
struct
snd_soc_card
snd_soc_tegra_alc5632
=
{
.
name
=
"tegra-alc5632"
,
.
owner
=
THIS_MODULE
,
.
remove
=
tegra_alc5632_card_remove
,
.
dai_link
=
&
tegra_alc5632_dai
,
.
num_links
=
1
,
.
controls
=
tegra_alc5632_controls
,
...
...
@@ -223,9 +236,6 @@ static int tegra_alc5632_remove(struct platform_device *pdev)
struct
snd_soc_card
*
card
=
platform_get_drvdata
(
pdev
);
struct
tegra_alc5632
*
machine
=
snd_soc_card_get_drvdata
(
card
);
snd_soc_jack_free_gpios
(
&
tegra_alc5632_hs_jack
,
1
,
&
tegra_alc5632_hp_jack_gpio
);
snd_soc_unregister_card
(
card
);
tegra_asoc_utils_fini
(
&
machine
->
util_data
);
...
...
sound/soc/tegra/tegra_max98090.c
浏览文件 @
32539443
...
...
@@ -145,6 +145,18 @@ static int tegra_max98090_asoc_init(struct snd_soc_pcm_runtime *rtd)
return
0
;
}
static
int
tegra_max98090_card_remove
(
struct
snd_soc_card
*
card
)
{
struct
tegra_max98090
*
machine
=
snd_soc_card_get_drvdata
(
card
);
if
(
gpio_is_valid
(
machine
->
gpio_hp_det
))
{
snd_soc_jack_free_gpios
(
&
tegra_max98090_hp_jack
,
1
,
&
tegra_max98090_hp_jack_gpio
);
}
return
0
;
}
static
struct
snd_soc_dai_link
tegra_max98090_dai
=
{
.
name
=
"max98090"
,
.
stream_name
=
"max98090 PCM"
,
...
...
@@ -158,6 +170,7 @@ static struct snd_soc_dai_link tegra_max98090_dai = {
static
struct
snd_soc_card
snd_soc_tegra_max98090
=
{
.
name
=
"tegra-max98090"
,
.
owner
=
THIS_MODULE
,
.
remove
=
tegra_max98090_card_remove
,
.
dai_link
=
&
tegra_max98090_dai
,
.
num_links
=
1
,
.
controls
=
tegra_max98090_controls
,
...
...
@@ -241,9 +254,6 @@ static int tegra_max98090_remove(struct platform_device *pdev)
struct
snd_soc_card
*
card
=
platform_get_drvdata
(
pdev
);
struct
tegra_max98090
*
machine
=
snd_soc_card_get_drvdata
(
card
);
snd_soc_jack_free_gpios
(
&
tegra_max98090_hp_jack
,
1
,
&
tegra_max98090_hp_jack_gpio
);
snd_soc_unregister_card
(
card
);
tegra_asoc_utils_fini
(
&
machine
->
util_data
);
...
...
sound/soc/tegra/tegra_rt5640.c
浏览文件 @
32539443
...
...
@@ -128,6 +128,18 @@ static int tegra_rt5640_asoc_init(struct snd_soc_pcm_runtime *rtd)
return
0
;
}
static
int
tegra_rt5640_card_remove
(
struct
snd_soc_card
*
card
)
{
struct
tegra_rt5640
*
machine
=
snd_soc_card_get_drvdata
(
card
);
if
(
gpio_is_valid
(
machine
->
gpio_hp_det
))
{
snd_soc_jack_free_gpios
(
&
tegra_rt5640_hp_jack
,
1
,
&
tegra_rt5640_hp_jack_gpio
);
}
return
0
;
}
static
struct
snd_soc_dai_link
tegra_rt5640_dai
=
{
.
name
=
"RT5640"
,
.
stream_name
=
"RT5640 PCM"
,
...
...
@@ -141,6 +153,7 @@ static struct snd_soc_dai_link tegra_rt5640_dai = {
static
struct
snd_soc_card
snd_soc_tegra_rt5640
=
{
.
name
=
"tegra-rt5640"
,
.
owner
=
THIS_MODULE
,
.
remove
=
tegra_rt5640_card_remove
,
.
dai_link
=
&
tegra_rt5640_dai
,
.
num_links
=
1
,
.
controls
=
tegra_rt5640_controls
,
...
...
@@ -224,9 +237,6 @@ static int tegra_rt5640_remove(struct platform_device *pdev)
struct
snd_soc_card
*
card
=
platform_get_drvdata
(
pdev
);
struct
tegra_rt5640
*
machine
=
snd_soc_card_get_drvdata
(
card
);
snd_soc_jack_free_gpios
(
&
tegra_rt5640_hp_jack
,
1
,
&
tegra_rt5640_hp_jack_gpio
);
snd_soc_unregister_card
(
card
);
tegra_asoc_utils_fini
(
&
machine
->
util_data
);
...
...
sound/soc/tegra/tegra_wm8903.c
浏览文件 @
32539443
...
...
@@ -206,6 +206,12 @@ static int tegra_wm8903_remove(struct snd_soc_card *card)
struct
snd_soc_pcm_runtime
*
rtd
=
&
(
card
->
rtd
[
0
]);
struct
snd_soc_dai
*
codec_dai
=
rtd
->
codec_dai
;
struct
snd_soc_codec
*
codec
=
codec_dai
->
codec
;
struct
tegra_wm8903
*
machine
=
snd_soc_card_get_drvdata
(
card
);
if
(
gpio_is_valid
(
machine
->
gpio_hp_det
))
{
snd_soc_jack_free_gpios
(
&
tegra_wm8903_hp_jack
,
1
,
&
tegra_wm8903_hp_jack_gpio
);
}
wm8903_mic_detect
(
codec
,
NULL
,
0
,
0
);
...
...
@@ -228,9 +234,7 @@ static struct snd_soc_card snd_soc_tegra_wm8903 = {
.
owner
=
THIS_MODULE
,
.
dai_link
=
&
tegra_wm8903_dai
,
.
num_links
=
1
,
.
remove
=
tegra_wm8903_remove
,
.
controls
=
tegra_wm8903_controls
,
.
num_controls
=
ARRAY_SIZE
(
tegra_wm8903_controls
),
.
dapm_widgets
=
tegra_wm8903_dapm_widgets
,
...
...
@@ -368,9 +372,6 @@ static int tegra_wm8903_driver_remove(struct platform_device *pdev)
struct
snd_soc_card
*
card
=
platform_get_drvdata
(
pdev
);
struct
tegra_wm8903
*
machine
=
snd_soc_card_get_drvdata
(
card
);
snd_soc_jack_free_gpios
(
&
tegra_wm8903_hp_jack
,
1
,
&
tegra_wm8903_hp_jack_gpio
);
snd_soc_unregister_card
(
card
);
tegra_asoc_utils_fini
(
&
machine
->
util_data
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录