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
a74ebe7f
Commit
a74ebe7f
authored
Aug 30, 2002
by
Peter Wächtler
Committed by
Linus Torvalds
Aug 30, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] oss/nec_vrc5477.c - convert cli to spinlocks
parent
6cadcfe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sound/oss/nec_vrc5477.c
sound/oss/nec_vrc5477.c
+5
-5
No files found.
sound/oss/nec_vrc5477.c
View file @
a74ebe7f
...
@@ -807,7 +807,7 @@ static void vrc5477_ac97_interrupt(int irq, void *dev_id, struct pt_regs *regs)
...
@@ -807,7 +807,7 @@ static void vrc5477_ac97_interrupt(int irq, void *dev_id, struct pt_regs *regs)
static
int
vrc5477_ac97_open_mixdev
(
struct
inode
*
inode
,
struct
file
*
file
)
static
int
vrc5477_ac97_open_mixdev
(
struct
inode
*
inode
,
struct
file
*
file
)
{
{
int
minor
=
MINOR
(
inode
->
i_rdev
);
int
minor
=
minor
(
inode
->
i_rdev
);
struct
list_head
*
list
;
struct
list_head
*
list
;
struct
vrc5477_ac97_state
*
s
;
struct
vrc5477_ac97_state
*
s
;
...
@@ -1331,13 +1331,13 @@ static int vrc5477_ac97_ioctl(struct inode *inode, struct file *file,
...
@@ -1331,13 +1331,13 @@ static int vrc5477_ac97_ioctl(struct inode *inode, struct file *file,
case
SNDCTL_DSP_RESET
:
case
SNDCTL_DSP_RESET
:
if
(
file
->
f_mode
&
FMODE_WRITE
)
{
if
(
file
->
f_mode
&
FMODE_WRITE
)
{
stop_dac
(
s
);
stop_dac
(
s
);
synchronize_irq
();
synchronize_irq
(
s
->
irq
);
s
->
dma_dac
.
count
=
0
;
s
->
dma_dac
.
count
=
0
;
s
->
dma_dac
.
nextIn
=
s
->
dma_dac
.
nextOut
=
0
;
s
->
dma_dac
.
nextIn
=
s
->
dma_dac
.
nextOut
=
0
;
}
}
if
(
file
->
f_mode
&
FMODE_READ
)
{
if
(
file
->
f_mode
&
FMODE_READ
)
{
stop_adc
(
s
);
stop_adc
(
s
);
synchronize_irq
();
synchronize_irq
(
s
->
irq
);
s
->
dma_adc
.
count
=
0
;
s
->
dma_adc
.
count
=
0
;
s
->
dma_adc
.
nextIn
=
s
->
dma_adc
.
nextOut
=
0
;
s
->
dma_adc
.
nextIn
=
s
->
dma_adc
.
nextOut
=
0
;
}
}
...
@@ -1523,7 +1523,7 @@ static int vrc5477_ac97_ioctl(struct inode *inode, struct file *file,
...
@@ -1523,7 +1523,7 @@ static int vrc5477_ac97_ioctl(struct inode *inode, struct file *file,
static
int
vrc5477_ac97_open
(
struct
inode
*
inode
,
struct
file
*
file
)
static
int
vrc5477_ac97_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
{
int
minor
=
MINOR
(
inode
->
i_rdev
);
int
minor
=
minor
(
inode
->
i_rdev
);
DECLARE_WAITQUEUE
(
wait
,
current
);
DECLARE_WAITQUEUE
(
wait
,
current
);
unsigned
long
flags
;
unsigned
long
flags
;
struct
list_head
*
list
;
struct
list_head
*
list
;
...
@@ -1993,7 +1993,7 @@ static void __devinit vrc5477_ac97_remove(struct pci_dev *dev)
...
@@ -1993,7 +1993,7 @@ static void __devinit vrc5477_ac97_remove(struct pci_dev *dev)
if
(
s
->
ps
)
if
(
s
->
ps
)
remove_proc_entry
(
VRC5477_AC97_MODULE_NAME
,
NULL
);
remove_proc_entry
(
VRC5477_AC97_MODULE_NAME
,
NULL
);
#endif
/* CONFIG_LL_DEBUG */
#endif
/* CONFIG_LL_DEBUG */
synchronize_irq
();
synchronize_irq
(
s
->
irq
);
free_irq
(
s
->
irq
,
s
);
free_irq
(
s
->
irq
,
s
);
release_region
(
s
->
io
,
pci_resource_len
(
dev
,
0
));
release_region
(
s
->
io
,
pci_resource_len
(
dev
,
0
));
unregister_sound_dsp
(
s
->
dev_audio
);
unregister_sound_dsp
(
s
->
dev_audio
);
...
...
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