Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
759ee81b
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看板
提交
759ee81b
编写于
8月 27, 2008
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
alsa: Remove special SBUS dma support code.
No longer used. Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
12b1c03d
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
2 addition
and
56 deletion
+2
-56
Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl
Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl
+1
-2
include/sound/core.h
include/sound/core.h
+0
-3
include/sound/memalloc.h
include/sound/memalloc.h
+0
-2
sound/core/memalloc.c
sound/core/memalloc.c
+1
-49
未找到文件。
Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl
浏览文件 @
759ee81b
...
...
@@ -5073,8 +5073,7 @@ struct _snd_pcm_runtime {
with
<constant>
SNDRV_DMA_TYPE_CONTINUOUS
</constant>
type and the
<function>
snd_dma_continuous_data(GFP_KERNEL)
</function>
device pointer,
where
<constant>
GFP_KERNEL
</constant>
is the kernel allocation flag to
use. For the SBUS,
<constant>
SNDRV_DMA_TYPE_SBUS
</constant>
and
<function>
snd_dma_sbus_data(sbus_dev)
</function>
are used instead.
use.
For the PCI scatter-gather buffers, use
<constant>
SNDRV_DMA_TYPE_DEV_SG
</constant>
with
<function>
snd_dma_pci_data(pci)
</function>
...
...
include/sound/core.h
浏览文件 @
759ee81b
...
...
@@ -42,9 +42,6 @@
#ifdef CONFIG_PCI
struct
pci_dev
;
#endif
#ifdef CONFIG_SBUS
struct
sbus_dev
;
#endif
/* device allocation stuff */
...
...
include/sound/memalloc.h
浏览文件 @
759ee81b
...
...
@@ -37,7 +37,6 @@ struct snd_dma_device {
#ifndef snd_dma_pci_data
#define snd_dma_pci_data(pci) (&(pci)->dev)
#define snd_dma_isa_data() NULL
#define snd_dma_sbus_data(sbus) ((struct device *)(sbus))
#define snd_dma_continuous_data(x) ((struct device *)(unsigned long)(x))
#endif
...
...
@@ -49,7 +48,6 @@ struct snd_dma_device {
#define SNDRV_DMA_TYPE_CONTINUOUS 1
/* continuous no-DMA memory */
#define SNDRV_DMA_TYPE_DEV 2
/* generic device continuous */
#define SNDRV_DMA_TYPE_DEV_SG 3
/* generic device SG-buffer */
#define SNDRV_DMA_TYPE_SBUS 4
/* SBUS continuous */
/*
* info for buffer allocation
...
...
sound/core/memalloc.c
浏览文件 @
759ee81b
...
...
@@ -33,9 +33,6 @@
#include <linux/moduleparam.h>
#include <linux/mutex.h>
#include <sound/memalloc.h>
#ifdef CONFIG_SBUS
#include <asm/sbus.h>
#endif
MODULE_AUTHOR
(
"Takashi Iwai <tiwai@suse.de>, Jaroslav Kysela <perex@perex.cz>"
);
...
...
@@ -180,41 +177,6 @@ static void snd_free_dev_pages(struct device *dev, size_t size, void *ptr,
}
#endif
/* CONFIG_HAS_DMA */
#ifdef CONFIG_SBUS
static
void
*
snd_malloc_sbus_pages
(
struct
device
*
dev
,
size_t
size
,
dma_addr_t
*
dma_addr
)
{
struct
sbus_dev
*
sdev
=
(
struct
sbus_dev
*
)
dev
;
int
pg
;
void
*
res
;
snd_assert
(
size
>
0
,
return
NULL
);
snd_assert
(
dma_addr
!=
NULL
,
return
NULL
);
pg
=
get_order
(
size
);
res
=
dma_alloc_coherent
(
&
sdev
->
ofdev
.
dev
,
PAGE_SIZE
*
(
1
<<
pg
),
dma_addr
,
GFP_ATOMIC
);
if
(
res
!=
NULL
)
inc_snd_pages
(
pg
);
return
res
;
}
static
void
snd_free_sbus_pages
(
struct
device
*
dev
,
size_t
size
,
void
*
ptr
,
dma_addr_t
dma_addr
)
{
struct
sbus_dev
*
sdev
=
(
struct
sbus_dev
*
)
dev
;
int
pg
;
if
(
ptr
==
NULL
)
return
;
pg
=
get_order
(
size
);
dec_snd_pages
(
pg
);
dma_free_coherent
(
&
sdev
->
ofdev
.
dev
,
PAGE_SIZE
*
(
1
<<
pg
),
ptr
,
dma_addr
);
}
#endif
/* CONFIG_SBUS */
/*
*
* ALSA generic memory management
...
...
@@ -249,11 +211,6 @@ int snd_dma_alloc_pages(int type, struct device *device, size_t size,
dmab
->
area
=
snd_malloc_pages
(
size
,
(
unsigned
long
)
device
);
dmab
->
addr
=
0
;
break
;
#ifdef CONFIG_SBUS
case
SNDRV_DMA_TYPE_SBUS
:
dmab
->
area
=
snd_malloc_sbus_pages
(
device
,
size
,
&
dmab
->
addr
);
break
;
#endif
#ifdef CONFIG_HAS_DMA
case
SNDRV_DMA_TYPE_DEV
:
dmab
->
area
=
snd_malloc_dev_pages
(
device
,
size
,
&
dmab
->
addr
);
...
...
@@ -322,11 +279,6 @@ void snd_dma_free_pages(struct snd_dma_buffer *dmab)
case
SNDRV_DMA_TYPE_CONTINUOUS
:
snd_free_pages
(
dmab
->
area
,
dmab
->
bytes
);
break
;
#ifdef CONFIG_SBUS
case
SNDRV_DMA_TYPE_SBUS
:
snd_free_sbus_pages
(
dmab
->
dev
.
dev
,
dmab
->
bytes
,
dmab
->
area
,
dmab
->
addr
);
break
;
#endif
#ifdef CONFIG_HAS_DMA
case
SNDRV_DMA_TYPE_DEV
:
snd_free_dev_pages
(
dmab
->
dev
.
dev
,
dmab
->
bytes
,
dmab
->
area
,
dmab
->
addr
);
...
...
@@ -433,7 +385,7 @@ static int snd_mem_proc_read(struct seq_file *seq, void *offset)
long
pages
=
snd_allocated_pages
>>
(
PAGE_SHIFT
-
12
);
struct
snd_mem_list
*
mem
;
int
devno
;
static
char
*
types
[]
=
{
"UNKNOWN"
,
"CONT"
,
"DEV"
,
"DEV-SG"
,
"SBUS"
};
static
char
*
types
[]
=
{
"UNKNOWN"
,
"CONT"
,
"DEV"
,
"DEV-SG"
};
mutex_lock
(
&
list_mutex
);
seq_printf
(
seq
,
"pages : %li bytes (%li pages per %likB)
\n
"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录