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
64a39157
Commit
64a39157
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/ite8172.c - convert cli to spinlocks
parent
9781bbe6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sound/oss/ite8172.c
sound/oss/ite8172.c
+5
-5
No files found.
sound/oss/ite8172.c
View file @
64a39157
...
...
@@ -826,7 +826,7 @@ static void it8172_interrupt(int irq, void *dev_id, struct pt_regs *regs)
static
int
it8172_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
it8172_state
*
s
;
...
...
@@ -1196,13 +1196,13 @@ static int it8172_ioctl(struct inode *inode, struct file *file,
case
SNDCTL_DSP_RESET
:
if
(
file
->
f_mode
&
FMODE_WRITE
)
{
stop_dac
(
s
);
synchronize_irq
();
synchronize_irq
(
s
->
irq
);
s
->
dma_dac
.
count
=
s
->
dma_dac
.
total_bytes
=
0
;
s
->
dma_dac
.
nextIn
=
s
->
dma_dac
.
nextOut
=
s
->
dma_dac
.
rawbuf
;
}
if
(
file
->
f_mode
&
FMODE_READ
)
{
stop_adc
(
s
);
synchronize_irq
();
synchronize_irq
(
s
->
irq
);
s
->
dma_adc
.
count
=
s
->
dma_adc
.
total_bytes
=
0
;
s
->
dma_adc
.
nextIn
=
s
->
dma_adc
.
nextOut
=
s
->
dma_adc
.
rawbuf
;
}
...
...
@@ -1541,7 +1541,7 @@ static int it8172_ioctl(struct inode *inode, struct file *file,
static
int
it8172_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
int
minor
=
MINOR
(
inode
->
i_rdev
);
int
minor
=
minor
(
inode
->
i_rdev
);
DECLARE_WAITQUEUE
(
wait
,
current
);
unsigned
long
flags
;
struct
list_head
*
list
;
...
...
@@ -1911,7 +1911,7 @@ static void __devinit it8172_remove(struct pci_dev *dev)
if
(
s
->
ps
)
remove_proc_entry
(
IT8172_MODULE_NAME
,
NULL
);
#endif
/* IT8172_DEBUG */
synchronize_irq
();
synchronize_irq
(
s
->
irq
);
free_irq
(
s
->
irq
,
s
);
release_region
(
s
->
io
,
pci_resource_len
(
dev
,
0
));
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