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
d982d0b4
Commit
d982d0b4
authored
Sep 23, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sound/core/oss/mixer_oss.c: Use SIOC_{IN,OUT}
parent
a49f0709
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sound/core/oss/mixer_oss.c
sound/core/oss/mixer_oss.c
+2
-2
No files found.
sound/core/oss/mixer_oss.c
View file @
d982d0b4
...
@@ -341,14 +341,14 @@ static int snd_mixer_oss_ioctl1(snd_mixer_oss_file_t *fmixer, unsigned int cmd,
...
@@ -341,14 +341,14 @@ static int snd_mixer_oss_ioctl1(snd_mixer_oss_file_t *fmixer, unsigned int cmd,
return
put_user
(
tmp
,
(
int
*
)
arg
)
?
-
EFAULT
:
0
;
return
put_user
(
tmp
,
(
int
*
)
arg
)
?
-
EFAULT
:
0
;
}
}
}
}
if
(
cmd
&
IOC_IN
)
{
if
(
cmd
&
S
IOC_IN
)
{
if
(
get_user
(
tmp
,
(
int
*
)
arg
))
if
(
get_user
(
tmp
,
(
int
*
)
arg
))
return
-
EFAULT
;
return
-
EFAULT
;
tmp
=
snd_mixer_oss_set_volume
(
fmixer
,
cmd
&
0xff
,
tmp
);
tmp
=
snd_mixer_oss_set_volume
(
fmixer
,
cmd
&
0xff
,
tmp
);
if
(
tmp
<
0
)
if
(
tmp
<
0
)
return
tmp
;
return
tmp
;
return
put_user
(
tmp
,
(
int
*
)
arg
)
?
-
EFAULT
:
0
;
return
put_user
(
tmp
,
(
int
*
)
arg
)
?
-
EFAULT
:
0
;
}
else
if
(
cmd
&
IOC_OUT
)
{
}
else
if
(
cmd
&
S
IOC_OUT
)
{
tmp
=
snd_mixer_oss_get_volume
(
fmixer
,
cmd
&
0xff
);
tmp
=
snd_mixer_oss_get_volume
(
fmixer
,
cmd
&
0xff
);
if
(
tmp
<
0
)
if
(
tmp
<
0
)
return
tmp
;
return
tmp
;
...
...
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