Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
0fff631b
Commit
0fff631b
authored
Jun 03, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jun 03, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: sound/isa/gus annotation
GUS annotated.
parent
9d7a2c2d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
20 deletions
+20
-20
include/sound/gus.h
include/sound/gus.h
+8
-8
sound/isa/gus/gus_dram.c
sound/isa/gus/gus_dram.c
+4
-4
sound/isa/gus/gus_instr.c
sound/isa/gus/gus_instr.c
+6
-6
sound/isa/gus/gus_mem_proc.c
sound/isa/gus/gus_mem_proc.c
+1
-1
sound/isa/gus/gus_pcm.c
sound/isa/gus/gus_pcm.c
+1
-1
No files found.
include/sound/gus.h
View file @
0fff631b
...
...
@@ -684,9 +684,9 @@ extern int snd_engine_instrument_register_ask(unsigned short mode);
#endif
/* gus_dram.c */
int
snd_gus_dram_write
(
snd_gus_card_t
*
gus
,
char
*
ptr
,
int
snd_gus_dram_write
(
snd_gus_card_t
*
gus
,
char
__user
*
ptr
,
unsigned
int
addr
,
unsigned
int
size
);
int
snd_gus_dram_read
(
snd_gus_card_t
*
gus
,
char
*
ptr
,
int
snd_gus_dram_read
(
snd_gus_card_t
*
gus
,
char
__user
*
ptr
,
unsigned
int
addr
,
unsigned
int
size
,
int
rom
);
#if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE)
...
...
@@ -699,21 +699,21 @@ void snd_gf1_simple_init(snd_gus_voice_t *voice);
/* gus_instr.c */
int
snd_gus_iwffff_put_sample
(
void
*
private_data
,
iwffff_wave_t
*
wave
,
char
*
data
,
long
len
,
int
atomic
);
char
__user
*
data
,
long
len
,
int
atomic
);
int
snd_gus_iwffff_get_sample
(
void
*
private_data
,
iwffff_wave_t
*
wave
,
char
*
data
,
long
len
,
int
atomic
);
char
__user
*
data
,
long
len
,
int
atomic
);
int
snd_gus_iwffff_remove_sample
(
void
*
private_data
,
iwffff_wave_t
*
wave
,
int
atomic
);
int
snd_gus_gf1_put_sample
(
void
*
private_data
,
gf1_wave_t
*
wave
,
char
*
data
,
long
len
,
int
atomic
);
char
__user
*
data
,
long
len
,
int
atomic
);
int
snd_gus_gf1_get_sample
(
void
*
private_data
,
gf1_wave_t
*
wave
,
char
*
data
,
long
len
,
int
atomic
);
char
__user
*
data
,
long
len
,
int
atomic
);
int
snd_gus_gf1_remove_sample
(
void
*
private_data
,
gf1_wave_t
*
wave
,
int
atomic
);
int
snd_gus_simple_put_sample
(
void
*
private_data
,
simple_instrument_t
*
instr
,
char
*
data
,
long
len
,
int
atomic
);
char
__user
*
data
,
long
len
,
int
atomic
);
int
snd_gus_simple_get_sample
(
void
*
private_data
,
simple_instrument_t
*
instr
,
char
*
data
,
long
len
,
int
atomic
);
char
__user
*
data
,
long
len
,
int
atomic
);
int
snd_gus_simple_remove_sample
(
void
*
private_data
,
simple_instrument_t
*
instr
,
int
atomic
);
...
...
sound/isa/gus/gus_dram.c
View file @
0fff631b
...
...
@@ -26,7 +26,7 @@
#include <sound/info.h>
static
int
snd_gus_dram_poke
(
snd_gus_card_t
*
gus
,
char
*
_buffer
,
static
int
snd_gus_dram_poke
(
snd_gus_card_t
*
gus
,
char
__user
*
_buffer
,
unsigned
int
address
,
unsigned
int
size
)
{
unsigned
long
flags
;
...
...
@@ -57,13 +57,13 @@ static int snd_gus_dram_poke(snd_gus_card_t *gus, char *_buffer,
}
int
snd_gus_dram_write
(
snd_gus_card_t
*
gus
,
char
*
buffer
,
int
snd_gus_dram_write
(
snd_gus_card_t
*
gus
,
char
__user
*
buffer
,
unsigned
int
address
,
unsigned
int
size
)
{
return
snd_gus_dram_poke
(
gus
,
buffer
,
address
,
size
);
}
static
int
snd_gus_dram_peek
(
snd_gus_card_t
*
gus
,
char
*
_buffer
,
static
int
snd_gus_dram_peek
(
snd_gus_card_t
*
gus
,
char
__user
*
_buffer
,
unsigned
int
address
,
unsigned
int
size
,
int
rom
)
{
...
...
@@ -95,7 +95,7 @@ static int snd_gus_dram_peek(snd_gus_card_t *gus, char *_buffer,
return
0
;
}
int
snd_gus_dram_read
(
snd_gus_card_t
*
gus
,
char
*
buffer
,
int
snd_gus_dram_read
(
snd_gus_card_t
*
gus
,
char
__user
*
buffer
,
unsigned
int
address
,
unsigned
int
size
,
int
rom
)
{
...
...
sound/isa/gus/gus_instr.c
View file @
0fff631b
...
...
@@ -29,7 +29,7 @@
*/
int
snd_gus_iwffff_put_sample
(
void
*
private_data
,
iwffff_wave_t
*
wave
,
char
*
data
,
long
len
,
int
atomic
)
char
__user
*
data
,
long
len
,
int
atomic
)
{
snd_gus_card_t
*
gus
=
snd_magic_cast
(
snd_gus_card_t
,
private_data
,
return
-
ENXIO
);
snd_gf1_mem_block_t
*
block
;
...
...
@@ -59,7 +59,7 @@ int snd_gus_iwffff_put_sample(void *private_data, iwffff_wave_t *wave,
}
int
snd_gus_iwffff_get_sample
(
void
*
private_data
,
iwffff_wave_t
*
wave
,
char
*
data
,
long
len
,
int
atomic
)
char
__user
*
data
,
long
len
,
int
atomic
)
{
snd_gus_card_t
*
gus
=
snd_magic_cast
(
snd_gus_card_t
,
private_data
,
return
-
ENXIO
);
...
...
@@ -82,7 +82,7 @@ int snd_gus_iwffff_remove_sample(void *private_data, iwffff_wave_t *wave,
*/
int
snd_gus_gf1_put_sample
(
void
*
private_data
,
gf1_wave_t
*
wave
,
char
*
data
,
long
len
,
int
atomic
)
char
__user
*
data
,
long
len
,
int
atomic
)
{
snd_gus_card_t
*
gus
=
snd_magic_cast
(
snd_gus_card_t
,
private_data
,
return
-
ENXIO
);
snd_gf1_mem_block_t
*
block
;
...
...
@@ -110,7 +110,7 @@ int snd_gus_gf1_put_sample(void *private_data, gf1_wave_t *wave,
}
int
snd_gus_gf1_get_sample
(
void
*
private_data
,
gf1_wave_t
*
wave
,
char
*
data
,
long
len
,
int
atomic
)
char
__user
*
data
,
long
len
,
int
atomic
)
{
snd_gus_card_t
*
gus
=
snd_magic_cast
(
snd_gus_card_t
,
private_data
,
return
-
ENXIO
);
...
...
@@ -130,7 +130,7 @@ int snd_gus_gf1_remove_sample(void *private_data, gf1_wave_t *wave,
*/
int
snd_gus_simple_put_sample
(
void
*
private_data
,
simple_instrument_t
*
instr
,
char
*
data
,
long
len
,
int
atomic
)
char
__user
*
data
,
long
len
,
int
atomic
)
{
snd_gus_card_t
*
gus
=
snd_magic_cast
(
snd_gus_card_t
,
private_data
,
return
-
ENXIO
);
snd_gf1_mem_block_t
*
block
;
...
...
@@ -157,7 +157,7 @@ int snd_gus_simple_put_sample(void *private_data, simple_instrument_t *instr,
}
int
snd_gus_simple_get_sample
(
void
*
private_data
,
simple_instrument_t
*
instr
,
char
*
data
,
long
len
,
int
atomic
)
char
__user
*
data
,
long
len
,
int
atomic
)
{
snd_gus_card_t
*
gus
=
snd_magic_cast
(
snd_gus_card_t
,
private_data
,
return
-
ENXIO
);
...
...
sound/isa/gus/gus_mem_proc.c
View file @
0fff631b
...
...
@@ -33,7 +33,7 @@ typedef struct gus_proc_private {
}
gus_proc_private_t
;
static
long
snd_gf1_mem_proc_dump
(
snd_info_entry_t
*
entry
,
void
*
file_private_data
,
struct
file
*
file
,
char
*
buf
,
long
count
)
struct
file
*
file
,
char
__user
*
buf
,
long
count
)
{
long
size
;
gus_proc_private_t
*
priv
=
snd_magic_cast
(
gus_proc_private_t
,
entry
->
private_data
,
return
-
ENXIO
);
...
...
sound/isa/gus/gus_pcm.c
View file @
0fff631b
...
...
@@ -346,7 +346,7 @@ static int snd_gf1_pcm_poke_block(snd_gus_card_t *gus, unsigned char *buf,
static
int
snd_gf1_pcm_playback_copy
(
snd_pcm_substream_t
*
substream
,
int
voice
,
snd_pcm_uframes_t
pos
,
void
*
src
,
void
__user
*
src
,
snd_pcm_uframes_t
count
)
{
snd_pcm_runtime_t
*
runtime
=
substream
->
runtime
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment