Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
dfa7c70b
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看板
提交
dfa7c70b
编写于
11月 30, 2010
作者:
M
Mark Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-2.6.37' into for-2.6.38
上级
55110276
b76fb39d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
7 deletion
+8
-7
sound/soc/nuc900/nuc900-pcm.c
sound/soc/nuc900/nuc900-pcm.c
+5
-4
sound/soc/s6000/s6000-i2s.c
sound/soc/s6000/s6000-i2s.c
+1
-1
sound/soc/s6000/s6000-pcm.c
sound/soc/s6000/s6000-pcm.c
+1
-1
sound/soc/s6000/s6105-ipcam.c
sound/soc/s6000/s6105-ipcam.c
+1
-1
未找到文件。
sound/soc/nuc900/nuc900-pcm.c
浏览文件 @
dfa7c70b
...
@@ -50,12 +50,12 @@ static int nuc900_dma_hw_params(struct snd_pcm_substream *substream,
...
@@ -50,12 +50,12 @@ static int nuc900_dma_hw_params(struct snd_pcm_substream *substream,
unsigned
long
flags
;
unsigned
long
flags
;
int
ret
=
0
;
int
ret
=
0
;
spin_lock_irqsave
(
&
nuc900_audio
->
lock
,
flags
);
ret
=
snd_pcm_lib_malloc_pages
(
substream
,
params_buffer_bytes
(
params
));
ret
=
snd_pcm_lib_malloc_pages
(
substream
,
params_buffer_bytes
(
params
));
if
(
ret
<
0
)
if
(
ret
<
0
)
return
ret
;
return
ret
;
spin_lock_irqsave
(
&
nuc900_audio
->
lock
,
flags
);
nuc900_audio
->
substream
=
substream
;
nuc900_audio
->
substream
=
substream
;
nuc900_audio
->
dma_addr
[
substream
->
stream
]
=
runtime
->
dma_addr
;
nuc900_audio
->
dma_addr
[
substream
->
stream
]
=
runtime
->
dma_addr
;
nuc900_audio
->
buffersize
[
substream
->
stream
]
=
nuc900_audio
->
buffersize
[
substream
->
stream
]
=
...
@@ -169,6 +169,7 @@ static int nuc900_dma_prepare(struct snd_pcm_substream *substream)
...
@@ -169,6 +169,7 @@ static int nuc900_dma_prepare(struct snd_pcm_substream *substream)
struct
snd_pcm_runtime
*
runtime
=
substream
->
runtime
;
struct
snd_pcm_runtime
*
runtime
=
substream
->
runtime
;
struct
nuc900_audio
*
nuc900_audio
=
runtime
->
private_data
;
struct
nuc900_audio
*
nuc900_audio
=
runtime
->
private_data
;
unsigned
long
flags
,
val
;
unsigned
long
flags
,
val
;
int
ret
=
0
;
spin_lock_irqsave
(
&
nuc900_audio
->
lock
,
flags
);
spin_lock_irqsave
(
&
nuc900_audio
->
lock
,
flags
);
...
@@ -197,10 +198,10 @@ static int nuc900_dma_prepare(struct snd_pcm_substream *substream)
...
@@ -197,10 +198,10 @@ static int nuc900_dma_prepare(struct snd_pcm_substream *substream)
AUDIO_WRITE
(
nuc900_audio
->
mmio
+
ACTL_RESET
,
val
);
AUDIO_WRITE
(
nuc900_audio
->
mmio
+
ACTL_RESET
,
val
);
break
;
break
;
default:
default:
ret
urn
-
EINVAL
;
ret
=
-
EINVAL
;
}
}
spin_unlock_irqrestore
(
&
nuc900_audio
->
lock
,
flags
);
spin_unlock_irqrestore
(
&
nuc900_audio
->
lock
,
flags
);
return
0
;
return
ret
;
}
}
static
int
nuc900_dma_trigger
(
struct
snd_pcm_substream
*
substream
,
int
cmd
)
static
int
nuc900_dma_trigger
(
struct
snd_pcm_substream
*
substream
,
int
cmd
)
...
...
sound/soc/s6000/s6000-i2s.c
浏览文件 @
dfa7c70b
...
@@ -434,7 +434,7 @@ static struct snd_soc_dai_driver s6000_i2s_dai = {
...
@@ -434,7 +434,7 @@ static struct snd_soc_dai_driver s6000_i2s_dai = {
.
rate_max
=
1562500
,
.
rate_max
=
1562500
,
},
},
.
ops
=
&
s6000_i2s_dai_ops
,
.
ops
=
&
s6000_i2s_dai_ops
,
}
}
;
static
int
__devinit
s6000_i2s_probe
(
struct
platform_device
*
pdev
)
static
int
__devinit
s6000_i2s_probe
(
struct
platform_device
*
pdev
)
{
{
...
...
sound/soc/s6000/s6000-pcm.c
浏览文件 @
dfa7c70b
...
@@ -473,7 +473,7 @@ static int s6000_pcm_new(struct snd_card *card,
...
@@ -473,7 +473,7 @@ static int s6000_pcm_new(struct snd_card *card,
}
}
res
=
request_irq
(
params
->
irq
,
s6000_pcm_irq
,
IRQF_SHARED
,
res
=
request_irq
(
params
->
irq
,
s6000_pcm_irq
,
IRQF_SHARED
,
s6000_soc_platform
.
name
,
pcm
);
"s6000-audio"
,
pcm
);
if
(
res
)
{
if
(
res
)
{
printk
(
KERN_ERR
"s6000-pcm couldn't get IRQ
\n
"
);
printk
(
KERN_ERR
"s6000-pcm couldn't get IRQ
\n
"
);
return
res
;
return
res
;
...
...
sound/soc/s6000/s6105-ipcam.c
浏览文件 @
dfa7c70b
...
@@ -168,7 +168,7 @@ static int s6105_aic3x_init(struct snd_soc_pcm_runtime *rtd)
...
@@ -168,7 +168,7 @@ static int s6105_aic3x_init(struct snd_soc_pcm_runtime *rtd)
snd_soc_dapm_sync
(
dapm
);
snd_soc_dapm_sync
(
dapm
);
snd_ctl_add
(
codec
->
snd_card
,
snd_ctl_new1
(
&
audio_out_mux
,
codec
));
snd_ctl_add
(
codec
->
card
->
snd_card
,
snd_ctl_new1
(
&
audio_out_mux
,
codec
));
return
0
;
return
0
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录