Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
6c39d6ac
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看板
提交
6c39d6ac
编写于
12月 06, 2011
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'fix/asoc' into for-linus
上级
a0204283
cefcc03f
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
45 addition
and
16 deletion
+45
-16
Documentation/sound/alsa/soc/machine.txt
Documentation/sound/alsa/soc/machine.txt
+2
-4
sound/soc/codecs/uda1380.c
sound/soc/codecs/uda1380.c
+2
-2
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm8994.c
+6
-6
sound/soc/imx/Kconfig
sound/soc/imx/Kconfig
+1
-1
sound/soc/kirkwood/Kconfig
sound/soc/kirkwood/Kconfig
+2
-1
sound/soc/pxa/Kconfig
sound/soc/pxa/Kconfig
+2
-1
sound/soc/soc-utils.c
sound/soc/soc-utils.c
+30
-1
未找到文件。
Documentation/sound/alsa/soc/machine.txt
浏览文件 @
6c39d6ac
...
...
@@ -50,8 +50,7 @@ Machine DAI Configuration
The machine DAI configuration glues all the codec and CPU DAIs together. It can
also be used to set up the DAI system clock and for any machine related DAI
initialisation e.g. the machine audio map can be connected to the codec audio
map, unconnected codec pins can be set as such. Please see corgi.c, spitz.c
for examples.
map, unconnected codec pins can be set as such.
struct snd_soc_dai_link is used to set up each DAI in your machine. e.g.
...
...
@@ -83,8 +82,7 @@ Machine Power Map
The machine driver can optionally extend the codec power map and to become an
audio power map of the audio subsystem. This allows for automatic power up/down
of speaker/HP amplifiers, etc. Codec pins can be connected to the machines jack
sockets in the machine init function. See soc/pxa/spitz.c and dapm.txt for
details.
sockets in the machine init function.
Machine Controls
...
...
sound/soc/codecs/uda1380.c
浏览文件 @
6c39d6ac
...
...
@@ -863,13 +863,13 @@ static struct i2c_driver uda1380_i2c_driver = {
static
int
__init
uda1380_modinit
(
void
)
{
int
ret
;
int
ret
=
0
;
#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
ret
=
i2c_add_driver
(
&
uda1380_i2c_driver
);
if
(
ret
!=
0
)
pr_err
(
"Failed to register UDA1380 I2C driver: %d
\n
"
,
ret
);
#endif
return
0
;
return
ret
;
}
module_init
(
uda1380_modinit
);
...
...
sound/soc/codecs/wm8994.c
浏览文件 @
6c39d6ac
...
...
@@ -1325,15 +1325,15 @@ SND_SOC_DAPM_DAC("DAC1R", NULL, WM8994_POWER_MANAGEMENT_5, 0, 0),
};
static
const
struct
snd_soc_dapm_widget
wm8994_adc_revd_widgets
[]
=
{
SND_SOC_DAPM_MUX_E
(
"ADCL Mux"
,
WM8994_POWER_MANAGEMENT_4
,
1
,
0
,
&
adcl_mux
,
adc_mux_ev
,
SND_SOC_DAPM_PRE_PMU
),
SND_SOC_DAPM_MUX_E
(
"ADCR Mux"
,
WM8994_POWER_MANAGEMENT_4
,
0
,
0
,
&
adcr_mux
,
adc_mux_ev
,
SND_SOC_DAPM_PRE_PMU
),
SND_SOC_DAPM_
VIRT_
MUX_E
(
"ADCL Mux"
,
WM8994_POWER_MANAGEMENT_4
,
1
,
0
,
&
adcl_mux
,
adc_mux_ev
,
SND_SOC_DAPM_PRE_PMU
),
SND_SOC_DAPM_
VIRT_
MUX_E
(
"ADCR Mux"
,
WM8994_POWER_MANAGEMENT_4
,
0
,
0
,
&
adcr_mux
,
adc_mux_ev
,
SND_SOC_DAPM_PRE_PMU
),
};
static
const
struct
snd_soc_dapm_widget
wm8994_adc_widgets
[]
=
{
SND_SOC_DAPM_MUX
(
"ADCL Mux"
,
WM8994_POWER_MANAGEMENT_4
,
1
,
0
,
&
adcl_mux
),
SND_SOC_DAPM_MUX
(
"ADCR Mux"
,
WM8994_POWER_MANAGEMENT_4
,
0
,
0
,
&
adcr_mux
),
SND_SOC_DAPM_
VIRT_
MUX
(
"ADCL Mux"
,
WM8994_POWER_MANAGEMENT_4
,
1
,
0
,
&
adcl_mux
),
SND_SOC_DAPM_
VIRT_
MUX
(
"ADCR Mux"
,
WM8994_POWER_MANAGEMENT_4
,
0
,
0
,
&
adcr_mux
),
};
static
const
struct
snd_soc_dapm_widget
wm8994_dapm_widgets
[]
=
{
...
...
sound/soc/imx/Kconfig
浏览文件 @
6c39d6ac
...
...
@@ -28,7 +28,7 @@ config SND_MXC_SOC_WM1133_EV1
config SND_SOC_MX27VIS_AIC32X4
tristate "SoC audio support for Visstrim M10 boards"
depends on MACH_IMX27_VISSTRIM_M10
depends on MACH_IMX27_VISSTRIM_M10
&& I2C
select SND_SOC_TLV320AIC32X4
select SND_MXC_SOC_MX2
help
...
...
sound/soc/kirkwood/Kconfig
浏览文件 @
6c39d6ac
...
...
@@ -12,6 +12,7 @@ config SND_KIRKWOOD_SOC_I2S
config SND_KIRKWOOD_SOC_OPENRD
tristate "SoC Audio support for Kirkwood Openrd Client"
depends on SND_KIRKWOOD_SOC && (MACH_OPENRD_CLIENT || MACH_OPENRD_ULTIMATE)
depends on I2C
select SND_KIRKWOOD_SOC_I2S
select SND_SOC_CS42L51
help
...
...
@@ -20,7 +21,7 @@ config SND_KIRKWOOD_SOC_OPENRD
config SND_KIRKWOOD_SOC_T5325
tristate "SoC Audio support for HP t5325"
depends on SND_KIRKWOOD_SOC && MACH_T5325
depends on SND_KIRKWOOD_SOC && MACH_T5325
&& I2C
select SND_KIRKWOOD_SOC_I2S
select SND_SOC_ALC5623
help
...
...
sound/soc/pxa/Kconfig
浏览文件 @
6c39d6ac
...
...
@@ -151,6 +151,7 @@ config SND_SOC_ZYLONITE
config SND_SOC_RAUMFELD
tristate "SoC Audio support Raumfeld audio adapter"
depends on SND_PXA2XX_SOC && (MACH_RAUMFELD_SPEAKER || MACH_RAUMFELD_CONNECTOR)
depends on I2C && SPI_MASTER
select SND_PXA_SOC_SSP
select SND_SOC_CS4270
select SND_SOC_AK4104
...
...
@@ -159,7 +160,7 @@ config SND_SOC_RAUMFELD
config SND_PXA2XX_SOC_HX4700
tristate "SoC Audio support for HP iPAQ hx4700"
depends on SND_PXA2XX_SOC && MACH_H4700
depends on SND_PXA2XX_SOC && MACH_H4700
&& I2C
select SND_PXA2XX_SOC_I2S
select SND_SOC_AK4641
help
...
...
sound/soc/soc-utils.c
浏览文件 @
6c39d6ac
...
...
@@ -58,7 +58,36 @@ int snd_soc_params_to_bclk(struct snd_pcm_hw_params *params)
}
EXPORT_SYMBOL_GPL
(
snd_soc_params_to_bclk
);
static
struct
snd_soc_platform_driver
dummy_platform
;
static
const
struct
snd_pcm_hardware
dummy_dma_hardware
=
{
.
formats
=
0xffffffff
,
.
channels_min
=
1
,
.
channels_max
=
UINT_MAX
,
/* Random values to keep userspace happy when checking constraints */
.
info
=
SNDRV_PCM_INFO_INTERLEAVED
|
SNDRV_PCM_INFO_BLOCK_TRANSFER
,
.
buffer_bytes_max
=
128
*
1024
,
.
period_bytes_min
=
PAGE_SIZE
,
.
period_bytes_max
=
PAGE_SIZE
*
2
,
.
periods_min
=
2
,
.
periods_max
=
128
,
};
static
int
dummy_dma_open
(
struct
snd_pcm_substream
*
substream
)
{
snd_soc_set_runtime_hwparams
(
substream
,
&
dummy_dma_hardware
);
return
0
;
}
static
struct
snd_pcm_ops
dummy_dma_ops
=
{
.
open
=
dummy_dma_open
,
.
ioctl
=
snd_pcm_lib_ioctl
,
};
static
struct
snd_soc_platform_driver
dummy_platform
=
{
.
ops
=
&
dummy_dma_ops
,
};
static
__devinit
int
snd_soc_dummy_probe
(
struct
platform_device
*
pdev
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录