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
ebf09724
Commit
ebf09724
authored
Jul 17, 2003
by
Alan Cox
Committed by
Linus Torvalds
Jul 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] illegal->invalid for dmasound
parent
e5ab7589
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
sound/oss/dmasound/dmasound_core.c
sound/oss/dmasound/dmasound_core.c
+7
-7
No files found.
sound/oss/dmasound/dmasound_core.c
View file @
ebf09724
...
...
@@ -1660,13 +1660,13 @@ static int __init dmasound_setup(char *str)
#ifdef HAS_RECORD
case
5
:
if
((
ints
[
5
]
<
0
)
||
(
ints
[
5
]
>
MAX_CATCH_RADIUS
))
printk
(
"dmasound_setup: i
llegal
catch radius, using default = %d
\n
"
,
catchRadius
);
printk
(
"dmasound_setup: i
nvalid
catch radius, using default = %d
\n
"
,
catchRadius
);
else
catchRadius
=
ints
[
5
];
/* fall through */
case
4
:
if
(
ints
[
4
]
<
MIN_BUFFERS
)
printk
(
"dmasound_setup: i
llegal
number of read buffers, using default = %d
\n
"
,
printk
(
"dmasound_setup: i
nvalid
number of read buffers, using default = %d
\n
"
,
numReadBufs
);
else
numReadBufs
=
ints
[
4
];
...
...
@@ -1675,21 +1675,21 @@ static int __init dmasound_setup(char *str)
if
((
size
=
ints
[
3
])
<
256
)
/* check for small buffer specs */
size
<<=
10
;
if
(
size
<
MIN_BUFSIZE
||
size
>
MAX_BUFSIZE
)
printk
(
"dmasound_setup: i
llegal
read buffer size, using default = %d
\n
"
,
readBufSize
);
printk
(
"dmasound_setup: i
nvalid
read buffer size, using default = %d
\n
"
,
readBufSize
);
else
readBufSize
=
size
;
/* fall through */
#else
case
3
:
if
((
ints
[
3
]
<
0
)
||
(
ints
[
3
]
>
MAX_CATCH_RADIUS
))
printk
(
"dmasound_setup: i
llegal
catch radius, using default = %d
\n
"
,
catchRadius
);
printk
(
"dmasound_setup: i
nvalid
catch radius, using default = %d
\n
"
,
catchRadius
);
else
catchRadius
=
ints
[
3
];
/* fall through */
#endif
case
2
:
if
(
ints
[
1
]
<
MIN_BUFFERS
)
printk
(
"dmasound_setup: i
llegal
number of buffers, using default = %d
\n
"
,
numWriteBufs
);
printk
(
"dmasound_setup: i
nvalid
number of buffers, using default = %d
\n
"
,
numWriteBufs
);
else
numWriteBufs
=
ints
[
1
];
/* fall through */
...
...
@@ -1697,13 +1697,13 @@ static int __init dmasound_setup(char *str)
if
((
size
=
ints
[
2
])
<
256
)
/* check for small buffer specs */
size
<<=
10
;
if
(
size
<
MIN_BUFSIZE
||
size
>
MAX_BUFSIZE
)
printk
(
"dmasound_setup: i
llegal
write buffer size, using default = %d
\n
"
,
writeBufSize
);
printk
(
"dmasound_setup: i
nvalid
write buffer size, using default = %d
\n
"
,
writeBufSize
);
else
writeBufSize
=
size
;
case
0
:
break
;
default:
printk
(
"dmasound_setup: i
llegal
number of arguments
\n
"
);
printk
(
"dmasound_setup: i
nvalid
number of arguments
\n
"
);
return
0
;
}
return
1
;
...
...
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