Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
9b5b0c01
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9b5b0c01
编写于
4月 20, 2009
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-2.6.30' into for-2.6.31
上级
7154b3e8
b08f7a62
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
40 addition
and
16 deletion
+40
-16
sound/soc/omap/n810.c
sound/soc/omap/n810.c
+2
-2
sound/soc/omap/omap-mcbsp.c
sound/soc/omap/omap-mcbsp.c
+3
-2
sound/soc/omap/omap-mcbsp.h
sound/soc/omap/omap-mcbsp.h
+2
-1
sound/soc/omap/omap-pcm.c
sound/soc/omap/omap-pcm.c
+3
-2
sound/soc/omap/omap-pcm.h
sound/soc/omap/omap-pcm.h
+2
-1
sound/soc/pxa/pxa-ssp.c
sound/soc/pxa/pxa-ssp.c
+28
-8
未找到文件。
sound/soc/omap/n810.c
浏览文件 @
9b5b0c01
...
...
@@ -3,7 +3,7 @@
*
* Copyright (C) 2008 Nokia Corporation
*
* Contact: Jarkko Nikula <j
arkko.nikula@nokia
.com>
* Contact: Jarkko Nikula <j
hnikula@gmail
.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
...
...
@@ -416,6 +416,6 @@ static void __exit n810_soc_exit(void)
module_init
(
n810_soc_init
);
module_exit
(
n810_soc_exit
);
MODULE_AUTHOR
(
"Jarkko Nikula <j
arkko.nikula@nokia
.com>"
);
MODULE_AUTHOR
(
"Jarkko Nikula <j
hnikula@gmail
.com>"
);
MODULE_DESCRIPTION
(
"ALSA SoC Nokia N810"
);
MODULE_LICENSE
(
"GPL"
);
sound/soc/omap/omap-mcbsp.c
浏览文件 @
9b5b0c01
...
...
@@ -3,7 +3,8 @@
*
* Copyright (C) 2008 Nokia Corporation
*
* Contact: Jarkko Nikula <jarkko.nikula@nokia.com>
* Contact: Jarkko Nikula <jhnikula@gmail.com>
* Peter Ujfalusi <peter.ujfalusi@nokia.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
...
...
@@ -546,6 +547,6 @@ static void __exit snd_omap_mcbsp_exit(void)
}
module_exit
(
snd_omap_mcbsp_exit
);
MODULE_AUTHOR
(
"Jarkko Nikula <j
arkko.nikula@nokia
.com>"
);
MODULE_AUTHOR
(
"Jarkko Nikula <j
hnikula@gmail
.com>"
);
MODULE_DESCRIPTION
(
"OMAP I2S SoC Interface"
);
MODULE_LICENSE
(
"GPL"
);
sound/soc/omap/omap-mcbsp.h
浏览文件 @
9b5b0c01
...
...
@@ -3,7 +3,8 @@
*
* Copyright (C) 2008 Nokia Corporation
*
* Contact: Jarkko Nikula <jarkko.nikula@nokia.com>
* Contact: Jarkko Nikula <jhnikula@gmail.com>
* Peter Ujfalusi <peter.ujfalusi@nokia.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
...
...
sound/soc/omap/omap-pcm.c
浏览文件 @
9b5b0c01
...
...
@@ -3,7 +3,8 @@
*
* Copyright (C) 2008 Nokia Corporation
*
* Contact: Jarkko Nikula <jarkko.nikula@nokia.com>
* Contact: Jarkko Nikula <jhnikula@gmail.com>
* Peter Ujfalusi <peter.ujfalusi@nokia.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
...
...
@@ -367,6 +368,6 @@ static void __exit omap_soc_platform_exit(void)
}
module_exit
(
omap_soc_platform_exit
);
MODULE_AUTHOR
(
"Jarkko Nikula <j
arkko.nikula@nokia
.com>"
);
MODULE_AUTHOR
(
"Jarkko Nikula <j
hnikula@gmail
.com>"
);
MODULE_DESCRIPTION
(
"OMAP PCM DMA module"
);
MODULE_LICENSE
(
"GPL"
);
sound/soc/omap/omap-pcm.h
浏览文件 @
9b5b0c01
...
...
@@ -3,7 +3,8 @@
*
* Copyright (C) 2008 Nokia Corporation
*
* Contact: Jarkko Nikula <jarkko.nikula@nokia.com>
* Contact: Jarkko Nikula <jhnikula@gmail.com>
* Peter Ujfalusi <peter.ujfalusi@nokia.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
...
...
sound/soc/pxa/pxa-ssp.c
浏览文件 @
9b5b0c01
...
...
@@ -280,12 +280,33 @@ static int pxa_ssp_resume(struct snd_soc_dai *cpu_dai)
* ssp_set_clkdiv - set SSP clock divider
* @div: serial clock rate divider
*/
static
void
ssp_set_scr
(
struct
ssp_dev
*
dev
,
u32
div
)
static
void
ssp_set_scr
(
struct
ssp_dev
ice
*
ssp
,
u32
div
)
{
struct
ssp_device
*
ssp
=
dev
->
ssp
;
u32
sscr0
=
ssp_read_reg
(
dev
->
ssp
,
SSCR0
)
&
~
SSCR0_SCR
;
u32
sscr0
=
ssp_read_reg
(
ssp
,
SSCR0
);
if
(
cpu_is_pxa25x
()
&&
ssp
->
type
==
PXA25x_SSP
)
{
sscr0
&=
~
0x0000ff00
;
sscr0
|=
((
div
-
2
)
/
2
)
<<
8
;
/* 2..512 */
}
else
{
sscr0
&=
~
0x000fff00
;
sscr0
|=
(
div
-
1
)
<<
8
;
/* 1..4096 */
}
ssp_write_reg
(
ssp
,
SSCR0
,
sscr0
);
}
/**
* ssp_get_clkdiv - get SSP clock divider
*/
static
u32
ssp_get_scr
(
struct
ssp_device
*
ssp
)
{
u32
sscr0
=
ssp_read_reg
(
ssp
,
SSCR0
);
u32
div
;
ssp_write_reg
(
ssp
,
SSCR0
,
(
sscr0
|
SSCR0_SerClkDiv
(
div
)));
if
(
cpu_is_pxa25x
()
&&
ssp
->
type
==
PXA25x_SSP
)
div
=
((
sscr0
>>
8
)
&
0xff
)
*
2
+
2
;
else
div
=
((
sscr0
>>
8
)
&
0xfff
)
+
1
;
return
div
;
}
/*
...
...
@@ -326,7 +347,7 @@ static int pxa_ssp_set_dai_sysclk(struct snd_soc_dai *cpu_dai,
break
;
case
PXA_SSP_CLK_AUDIO
:
priv
->
sysclk
=
0
;
ssp_set_scr
(
&
priv
->
dev
,
1
);
ssp_set_scr
(
ssp
,
1
);
sscr0
|=
SSCR0_ACS
;
break
;
default:
...
...
@@ -387,7 +408,7 @@ static int pxa_ssp_set_dai_clkdiv(struct snd_soc_dai *cpu_dai,
ssp_write_reg
(
ssp
,
SSACD
,
val
);
break
;
case
PXA_SSP_DIV_SCR
:
ssp_set_scr
(
&
priv
->
dev
,
div
);
ssp_set_scr
(
ssp
,
div
);
break
;
default:
return
-
ENODEV
;
...
...
@@ -683,8 +704,7 @@ static int pxa_ssp_hw_params(struct snd_pcm_substream *substream,
case
SND_SOC_DAIFMT_I2S
:
sspsp
=
ssp_read_reg
(
ssp
,
SSPSP
);
if
(((
sscr0
&
SSCR0_SCR
)
==
SSCR0_SerClkDiv
(
4
))
&&
(
width
==
16
))
{
if
((
ssp_get_scr
(
ssp
)
==
4
)
&&
(
width
==
16
))
{
/* This is a special case where the bitclk is 64fs
* and we're not dealing with 2*32 bits of audio
* samples.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录