Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
840f0e43
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
840f0e43
编写于
8月 22, 2013
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/topic/tegra' into asoc-next
上级
049d4140
b4345006
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
73 addition
and
88 deletion
+73
-88
Documentation/devicetree/bindings/sound/alc5632.txt
Documentation/devicetree/bindings/sound/alc5632.txt
+19
-0
Documentation/devicetree/bindings/sound/nvidia,tegra-audio-alc5632.txt
.../devicetree/bindings/sound/nvidia,tegra-audio-alc5632.txt
+2
-22
Documentation/devicetree/bindings/sound/nvidia,tegra-audio-rt5640.txt
...n/devicetree/bindings/sound/nvidia,tegra-audio-rt5640.txt
+3
-23
Documentation/devicetree/bindings/sound/nvidia,tegra-audio-wm8903.txt
...n/devicetree/bindings/sound/nvidia,tegra-audio-wm8903.txt
+2
-22
Documentation/devicetree/bindings/sound/rt5640.txt
Documentation/devicetree/bindings/sound/rt5640.txt
+20
-0
Documentation/devicetree/bindings/sound/wm8903.txt
Documentation/devicetree/bindings/sound/wm8903.txt
+19
-0
sound/soc/tegra/Kconfig
sound/soc/tegra/Kconfig
+7
-7
sound/soc/tegra/tegra20_ac97.c
sound/soc/tegra/tegra20_ac97.c
+0
-8
sound/soc/tegra/tegra_alc5632.c
sound/soc/tegra/tegra_alc5632.c
+0
-2
sound/soc/tegra/tegra_rt5640.c
sound/soc/tegra/tegra_rt5640.c
+1
-0
sound/soc/tegra/tegra_wm8753.c
sound/soc/tegra/tegra_wm8753.c
+0
-2
sound/soc/tegra/trimslice.c
sound/soc/tegra/trimslice.c
+0
-2
未找到文件。
Documentation/devicetree/bindings/sound/alc5632.txt
浏览文件 @
840f0e43
...
...
@@ -13,6 +13,25 @@ Required properties:
- #gpio-cells : Should be two. The first cell is the pin number and the
second cell is used to specify optional parameters (currently unused).
Pins on the device (for linking into audio routes):
* SPK_OUTP
* SPK_OUTN
* HP_OUT_L
* HP_OUT_R
* AUX_OUT_P
* AUX_OUT_N
* LINE_IN_L
* LINE_IN_R
* PHONE_P
* PHONE_N
* MIC1_P
* MIC1_N
* MIC2_P
* MIC2_N
* MICBIAS1
* DMICDAT
Example:
alc5632: alc5632@1e {
...
...
Documentation/devicetree/bindings/sound/nvidia,tegra-audio-alc5632.txt
浏览文件 @
840f0e43
...
...
@@ -11,28 +11,8 @@ Required properties:
- nvidia,audio-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. Valid names for sources and
sinks are the ALC5632's pins:
ALC5632 pins:
* SPK_OUTP
* SPK_OUTN
* HP_OUT_L
* HP_OUT_R
* AUX_OUT_P
* AUX_OUT_N
* LINE_IN_L
* LINE_IN_R
* PHONE_P
* PHONE_N
* MIC1_P
* MIC1_N
* MIC2_P
* MIC2_N
* MICBIAS1
* DMICDAT
Board connectors:
sinks are the ALC5632's pins as documented in the binding for the device
and:
* Headset Stereophone
* Int Spk
...
...
Documentation/devicetree/bindings/sound/nvidia,tegra-audio-rt5640.txt
浏览文件 @
840f0e43
...
...
@@ -11,32 +11,12 @@ Required properties:
- nvidia,audio-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. Valid names for sources and
sinks are the RT5640's pins, and the jacks on the board:
RT5640 pins:
* DMIC1
* DMIC2
* MICBIAS1
* IN1P
* IN1R
* IN2P
* IN2R
* HPOL
* HPOR
* LOUTL
* LOUTR
* MONOP
* MONON
* SPOLP
* SPOLN
* SPORP
* SPORN
Board connectors:
sinks are the RT5640's pins (as documented in its binding), and the jacks
on the board:
* Headphones
* Speakers
* Mic Jack
- nvidia,i2s-controller : The phandle of the Tegra I2S controller that's
connected to the CODEC.
...
...
Documentation/devicetree/bindings/sound/nvidia,tegra-audio-wm8903.txt
浏览文件 @
840f0e43
...
...
@@ -11,28 +11,8 @@ Required properties:
- nvidia,audio-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. Valid names for sources and
sinks are the WM8903's pins, and the jacks on the board:
WM8903 pins:
* IN1L
* IN1R
* IN2L
* IN2R
* IN3L
* IN3R
* DMICDAT
* HPOUTL
* HPOUTR
* LINEOUTL
* LINEOUTR
* LOP
* LON
* ROP
* RON
* MICBIAS
Board connectors:
sinks are the WM8903's pins (documented in the WM8903 binding document),
and the jacks on the board:
* Headphone Jack
* Int Spk
...
...
Documentation/devicetree/bindings/sound/rt5640.txt
浏览文件 @
840f0e43
...
...
@@ -18,6 +18,26 @@ Optional properties:
- realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin.
Pins on the device (for linking into audio routes):
* DMIC1
* DMIC2
* MICBIAS1
* IN1P
* IN1R
* IN2P
* IN2R
* HPOL
* HPOR
* LOUTL
* LOUTR
* MONOP
* MONON
* SPOLP
* SPOLN
* SPORP
* SPORN
Example:
rt5640 {
...
...
Documentation/devicetree/bindings/sound/wm8903.txt
浏览文件 @
840f0e43
...
...
@@ -28,6 +28,25 @@ Optional properties:
performed. If any entry has the value 0xffffffff, that GPIO's
configuration will not be modified.
Pins on the device (for linking into audio routes):
* IN1L
* IN1R
* IN2L
* IN2R
* IN3L
* IN3R
* DMICDAT
* HPOUTL
* HPOUTR
* LINEOUTL
* LINEOUTR
* LOP
* LON
* ROP
* RON
* MICBIAS
Example:
codec: wm8903@1a {
...
...
sound/soc/tegra/Kconfig
浏览文件 @
840f0e43
config SND_SOC_TEGRA
tristate "SoC Audio for the Tegra System-on-Chip"
depends on
ARCH_TEGRA && TEGRA20_APB_DMA
depends on
(ARCH_TEGRA && TEGRA20_APB_DMA) || COMPILE_TEST
select REGMAP_MMIO
select SND_SOC_GENERIC_DMAENGINE_PCM
if TEGRA20_APB_DMA
select SND_SOC_GENERIC_DMAENGINE_PCM
help
Say Y or M here if you want support for SoC audio on Tegra.
...
...
@@ -61,7 +61,7 @@ config SND_SOC_TEGRA30_I2S
config SND_SOC_TEGRA_RT5640
tristate "SoC Audio support for Tegra boards using an RT5640 codec"
depends on SND_SOC_TEGRA && I2C
depends on SND_SOC_TEGRA && I2C
&& GPIOLIB
select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC
select SND_SOC_TEGRA30_I2S if ARCH_TEGRA_3x_SOC
select SND_SOC_RT5640
...
...
@@ -71,7 +71,7 @@ config SND_SOC_TEGRA_RT5640
config SND_SOC_TEGRA_WM8753
tristate "SoC Audio support for Tegra boards using a WM8753 codec"
depends on SND_SOC_TEGRA && I2C
depends on SND_SOC_TEGRA && I2C
&& GPIOLIB
select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC
select SND_SOC_TEGRA30_I2S if ARCH_TEGRA_3x_SOC
select SND_SOC_WM8753
...
...
@@ -81,7 +81,7 @@ config SND_SOC_TEGRA_WM8753
config SND_SOC_TEGRA_WM8903
tristate "SoC Audio support for Tegra boards using a WM8903 codec"
depends on SND_SOC_TEGRA && I2C
depends on SND_SOC_TEGRA && I2C
&& GPIOLIB
select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC
select SND_SOC_TEGRA30_I2S if ARCH_TEGRA_3x_SOC
select SND_SOC_WM8903
...
...
@@ -92,7 +92,7 @@ config SND_SOC_TEGRA_WM8903
config SND_SOC_TEGRA_WM9712
tristate "SoC Audio support for Tegra boards using a WM9712 codec"
depends on SND_SOC_TEGRA && ARCH_TEGRA_2x_SOC
depends on SND_SOC_TEGRA && ARCH_TEGRA_2x_SOC
&& GPIOLIB
select SND_SOC_TEGRA20_AC97
select SND_SOC_WM9712
help
...
...
@@ -110,7 +110,7 @@ config SND_SOC_TEGRA_TRIMSLICE
config SND_SOC_TEGRA_ALC5632
tristate "SoC Audio support for Tegra boards using an ALC5632 codec"
depends on SND_SOC_TEGRA && I2C
depends on SND_SOC_TEGRA && I2C
&& GPIOLIB
select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC
select SND_SOC_ALC5632
help
...
...
sound/soc/tegra/tegra20_ac97.c
浏览文件 @
840f0e43
...
...
@@ -334,12 +334,6 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
}
mem
=
platform_get_resource
(
pdev
,
IORESOURCE_MEM
,
0
);
if
(
!
mem
)
{
dev_err
(
&
pdev
->
dev
,
"No memory resource
\n
"
);
ret
=
-
ENODEV
;
goto
err_clk_put
;
}
regs
=
devm_ioremap_resource
(
&
pdev
->
dev
,
mem
);
if
(
IS_ERR
(
regs
))
{
ret
=
PTR_ERR
(
regs
);
...
...
@@ -432,8 +426,6 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
return
0
;
err_unregister_pcm:
tegra_pcm_platform_unregister
(
&
pdev
->
dev
);
err_unregister_component:
snd_soc_unregister_component
(
&
pdev
->
dev
);
err_asoc_utils_fini:
...
...
sound/soc/tegra/tegra_alc5632.c
浏览文件 @
840f0e43
...
...
@@ -13,8 +13,6 @@
* published by the Free Software Foundation.
*/
#include <asm/mach-types.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
...
...
sound/soc/tegra/tegra_rt5640.c
浏览文件 @
840f0e43
...
...
@@ -99,6 +99,7 @@ static struct snd_soc_jack_gpio tegra_rt5640_hp_jack_gpio = {
static
const
struct
snd_soc_dapm_widget
tegra_rt5640_dapm_widgets
[]
=
{
SND_SOC_DAPM_HP
(
"Headphones"
,
NULL
),
SND_SOC_DAPM_SPK
(
"Speakers"
,
NULL
),
SND_SOC_DAPM_MIC
(
"Mic Jack"
,
NULL
),
};
static
const
struct
snd_kcontrol_new
tegra_rt5640_controls
[]
=
{
...
...
sound/soc/tegra/tegra_wm8753.c
浏览文件 @
840f0e43
...
...
@@ -28,8 +28,6 @@
*
*/
#include <asm/mach-types.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
...
...
sound/soc/tegra/trimslice.c
浏览文件 @
840f0e43
...
...
@@ -24,8 +24,6 @@
*
*/
#include <asm/mach-types.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录