Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
6250b9ce
K
Kernel
项目概览
openeuler
/
Kernel
接近 2 年 前同步成功
通知
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看板
提交
6250b9ce
编写于
1月 21, 2010
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'topic/noncached-mmap' into topic/misc
上级
8b296c8f
c32d977b
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
23 addition
and
2 deletion
+23
-2
include/sound/pcm.h
include/sound/pcm.h
+4
-0
sound/core/pcm_native.c
sound/core/pcm_native.c
+9
-2
sound/drivers/vx/vx_pcm.c
sound/drivers/vx/vx_pcm.c
+2
-0
sound/mips/sgio2audio.c
sound/mips/sgio2audio.c
+3
-0
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
+1
-0
sound/usb/ua101.c
sound/usb/ua101.c
+2
-0
sound/usb/usbaudio.c
sound/usb/usbaudio.c
+2
-0
未找到文件。
include/sound/pcm.h
浏览文件 @
6250b9ce
...
@@ -1022,6 +1022,10 @@ int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream, struct vm_area_s
...
@@ -1022,6 +1022,10 @@ int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream, struct vm_area_s
#define snd_pcm_lib_mmap_iomem NULL
#define snd_pcm_lib_mmap_iomem NULL
#endif
#endif
int
snd_pcm_lib_mmap_noncached
(
struct
snd_pcm_substream
*
substream
,
struct
vm_area_struct
*
area
);
#define snd_pcm_lib_mmap_vmalloc snd_pcm_lib_mmap_noncached
static
inline
void
snd_pcm_limit_isa_dma_size
(
int
dma
,
size_t
*
max
)
static
inline
void
snd_pcm_limit_isa_dma_size
(
int
dma
,
size_t
*
max
)
{
{
*
max
=
dma
<
4
?
64
*
1024
:
128
*
1024
;
*
max
=
dma
<
4
?
64
*
1024
:
128
*
1024
;
...
...
sound/core/pcm_native.c
浏览文件 @
6250b9ce
...
@@ -3165,9 +3165,7 @@ int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream,
...
@@ -3165,9 +3165,7 @@ int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream,
long
size
;
long
size
;
unsigned
long
offset
;
unsigned
long
offset
;
#ifdef pgprot_noncached
area
->
vm_page_prot
=
pgprot_noncached
(
area
->
vm_page_prot
);
area
->
vm_page_prot
=
pgprot_noncached
(
area
->
vm_page_prot
);
#endif
area
->
vm_flags
|=
VM_IO
;
area
->
vm_flags
|=
VM_IO
;
size
=
area
->
vm_end
-
area
->
vm_start
;
size
=
area
->
vm_end
-
area
->
vm_start
;
offset
=
area
->
vm_pgoff
<<
PAGE_SHIFT
;
offset
=
area
->
vm_pgoff
<<
PAGE_SHIFT
;
...
@@ -3181,6 +3179,15 @@ int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream,
...
@@ -3181,6 +3179,15 @@ int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream,
EXPORT_SYMBOL
(
snd_pcm_lib_mmap_iomem
);
EXPORT_SYMBOL
(
snd_pcm_lib_mmap_iomem
);
#endif
/* SNDRV_PCM_INFO_MMAP */
#endif
/* SNDRV_PCM_INFO_MMAP */
/* mmap callback with pgprot_noncached */
int
snd_pcm_lib_mmap_noncached
(
struct
snd_pcm_substream
*
substream
,
struct
vm_area_struct
*
area
)
{
area
->
vm_page_prot
=
pgprot_noncached
(
area
->
vm_page_prot
);
return
snd_pcm_default_mmap
(
substream
,
area
);
}
EXPORT_SYMBOL
(
snd_pcm_lib_mmap_noncached
);
/*
/*
* mmap DMA buffer
* mmap DMA buffer
*/
*/
...
...
sound/drivers/vx/vx_pcm.c
浏览文件 @
6250b9ce
...
@@ -905,6 +905,7 @@ static struct snd_pcm_ops vx_pcm_playback_ops = {
...
@@ -905,6 +905,7 @@ static struct snd_pcm_ops vx_pcm_playback_ops = {
.
trigger
=
vx_pcm_trigger
,
.
trigger
=
vx_pcm_trigger
,
.
pointer
=
vx_pcm_playback_pointer
,
.
pointer
=
vx_pcm_playback_pointer
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
mmap
=
snd_pcm_lib_mmap_vmalloc
,
};
};
...
@@ -1125,6 +1126,7 @@ static struct snd_pcm_ops vx_pcm_capture_ops = {
...
@@ -1125,6 +1126,7 @@ static struct snd_pcm_ops vx_pcm_capture_ops = {
.
trigger
=
vx_pcm_trigger
,
.
trigger
=
vx_pcm_trigger
,
.
pointer
=
vx_pcm_capture_pointer
,
.
pointer
=
vx_pcm_capture_pointer
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
mmap
=
snd_pcm_lib_mmap_vmalloc
,
};
};
...
...
sound/mips/sgio2audio.c
浏览文件 @
6250b9ce
...
@@ -691,6 +691,7 @@ static struct snd_pcm_ops snd_sgio2audio_playback1_ops = {
...
@@ -691,6 +691,7 @@ static struct snd_pcm_ops snd_sgio2audio_playback1_ops = {
.
trigger
=
snd_sgio2audio_pcm_trigger
,
.
trigger
=
snd_sgio2audio_pcm_trigger
,
.
pointer
=
snd_sgio2audio_pcm_pointer
,
.
pointer
=
snd_sgio2audio_pcm_pointer
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
mmap
=
snd_pcm_lib_mmap_vmalloc
,
};
};
static
struct
snd_pcm_ops
snd_sgio2audio_playback2_ops
=
{
static
struct
snd_pcm_ops
snd_sgio2audio_playback2_ops
=
{
...
@@ -703,6 +704,7 @@ static struct snd_pcm_ops snd_sgio2audio_playback2_ops = {
...
@@ -703,6 +704,7 @@ static struct snd_pcm_ops snd_sgio2audio_playback2_ops = {
.
trigger
=
snd_sgio2audio_pcm_trigger
,
.
trigger
=
snd_sgio2audio_pcm_trigger
,
.
pointer
=
snd_sgio2audio_pcm_pointer
,
.
pointer
=
snd_sgio2audio_pcm_pointer
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
mmap
=
snd_pcm_lib_mmap_vmalloc
,
};
};
static
struct
snd_pcm_ops
snd_sgio2audio_capture_ops
=
{
static
struct
snd_pcm_ops
snd_sgio2audio_capture_ops
=
{
...
@@ -715,6 +717,7 @@ static struct snd_pcm_ops snd_sgio2audio_capture_ops = {
...
@@ -715,6 +717,7 @@ static struct snd_pcm_ops snd_sgio2audio_capture_ops = {
.
trigger
=
snd_sgio2audio_pcm_trigger
,
.
trigger
=
snd_sgio2audio_pcm_trigger
,
.
pointer
=
snd_sgio2audio_pcm_pointer
,
.
pointer
=
snd_sgio2audio_pcm_pointer
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
mmap
=
snd_pcm_lib_mmap_vmalloc
,
};
};
/*
/*
...
...
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
浏览文件 @
6250b9ce
...
@@ -277,6 +277,7 @@ static struct snd_pcm_ops pdacf_pcm_capture_ops = {
...
@@ -277,6 +277,7 @@ static struct snd_pcm_ops pdacf_pcm_capture_ops = {
.
trigger
=
pdacf_pcm_trigger
,
.
trigger
=
pdacf_pcm_trigger
,
.
pointer
=
pdacf_pcm_capture_pointer
,
.
pointer
=
pdacf_pcm_capture_pointer
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
mmap
=
snd_pcm_lib_mmap_vmalloc
,
};
};
...
...
sound/usb/ua101.c
浏览文件 @
6250b9ce
...
@@ -911,6 +911,7 @@ static struct snd_pcm_ops capture_pcm_ops = {
...
@@ -911,6 +911,7 @@ static struct snd_pcm_ops capture_pcm_ops = {
.
trigger
=
capture_pcm_trigger
,
.
trigger
=
capture_pcm_trigger
,
.
pointer
=
capture_pcm_pointer
,
.
pointer
=
capture_pcm_pointer
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
mmap
=
snd_pcm_lib_mmap_vmalloc
,
};
};
static
struct
snd_pcm_ops
playback_pcm_ops
=
{
static
struct
snd_pcm_ops
playback_pcm_ops
=
{
...
@@ -923,6 +924,7 @@ static struct snd_pcm_ops playback_pcm_ops = {
...
@@ -923,6 +924,7 @@ static struct snd_pcm_ops playback_pcm_ops = {
.
trigger
=
playback_pcm_trigger
,
.
trigger
=
playback_pcm_trigger
,
.
pointer
=
playback_pcm_pointer
,
.
pointer
=
playback_pcm_pointer
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
mmap
=
snd_pcm_lib_mmap_vmalloc
,
};
};
static
const
struct
uac_format_type_i_discrete_descriptor
*
static
const
struct
uac_format_type_i_discrete_descriptor
*
...
...
sound/usb/usbaudio.c
浏览文件 @
6250b9ce
...
@@ -1997,6 +1997,7 @@ static struct snd_pcm_ops snd_usb_playback_ops = {
...
@@ -1997,6 +1997,7 @@ static struct snd_pcm_ops snd_usb_playback_ops = {
.
trigger
=
snd_usb_pcm_playback_trigger
,
.
trigger
=
snd_usb_pcm_playback_trigger
,
.
pointer
=
snd_usb_pcm_pointer
,
.
pointer
=
snd_usb_pcm_pointer
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
mmap
=
snd_pcm_lib_mmap_vmalloc
,
};
};
static
struct
snd_pcm_ops
snd_usb_capture_ops
=
{
static
struct
snd_pcm_ops
snd_usb_capture_ops
=
{
...
@@ -2009,6 +2010,7 @@ static struct snd_pcm_ops snd_usb_capture_ops = {
...
@@ -2009,6 +2010,7 @@ static struct snd_pcm_ops snd_usb_capture_ops = {
.
trigger
=
snd_usb_pcm_capture_trigger
,
.
trigger
=
snd_usb_pcm_capture_trigger
,
.
pointer
=
snd_usb_pcm_pointer
,
.
pointer
=
snd_usb_pcm_pointer
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
page
=
snd_pcm_lib_get_vmalloc_page
,
.
mmap
=
snd_pcm_lib_mmap_vmalloc
,
};
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录