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
c93c0f1e
Commit
c93c0f1e
authored
Nov 04, 2002
by
Andrew Morton
Committed by
Linus Torvalds
Nov 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] initialise timers in sound/
The result of a timer audit in sound/*
parent
ecb0c4f5
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
11 additions
and
11 deletions
+11
-11
sound/core/timer.c
sound/core/timer.c
+1
-0
sound/drivers/dummy.c
sound/drivers/dummy.c
+1
-0
sound/drivers/mtpav.c
sound/drivers/mtpav.c
+1
-0
sound/drivers/serial-u16550.c
sound/drivers/serial-u16550.c
+1
-0
sound/oss/dmasound/dmasound_awacs.c
sound/oss/dmasound/dmasound_awacs.c
+1
-2
sound/oss/midibuf.c
sound/oss/midibuf.c
+1
-3
sound/oss/soundcard.c
sound/oss/soundcard.c
+1
-1
sound/oss/sys_timer.c
sound/oss/sys_timer.c
+1
-2
sound/oss/uart6850.c
sound/oss/uart6850.c
+2
-3
sound/pci/rme9652/hdsp.c
sound/pci/rme9652/hdsp.c
+1
-0
No files found.
sound/core/timer.c
View file @
c93c0f1e
...
...
@@ -849,6 +849,7 @@ static int snd_timer_register_system(void)
snd_timer_free
(
timer
);
return
-
ENOMEM
;
}
init_timer
(
tlist
);
tlist
->
function
=
snd_timer_s_function
;
tlist
->
data
=
(
unsigned
long
)
timer
;
timer
->
private_data
=
tlist
;
...
...
sound/drivers/dummy.c
View file @
c93c0f1e
...
...
@@ -343,6 +343,7 @@ static int snd_card_dummy_capture_open(snd_pcm_substream_t * substream)
return
-
ENOMEM
;
}
memset
(
runtime
->
dma_area
,
0
,
runtime
->
dma_bytes
);
init_timer
(
&
dpcm
->
timer
);
dpcm
->
timer
.
data
=
(
unsigned
long
)
dpcm
;
dpcm
->
timer
.
function
=
snd_card_dummy_pcm_timer_function
;
spin_lock_init
(
&
dpcm
->
lock
);
...
...
sound/drivers/mtpav.c
View file @
c93c0f1e
...
...
@@ -683,6 +683,7 @@ static mtpav_t *new_mtpav(void)
if
(
ncrd
!=
NULL
)
{
spin_lock_init
(
&
ncrd
->
spinlock
);
init_timer
(
&
ncrd
->
timer
);
ncrd
->
card
=
NULL
;
ncrd
->
irq
=
-
1
;
ncrd
->
share_irq
=
0
;
...
...
sound/drivers/serial-u16550.c
View file @
c93c0f1e
...
...
@@ -785,6 +785,7 @@ static int __init snd_uart16550_create(snd_card_t * card,
uart
->
prev_in
=
0
;
uart
->
rstatus
=
0
;
memset
(
uart
->
prev_status
,
0x80
,
sizeof
(
unsigned
char
)
*
SNDRV_SERIAL_MAX_OUTS
);
init_timer
(
&
uart
->
buffer_timer
);
uart
->
buffer_timer
.
function
=
snd_uart16550_buffer_timer
;
uart
->
buffer_timer
.
data
=
(
unsigned
long
)
uart
;
uart
->
timer_running
=
0
;
...
...
sound/oss/dmasound/dmasound_awacs.c
View file @
c93c0f1e
...
...
@@ -1155,8 +1155,7 @@ static void awacs_nosound(unsigned long xx)
spin_unlock_irqrestore
(
&
dmasound
.
lock
,
flags
);
}
static
struct
timer_list
beep_timer
=
{
function:
awacs_nosound
static
struct
timer_list
beep_timer
=
TIMER_INITIALIZER
(
awacs_nosound
,
0
,
0
);
}
;
/* we generate the beep with a single dbdma command that loops a buffer
...
...
sound/oss/midibuf.c
View file @
c93c0f1e
...
...
@@ -50,9 +50,7 @@ static struct midi_parms parms[MAX_MIDI_DEV];
static
void
midi_poll
(
unsigned
long
dummy
);
static
struct
timer_list
poll_timer
=
{
function:
midi_poll
};
static
struct
timer_list
poll_timer
=
TIMER_INITIALIZER
(
midi_poll
,
0
,
0
);
static
volatile
int
open_devs
=
0
;
static
spinlock_t
lock
=
SPIN_LOCK_UNLOCKED
;
...
...
sound/oss/soundcard.c
View file @
c93c0f1e
...
...
@@ -697,7 +697,7 @@ static void do_sequencer_timer(unsigned long dummy)
static
struct
timer_list
seq_timer
=
{
function
:
do_sequencer_timer
}
;
TIMER_INITIALIZER
(
do_sequencer_timer
,
0
,
0
)
;
void
request_sound_timer
(
int
count
)
{
...
...
sound/oss/sys_timer.c
View file @
c93c0f1e
...
...
@@ -29,8 +29,7 @@ static unsigned long prev_event_time;
static
void
poll_def_tmr
(
unsigned
long
dummy
);
static
spinlock_t
lock
=
SPIN_LOCK_UNLOCKED
;
static
struct
timer_list
def_tmr
=
{
function
:
poll_def_tmr
};
static
struct
timer_list
def_tmr
=
TIMER_INITIALIZER
(
poll_def_tmr
,
0
,
0
);
static
unsigned
long
tmr2ticks
(
int
tmr_value
)
...
...
sound/oss/uart6850.c
View file @
c93c0f1e
...
...
@@ -77,9 +77,8 @@ static void (*midi_input_intr) (int dev, unsigned char data);
static
void
poll_uart6850
(
unsigned
long
dummy
);
static
struct
timer_list
uart6850_timer
=
{
function:
poll_uart6850
};
static
struct
timer_list
uart6850_timer
=
TIMER_INITIALIZER
(
poll_uart6850
,
0
,
0
);
static
void
uart6850_input_loop
(
void
)
{
...
...
sound/pci/rme9652/hdsp.c
View file @
c93c0f1e
...
...
@@ -949,6 +949,7 @@ static void snd_hdsp_midi_output_trigger(snd_rawmidi_substream_t * substream, in
spin_lock_irqsave
(
&
hmidi
->
lock
,
flags
);
if
(
up
)
{
if
(
!
hmidi
->
istimer
)
{
init_timer
(
&
hmidi
->
timer
);
hmidi
->
timer
.
function
=
snd_hdsp_midi_output_timer
;
hmidi
->
timer
.
data
=
(
unsigned
long
)
hmidi
;
hmidi
->
timer
.
expires
=
1
+
jiffies
;
...
...
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