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
8531bffd
Commit
8531bffd
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/msnd_pinnacle.c - convert cli to spinlocks
parent
01189cd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sound/oss/msnd_pinnacle.c
sound/oss/msnd_pinnacle.c
+5
-5
No files found.
sound/oss/msnd_pinnacle.c
View file @
8531bffd
...
...
@@ -645,7 +645,7 @@ static int mixer_ioctl(unsigned int cmd, unsigned long arg)
static
int
dev_ioctl
(
struct
inode
*
inode
,
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
int
minor
=
MINOR
(
inode
->
i_rdev
);
int
minor
=
minor
(
inode
->
i_rdev
);
if
(
cmd
==
OSS_GETVERSION
)
{
int
sound_version
=
SOUND_VERSION
;
...
...
@@ -757,7 +757,7 @@ static void set_default_audio_parameters(void)
static
int
dev_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
int
minor
=
MINOR
(
inode
->
i_rdev
);
int
minor
=
minor
(
inode
->
i_rdev
);
int
err
=
0
;
if
(
minor
==
dev
.
dsp_minor
)
{
...
...
@@ -792,7 +792,7 @@ static int dev_open(struct inode *inode, struct file *file)
static
int
dev_release
(
struct
inode
*
inode
,
struct
file
*
file
)
{
int
minor
=
MINOR
(
inode
->
i_rdev
);
int
minor
=
minor
(
inode
->
i_rdev
);
int
err
=
0
;
lock_kernel
();
...
...
@@ -982,7 +982,7 @@ static int dsp_write(const char *buf, size_t len)
static
ssize_t
dev_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
off
)
{
int
minor
=
MINOR
(
file
->
f_dentry
->
d_inode
->
i_rdev
);
int
minor
=
minor
(
file
->
f_dentry
->
d_inode
->
i_rdev
);
if
(
minor
==
dev
.
dsp_minor
)
return
dsp_read
(
buf
,
count
);
else
...
...
@@ -991,7 +991,7 @@ static ssize_t dev_read(struct file *file, char *buf, size_t count, loff_t *off)
static
ssize_t
dev_write
(
struct
file
*
file
,
const
char
*
buf
,
size_t
count
,
loff_t
*
off
)
{
int
minor
=
MINOR
(
file
->
f_dentry
->
d_inode
->
i_rdev
);
int
minor
=
minor
(
file
->
f_dentry
->
d_inode
->
i_rdev
);
if
(
minor
==
dev
.
dsp_minor
)
return
dsp_write
(
buf
,
count
);
else
...
...
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