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
Kirill Smelkov
linux
Commits
4cbc061a
Commit
4cbc061a
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/sonicvibes.c - convert cli to spinlocks
parent
db0abdb5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sound/oss/sonicvibes.c
sound/oss/sonicvibes.c
+3
-3
No files found.
sound/oss/sonicvibes.c
View file @
4cbc061a
...
...
@@ -1589,12 +1589,12 @@ static int sv_ioctl(struct inode *inode, struct file *file, unsigned int cmd, un
case
SNDCTL_DSP_RESET
:
if
(
file
->
f_mode
&
FMODE_WRITE
)
{
stop_dac
(
s
);
synchronize_irq
();
synchronize_irq
(
s
->
irq
);
s
->
dma_dac
.
swptr
=
s
->
dma_dac
.
hwptr
=
s
->
dma_dac
.
count
=
s
->
dma_dac
.
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
;
...
...
@@ -2683,7 +2683,7 @@ static void __devinit sv_remove(struct pci_dev *dev)
return
;
list_del
(
&
s
->
devs
);
outb
(
~
0
,
s
->
ioenh
+
SV_CODEC_INTMASK
);
/* disable ints */
synchronize_irq
();
synchronize_irq
(
s
->
irq
);
inb
(
s
->
ioenh
+
SV_CODEC_STATUS
);
/* ack interrupts */
wrindir
(
s
,
SV_CIENABLE
,
0
);
/* disable DMAA and DMAC */
/*outb(0, s->iodmaa + SV_DMA_RESET);*/
...
...
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