Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
eafd7e5e
提交
eafd7e5e
authored
12月 14, 2010
作者:
Giovanni Maruzzelli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
skypopen: tweaking the OSS audio driver
上级
1d668e25
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
110 行增加
和
126 行删除
+110
-126
Makefile
src/mod/endpoints/mod_skypopen/oss/Makefile
+3
-3
main.c
src/mod/endpoints/mod_skypopen/oss/main.c
+90
-100
skypopen.h
src/mod/endpoints/mod_skypopen/oss/skypopen.h
+17
-23
没有找到文件。
src/mod/endpoints/mod_skypopen/oss/Makefile
浏览文件 @
eafd7e5e
...
...
@@ -4,7 +4,7 @@
# Add your debugging flag (or not) to CFLAGS
ifeq
($(DEBUG),y)
DEBFLAGS
=
-O
-g
-DS
CULL
_DEBUG
# "-O" is needed to expand inlines
DEBFLAGS
=
-O
-g
-DS
KYPOPEN
_DEBUG
# "-O" is needed to expand inlines
else
DEBFLAGS
=
-O2
-Wall
endif
...
...
@@ -15,9 +15,9 @@ EXTRA_CFLAGS += -I$(LDDINC)
ifneq
($(KERNELRELEASE),)
# call from kernel build system
s
cull
-objs
:=
main.o
s
kypopen
-objs
:=
main.o
obj-m
:=
s
cull
.o
obj-m
:=
s
kypopen
.o
else
...
...
src/mod/endpoints/mod_skypopen/oss/main.c
浏览文件 @
eafd7e5e
差异被折叠。
点击展开。
src/mod/endpoints/mod_skypopen/oss/s
cull
.h
→
src/mod/endpoints/mod_skypopen/oss/s
kypopen
.h
浏览文件 @
eafd7e5e
/*
* s
cull
.h -- definitions for the char module
* s
kypopen
.h -- definitions for the char module
*
* Copyright (C) 2001 Alessandro Rubini and Jonathan Corbet
* Copyright (C) 2001 O'Reilly & Associates
...
...
@@ -12,55 +12,49 @@
* by O'Reilly & Associates. No warranty is attached;
* we cannot take responsibility for errors or fitness for use.
*
* $Id: s
cull
.h,v 1.15 2004/11/04 17:51:18 rubini Exp $
* $Id: s
kypopen
.h,v 1.15 2004/11/04 17:51:18 rubini Exp $
*/
#ifndef _S
CULL
_H_
#define _S
CULL
_H_
#ifndef _S
KYPOPEN
_H_
#define _S
KYPOPEN
_H_
#include <linux/ioctl.h>
/* needed for the _IOW etc stuff used later */
#ifndef S
CULL
_MAJOR
#define S
CULL
_MAJOR 14
/* dynamic major by default */
#ifndef S
KYPOPEN
_MAJOR
#define S
KYPOPEN
_MAJOR 14
/* dynamic major by default */
#endif
#ifndef S
CULL
_NR_DEVS
#define S
CULL_NR_DEVS 1
/* scull0 through scull
3 */
#ifndef S
KYPOPEN
_NR_DEVS
#define S
KYPOPEN_NR_DEVS 1
/* skypopen0 through skypopen
3 */
#endif
struct
s
cull
_dev
{
struct
s
kypopen
_dev
{
struct
cdev
cdev
;
/* Char device structure */
wait_queue_head_t
inq
;
/* read and write queues */
wait_queue_head_t
outq
;
/* read and write queues */
struct
timer_list
timer_inq
;
struct
timer_list
timer_outq
;
int
readable
;
int
writable
;
//unsigned long read_howmany;
//unsigned long write_howmany;
//unsigned long read_sleeped_acc;
//unsigned long write_sleeped_acc;
//double read_delay; /* how much delay last time */
//double write_delay; /* how much delay last time */
int
timer_inq_started
;
int
timer_outq_started
;
};
/*
* The different configurable parameters
*/
extern
int
s
cull
_major
;
/* main.c */
extern
int
s
cull
_nr_devs
;
extern
int
s
kypopen
_major
;
/* main.c */
extern
int
s
kypopen
_nr_devs
;
/*
* Prototypes for shared functions
*/
ssize_t
s
cull
_read
(
struct
file
*
filp
,
char
__user
*
buf
,
size_t
count
,
ssize_t
s
kypopen
_read
(
struct
file
*
filp
,
char
__user
*
buf
,
size_t
count
,
loff_t
*
f_pos
);
ssize_t
s
cull
_write
(
struct
file
*
filp
,
const
char
__user
*
buf
,
size_t
count
,
ssize_t
s
kypopen
_write
(
struct
file
*
filp
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
*
f_pos
);
int
s
cull
_ioctl
(
struct
inode
*
inode
,
struct
file
*
filp
,
int
s
kypopen
_ioctl
(
struct
inode
*
inode
,
struct
file
*
filp
,
unsigned
int
cmd
,
unsigned
long
arg
);
#endif
/* _S
CULL
_H_ */
#endif
/* _S
KYPOPEN
_H_ */
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论