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
a394e99d
Commit
a394e99d
authored
Nov 12, 2002
by
Andrew Morton
Committed by
Linus Torvalds
Nov 12, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] timers: sound/
Initialise dynamically allocated timers under sound/
parent
d58cd53d
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
0 deletions
+8
-0
sound/drivers/dummy.c
sound/drivers/dummy.c
+1
-0
sound/drivers/mpu401/mpu401_uart.c
sound/drivers/mpu401/mpu401_uart.c
+1
-0
sound/drivers/mtpav.c
sound/drivers/mtpav.c
+1
-0
sound/drivers/opl3/opl3_seq.c
sound/drivers/opl3/opl3_seq.c
+1
-0
sound/isa/sb/sb8_midi.c
sound/isa/sb/sb8_midi.c
+1
-0
sound/isa/wavefront/wavefront_midi.c
sound/isa/wavefront/wavefront_midi.c
+1
-0
sound/oss/trident.c
sound/oss/trident.c
+1
-0
sound/synth/emux/emux.c
sound/synth/emux/emux.c
+1
-0
No files found.
sound/drivers/dummy.c
View file @
a394e99d
...
@@ -314,6 +314,7 @@ static int snd_card_dummy_playback_open(snd_pcm_substream_t * substream)
...
@@ -314,6 +314,7 @@ static int snd_card_dummy_playback_open(snd_pcm_substream_t * substream)
snd_magic_kfree
(
dpcm
);
snd_magic_kfree
(
dpcm
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
init_timer
(
&
dpcm
->
timer
);
dpcm
->
timer
.
data
=
(
unsigned
long
)
dpcm
;
dpcm
->
timer
.
data
=
(
unsigned
long
)
dpcm
;
dpcm
->
timer
.
function
=
snd_card_dummy_pcm_timer_function
;
dpcm
->
timer
.
function
=
snd_card_dummy_pcm_timer_function
;
spin_lock_init
(
&
dpcm
->
lock
);
spin_lock_init
(
&
dpcm
->
lock
);
...
...
sound/drivers/mpu401/mpu401_uart.c
View file @
a394e99d
...
@@ -103,6 +103,7 @@ static void snd_mpu401_uart_add_timer (mpu401_t *mpu, int input)
...
@@ -103,6 +103,7 @@ static void snd_mpu401_uart_add_timer (mpu401_t *mpu, int input)
spin_lock_irqsave
(
&
mpu
->
timer_lock
,
flags
);
spin_lock_irqsave
(
&
mpu
->
timer_lock
,
flags
);
if
(
mpu
->
timer_invoked
==
0
)
{
if
(
mpu
->
timer_invoked
==
0
)
{
init_timer
(
&
mpu
->
timer
);
mpu
->
timer
.
data
=
(
unsigned
long
)
mpu
;
mpu
->
timer
.
data
=
(
unsigned
long
)
mpu
;
mpu
->
timer
.
function
=
snd_mpu401_uart_timer
;
mpu
->
timer
.
function
=
snd_mpu401_uart_timer
;
mpu
->
timer
.
expires
=
1
+
jiffies
;
mpu
->
timer
.
expires
=
1
+
jiffies
;
...
...
sound/drivers/mtpav.c
View file @
a394e99d
...
@@ -424,6 +424,7 @@ static void snd_mtpav_output_timer(unsigned long data)
...
@@ -424,6 +424,7 @@ static void snd_mtpav_output_timer(unsigned long data)
/* spinlock held! */
/* spinlock held! */
static
void
snd_mtpav_add_output_timer
(
mtpav_t
*
chip
)
static
void
snd_mtpav_add_output_timer
(
mtpav_t
*
chip
)
{
{
init_timer
(
&
chip
->
timer
);
chip
->
timer
.
function
=
snd_mtpav_output_timer
;
chip
->
timer
.
function
=
snd_mtpav_output_timer
;
chip
->
timer
.
data
=
(
unsigned
long
)
mtp_card
;
chip
->
timer
.
data
=
(
unsigned
long
)
mtp_card
;
chip
->
timer
.
expires
=
1
+
jiffies
;
chip
->
timer
.
expires
=
1
+
jiffies
;
...
...
sound/drivers/opl3/opl3_seq.c
View file @
a394e99d
...
@@ -267,6 +267,7 @@ static int snd_opl3_seq_new_device(snd_seq_device_t *dev)
...
@@ -267,6 +267,7 @@ static int snd_opl3_seq_new_device(snd_seq_device_t *dev)
/* setup system timer */
/* setup system timer */
memset
(
&
opl3
->
tlist
,
0
,
sizeof
(
opl3
->
tlist
));
memset
(
&
opl3
->
tlist
,
0
,
sizeof
(
opl3
->
tlist
));
init_timer
(
&
opl3
->
tlist
);
opl3
->
tlist
.
function
=
snd_opl3_timer_func
;
opl3
->
tlist
.
function
=
snd_opl3_timer_func
;
opl3
->
tlist
.
data
=
(
unsigned
long
)
opl3
;
opl3
->
tlist
.
data
=
(
unsigned
long
)
opl3
;
spin_lock_init
(
&
opl3
->
sys_timer_lock
);
spin_lock_init
(
&
opl3
->
sys_timer_lock
);
...
...
sound/isa/sb/sb8_midi.c
View file @
a394e99d
...
@@ -205,6 +205,7 @@ static void snd_sb8dsp_midi_output_trigger(snd_rawmidi_substream_t * substream,
...
@@ -205,6 +205,7 @@ static void snd_sb8dsp_midi_output_trigger(snd_rawmidi_substream_t * substream,
spin_lock_irqsave
(
&
chip
->
open_lock
,
flags
);
spin_lock_irqsave
(
&
chip
->
open_lock
,
flags
);
if
(
up
)
{
if
(
up
)
{
if
(
!
(
chip
->
open
&
SB_OPEN_MIDI_TRIGGER
))
{
if
(
!
(
chip
->
open
&
SB_OPEN_MIDI_TRIGGER
))
{
init_timer
(
&
chip
->
midi_timer
);
chip
->
midi_timer
.
function
=
snd_sb8dsp_midi_output_timer
;
chip
->
midi_timer
.
function
=
snd_sb8dsp_midi_output_timer
;
chip
->
midi_timer
.
data
=
(
unsigned
long
)
substream
;
chip
->
midi_timer
.
data
=
(
unsigned
long
)
substream
;
chip
->
midi_timer
.
expires
=
1
+
jiffies
;
chip
->
midi_timer
.
expires
=
1
+
jiffies
;
...
...
sound/isa/wavefront/wavefront_midi.c
View file @
a394e99d
...
@@ -377,6 +377,7 @@ static void snd_wavefront_midi_output_trigger(snd_rawmidi_substream_t * substrea
...
@@ -377,6 +377,7 @@ static void snd_wavefront_midi_output_trigger(snd_rawmidi_substream_t * substrea
if
(
up
)
{
if
(
up
)
{
if
((
midi
->
mode
[
mpu
]
&
MPU401_MODE_OUTPUT_TRIGGER
)
==
0
)
{
if
((
midi
->
mode
[
mpu
]
&
MPU401_MODE_OUTPUT_TRIGGER
)
==
0
)
{
if
(
!
midi
->
istimer
)
{
if
(
!
midi
->
istimer
)
{
init_timer
(
&
midi
->
timer
);
midi
->
timer
.
function
=
snd_wavefront_midi_output_timer
;
midi
->
timer
.
function
=
snd_wavefront_midi_output_timer
;
midi
->
timer
.
data
=
(
unsigned
long
)
substream
->
rmidi
->
card
->
private_data
;
midi
->
timer
.
data
=
(
unsigned
long
)
substream
->
rmidi
->
card
->
private_data
;
midi
->
timer
.
expires
=
1
+
jiffies
;
midi
->
timer
.
expires
=
1
+
jiffies
;
...
...
sound/oss/trident.c
View file @
a394e99d
...
@@ -4148,6 +4148,7 @@ static int __init trident_probe(struct pci_dev *pci_dev, const struct pci_device
...
@@ -4148,6 +4148,7 @@ static int __init trident_probe(struct pci_dev *pci_dev, const struct pci_device
}
}
memset
(
card
,
0
,
sizeof
(
*
card
));
memset
(
card
,
0
,
sizeof
(
*
card
));
init_timer
(
&
card
->
timer
);
card
->
iobase
=
iobase
;
card
->
iobase
=
iobase
;
card
->
pci_dev
=
pci_dev
;
card
->
pci_dev
=
pci_dev
;
card
->
pci_id
=
pci_id
->
device
;
card
->
pci_id
=
pci_id
->
device
;
...
...
sound/synth/emux/emux.c
View file @
a394e99d
...
@@ -53,6 +53,7 @@ int snd_emux_new(snd_emux_t **remu)
...
@@ -53,6 +53,7 @@ int snd_emux_new(snd_emux_t **remu)
emu
->
max_voices
=
0
;
emu
->
max_voices
=
0
;
emu
->
use_time
=
0
;
emu
->
use_time
=
0
;
init_timer
(
&
emu
->
tlist
);
emu
->
tlist
.
function
=
snd_emux_timer_callback
;
emu
->
tlist
.
function
=
snd_emux_timer_callback
;
emu
->
tlist
.
data
=
(
unsigned
long
)
emu
;
emu
->
tlist
.
data
=
(
unsigned
long
)
emu
;
emu
->
timer_active
=
0
;
emu
->
timer_active
=
0
;
...
...
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