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
01189cd5
Commit
01189cd5
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/es1370.c - convert cli to spinlocks
parent
64a39157
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sound/oss/es1370.c
sound/oss/es1370.c
+5
-5
No files found.
sound/oss/es1370.c
View file @
01189cd5
...
...
@@ -1406,12 +1406,12 @@ static int es1370_ioctl(struct inode *inode, struct file *file, unsigned int cmd
case
SNDCTL_DSP_RESET
:
if
(
file
->
f_mode
&
FMODE_WRITE
)
{
stop_dac2
(
s
);
synchronize_irq
();
synchronize_irq
(
s
->
irq
);
s
->
dma_dac2
.
swptr
=
s
->
dma_dac2
.
hwptr
=
s
->
dma_dac2
.
count
=
s
->
dma_dac2
.
total_bytes
=
0
;
}
if
(
file
->
f_mode
&
FMODE_READ
)
{
stop_adc
(
s
);
synchronize_irq
();
synchronize_irq
(
s
->
irq
);
s
->
dma_adc
.
swptr
=
s
->
dma_adc
.
hwptr
=
s
->
dma_adc
.
count
=
s
->
dma_adc
.
total_bytes
=
0
;
}
return
0
;
...
...
@@ -1798,7 +1798,7 @@ static int es1370_release(struct inode *inode, struct file *file)
down
(
&
s
->
open_sem
);
if
(
file
->
f_mode
&
FMODE_WRITE
)
{
stop_dac2
(
s
);
synchronize_irq
();
synchronize_irq
(
s
->
irq
);
dealloc_dmabuf
(
s
,
&
s
->
dma_dac2
);
}
if
(
file
->
f_mode
&
FMODE_READ
)
{
...
...
@@ -1976,7 +1976,7 @@ static int es1370_ioctl_dac(struct inode *inode, struct file *file, unsigned int
case
SNDCTL_DSP_RESET
:
stop_dac1
(
s
);
synchronize_irq
();
synchronize_irq
(
s
->
irq
);
s
->
dma_dac1
.
swptr
=
s
->
dma_dac1
.
hwptr
=
s
->
dma_dac1
.
count
=
s
->
dma_dac1
.
total_bytes
=
0
;
return
0
;
...
...
@@ -2704,7 +2704,7 @@ static void __devinit es1370_remove(struct pci_dev *dev)
list_del
(
&
s
->
devs
);
outl
(
CTRL_SERR_DIS
|
(
1
<<
CTRL_SH_WTSRSEL
),
s
->
io
+
ES1370_REG_CONTROL
);
/* switch everything off */
outl
(
0
,
s
->
io
+
ES1370_REG_SERIAL_CONTROL
);
/* clear serial interrupts */
synchronize_irq
();
synchronize_irq
(
s
->
irq
);
free_irq
(
s
->
irq
,
s
);
if
(
s
->
gameport
.
io
)
{
gameport_unregister_port
(
&
s
->
gameport
);
...
...
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