Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
ec7118e3
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看板
提交
ec7118e3
编写于
11月 08, 2013
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'asoc/topic/fsl' into asoc-next
上级
3352b800
ea8e5e59
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
28 addition
and
36 deletion
+28
-36
sound/soc/fsl/eukrea-tlv320.c
sound/soc/fsl/eukrea-tlv320.c
+10
-5
sound/soc/fsl/fsl_spdif.c
sound/soc/fsl/fsl_spdif.c
+2
-7
sound/soc/fsl/fsl_ssi.c
sound/soc/fsl/fsl_ssi.c
+7
-15
sound/soc/fsl/imx-audmux.c
sound/soc/fsl/imx-audmux.c
+5
-4
sound/soc/fsl/imx-mc13783.c
sound/soc/fsl/imx-mc13783.c
+1
-0
sound/soc/fsl/imx-sgtl5000.c
sound/soc/fsl/imx-sgtl5000.c
+1
-0
sound/soc/fsl/imx-ssi.c
sound/soc/fsl/imx-ssi.c
+0
-3
sound/soc/fsl/imx-wm8962.c
sound/soc/fsl/imx-wm8962.c
+2
-2
未找到文件。
sound/soc/fsl/eukrea-tlv320.c
浏览文件 @
ec7118e3
...
...
@@ -42,7 +42,8 @@ static int eukrea_tlv320_hw_params(struct snd_pcm_substream *substream,
SND_SOC_DAIFMT_NB_NF
|
SND_SOC_DAIFMT_CBM_CFM
);
if
(
ret
)
{
pr_err
(
"%s: failed set cpu dai format
\n
"
,
__func__
);
dev_err
(
cpu_dai
->
dev
,
"Failed to set the cpu dai format.
\n
"
);
return
ret
;
}
...
...
@@ -50,14 +51,16 @@ static int eukrea_tlv320_hw_params(struct snd_pcm_substream *substream,
SND_SOC_DAIFMT_NB_NF
|
SND_SOC_DAIFMT_CBM_CFM
);
if
(
ret
)
{
pr_err
(
"%s: failed set codec dai format
\n
"
,
__func__
);
dev_err
(
cpu_dai
->
dev
,
"Failed to set the codec format.
\n
"
);
return
ret
;
}
ret
=
snd_soc_dai_set_sysclk
(
codec_dai
,
0
,
CODEC_CLOCK
,
SND_SOC_CLOCK_OUT
);
if
(
ret
)
{
pr_err
(
"%s: failed setting codec sysclk
\n
"
,
__func__
);
dev_err
(
cpu_dai
->
dev
,
"Failed to set the codec sysclk.
\n
"
);
return
ret
;
}
snd_soc_dai_set_tdm_slot
(
cpu_dai
,
0xffffffc
,
0xffffffc
,
2
,
0
);
...
...
@@ -65,7 +68,8 @@ static int eukrea_tlv320_hw_params(struct snd_pcm_substream *substream,
ret
=
snd_soc_dai_set_sysclk
(
cpu_dai
,
IMX_SSP_SYS_CLK
,
0
,
SND_SOC_CLOCK_IN
);
if
(
ret
)
{
pr_err
(
"can't set CPU system clock IMX_SSP_SYS_CLK
\n
"
);
dev_err
(
cpu_dai
->
dev
,
"Can't set the IMX_SSP_SYS_CLK CPU system clock.
\n
"
);
return
ret
;
}
...
...
@@ -155,7 +159,8 @@ static struct platform_driver eukrea_tlv320_driver = {
.
owner
=
THIS_MODULE
,
},
.
probe
=
eukrea_tlv320_probe
,
.
remove
=
eukrea_tlv320_remove
,};
.
remove
=
eukrea_tlv320_remove
,
};
module_platform_driver
(
eukrea_tlv320_driver
);
...
...
sound/soc/fsl/fsl_spdif.c
浏览文件 @
ec7118e3
...
...
@@ -963,7 +963,7 @@ static bool fsl_spdif_readable_reg(struct device *dev, unsigned int reg)
return
true
;
default:
return
false
;
}
;
}
}
static
bool
fsl_spdif_writeable_reg
(
struct
device
*
dev
,
unsigned
int
reg
)
...
...
@@ -982,7 +982,7 @@ static bool fsl_spdif_writeable_reg(struct device *dev, unsigned int reg)
return
true
;
default:
return
false
;
}
;
}
}
static
const
struct
regmap_config
fsl_spdif_regmap_config
=
{
...
...
@@ -1107,11 +1107,6 @@ static int fsl_spdif_probe(struct platform_device *pdev)
/* Get the addresses and IRQ */
res
=
platform_get_resource
(
pdev
,
IORESOURCE_MEM
,
0
);
if
(
IS_ERR
(
res
))
{
dev_err
(
&
pdev
->
dev
,
"could not determine device resources
\n
"
);
return
PTR_ERR
(
res
);
}
regs
=
devm_ioremap_resource
(
&
pdev
->
dev
,
res
);
if
(
IS_ERR
(
regs
))
return
PTR_ERR
(
regs
);
...
...
sound/soc/fsl/fsl_ssi.c
浏览文件 @
ec7118e3
...
...
@@ -469,19 +469,12 @@ static int fsl_ssi_startup(struct snd_pcm_substream *substream,
* parameters, then the second stream may be
* constrained to the wrong sample rate or size.
*/
if
(
!
first_runtime
->
sample_bits
)
{
dev_err
(
substream
->
pcm
->
card
->
dev
,
"set sample size in %s stream first
\n
"
,
substream
->
stream
==
SNDRV_PCM_STREAM_PLAYBACK
?
"capture"
:
"playback"
);
return
-
EAGAIN
;
}
snd_pcm_hw_constraint_minmax
(
substream
->
runtime
,
SNDRV_PCM_HW_PARAM_SAMPLE_BITS
,
if
(
first_runtime
->
sample_bits
)
{
snd_pcm_hw_constraint_minmax
(
substream
->
runtime
,
SNDRV_PCM_HW_PARAM_SAMPLE_BITS
,
first_runtime
->
sample_bits
,
first_runtime
->
sample_bits
);
}
}
ssi_private
->
second_stream
=
substream
;
...
...
@@ -748,7 +741,7 @@ static void fsl_ssi_ac97_init(void)
fsl_ssi_setup
(
fsl_ac97_data
);
}
void
fsl_ssi_ac97_write
(
struct
snd_ac97
*
ac97
,
unsigned
short
reg
,
static
void
fsl_ssi_ac97_write
(
struct
snd_ac97
*
ac97
,
unsigned
short
reg
,
unsigned
short
val
)
{
struct
ccsr_ssi
*
ssi
=
fsl_ac97_data
->
ssi
;
...
...
@@ -770,7 +763,7 @@ void fsl_ssi_ac97_write(struct snd_ac97 *ac97, unsigned short reg,
udelay
(
100
);
}
unsigned
short
fsl_ssi_ac97_read
(
struct
snd_ac97
*
ac97
,
static
unsigned
short
fsl_ssi_ac97_read
(
struct
snd_ac97
*
ac97
,
unsigned
short
reg
)
{
struct
ccsr_ssi
*
ssi
=
fsl_ac97_data
->
ssi
;
...
...
@@ -936,7 +929,7 @@ static int fsl_ssi_probe(struct platform_device *pdev)
ssi_private
->
ssi_phys
=
res
.
start
;
ssi_private
->
irq
=
irq_of_parse_and_map
(
np
,
0
);
if
(
ssi_private
->
irq
==
0
)
{
if
(
!
ssi_private
->
irq
)
{
dev_err
(
&
pdev
->
dev
,
"no irq for node %s
\n
"
,
np
->
full_name
);
return
-
ENXIO
;
}
...
...
@@ -1135,7 +1128,6 @@ static int fsl_ssi_remove(struct platform_device *pdev)
if
(
ssi_private
->
ssi_on_imx
)
imx_pcm_dma_exit
(
pdev
);
snd_soc_unregister_component
(
&
pdev
->
dev
);
dev_set_drvdata
(
&
pdev
->
dev
,
NULL
);
device_remove_file
(
&
pdev
->
dev
,
&
ssi_private
->
dev_attr
);
if
(
ssi_private
->
ssi_on_imx
)
clk_disable_unprepare
(
ssi_private
->
clk
);
...
...
sound/soc/fsl/imx-audmux.c
浏览文件 @
ec7118e3
...
...
@@ -66,13 +66,10 @@ static ssize_t audmux_read_file(struct file *file, char __user *user_buf,
size_t
count
,
loff_t
*
ppos
)
{
ssize_t
ret
;
char
*
buf
=
kmalloc
(
PAGE_SIZE
,
GFP_KERNEL
)
;
char
*
buf
;
int
port
=
(
int
)
file
->
private_data
;
u32
pdcr
,
ptcr
;
if
(
!
buf
)
return
-
ENOMEM
;
if
(
audmux_clk
)
{
ret
=
clk_prepare_enable
(
audmux_clk
);
if
(
ret
)
...
...
@@ -85,6 +82,10 @@ static ssize_t audmux_read_file(struct file *file, char __user *user_buf,
if
(
audmux_clk
)
clk_disable_unprepare
(
audmux_clk
);
buf
=
kmalloc
(
PAGE_SIZE
,
GFP_KERNEL
);
if
(
!
buf
)
return
-
ENOMEM
;
ret
=
snprintf
(
buf
,
PAGE_SIZE
,
"PDCR: %08x
\n
PTCR: %08x
\n
"
,
pdcr
,
ptcr
);
...
...
sound/soc/fsl/imx-mc13783.c
浏览文件 @
ec7118e3
...
...
@@ -160,6 +160,7 @@ static struct platform_driver imx_mc13783_audio_driver = {
.
driver
=
{
.
name
=
"imx_mc13783"
,
.
owner
=
THIS_MODULE
,
.
pm
=
&
snd_soc_pm_ops
,
},
.
probe
=
imx_mc13783_probe
,
.
remove
=
imx_mc13783_remove
...
...
sound/soc/fsl/imx-sgtl5000.c
浏览文件 @
ec7118e3
...
...
@@ -201,6 +201,7 @@ static struct platform_driver imx_sgtl5000_driver = {
.
driver
=
{
.
name
=
"imx-sgtl5000"
,
.
owner
=
THIS_MODULE
,
.
pm
=
&
snd_soc_pm_ops
,
.
of_match_table
=
imx_sgtl5000_dt_ids
,
},
.
probe
=
imx_sgtl5000_probe
,
...
...
sound/soc/fsl/imx-ssi.c
浏览文件 @
ec7118e3
...
...
@@ -613,7 +613,6 @@ static int imx_ssi_probe(struct platform_device *pdev)
failed_pcm:
snd_soc_unregister_component
(
&
pdev
->
dev
);
failed_register:
release_mem_region
(
res
->
start
,
resource_size
(
res
));
clk_disable_unprepare
(
ssi
->
clk
);
failed_clk:
snd_soc_set_ac97_ops
(
NULL
);
...
...
@@ -623,7 +622,6 @@ static int imx_ssi_probe(struct platform_device *pdev)
static
int
imx_ssi_remove
(
struct
platform_device
*
pdev
)
{
struct
resource
*
res
=
platform_get_resource
(
pdev
,
IORESOURCE_MEM
,
0
);
struct
imx_ssi
*
ssi
=
platform_get_drvdata
(
pdev
);
if
(
!
ssi
->
dma_init
)
...
...
@@ -637,7 +635,6 @@ static int imx_ssi_remove(struct platform_device *pdev)
if
(
ssi
->
flags
&
IMX_SSI_USE_AC97
)
ac97_ssi
=
NULL
;
release_mem_region
(
res
->
start
,
resource_size
(
res
));
clk_disable_unprepare
(
ssi
->
clk
);
snd_soc_set_ac97_ops
(
NULL
);
...
...
sound/soc/fsl/imx-wm8962.c
浏览文件 @
ec7118e3
...
...
@@ -279,8 +279,7 @@ static int imx_wm8962_probe(struct platform_device *pdev)
return
0
;
clk_fail:
if
(
!
IS_ERR
(
data
->
codec_clk
))
clk_disable_unprepare
(
data
->
codec_clk
);
clk_disable_unprepare
(
data
->
codec_clk
);
fail:
if
(
ssi_np
)
of_node_put
(
ssi_np
);
...
...
@@ -310,6 +309,7 @@ static struct platform_driver imx_wm8962_driver = {
.
driver
=
{
.
name
=
"imx-wm8962"
,
.
owner
=
THIS_MODULE
,
.
pm
=
&
snd_soc_pm_ops
,
.
of_match_table
=
imx_wm8962_dt_ids
,
},
.
probe
=
imx_wm8962_probe
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录