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
044eb16b
Commit
044eb16b
authored
Jul 31, 2003
by
Alan Cox
Committed by
Linus Torvalds
Jul 31, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] further OSS audio updates
parent
e88425b2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
17 deletions
+21
-17
sound/oss/ac97_codec.c
sound/oss/ac97_codec.c
+6
-4
sound/oss/cmpci.c
sound/oss/cmpci.c
+6
-4
sound/oss/dmasound/dmasound_core.c
sound/oss/dmasound/dmasound_core.c
+3
-2
sound/oss/hal2.c
sound/oss/hal2.c
+6
-6
sound/oss/harmony.c
sound/oss/harmony.c
+0
-1
No files found.
sound/oss/ac97_codec.c
View file @
044eb16b
...
@@ -513,8 +513,9 @@ static int ac97_mixer_ioctl(struct ac97_codec *codec, unsigned int cmd, unsigned
...
@@ -513,8 +513,9 @@ static int ac97_mixer_ioctl(struct ac97_codec *codec, unsigned int cmd, unsigned
if
(
cmd
==
SOUND_MIXER_INFO
)
{
if
(
cmd
==
SOUND_MIXER_INFO
)
{
mixer_info
info
;
mixer_info
info
;
strncpy
(
info
.
id
,
codec
->
name
,
sizeof
(
info
.
id
));
memset
(
&
info
,
0
,
sizeof
(
info
));
strncpy
(
info
.
name
,
codec
->
name
,
sizeof
(
info
.
name
));
strlcpy
(
info
.
id
,
codec
->
name
,
sizeof
(
info
.
id
));
strlcpy
(
info
.
name
,
codec
->
name
,
sizeof
(
info
.
name
));
info
.
modify_counter
=
codec
->
modcnt
;
info
.
modify_counter
=
codec
->
modcnt
;
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
return
-
EFAULT
;
return
-
EFAULT
;
...
@@ -522,8 +523,9 @@ static int ac97_mixer_ioctl(struct ac97_codec *codec, unsigned int cmd, unsigned
...
@@ -522,8 +523,9 @@ static int ac97_mixer_ioctl(struct ac97_codec *codec, unsigned int cmd, unsigned
}
}
if
(
cmd
==
SOUND_OLD_MIXER_INFO
)
{
if
(
cmd
==
SOUND_OLD_MIXER_INFO
)
{
_old_mixer_info
info
;
_old_mixer_info
info
;
strncpy
(
info
.
id
,
codec
->
name
,
sizeof
(
info
.
id
));
memset
(
&
info
,
0
,
sizeof
(
info
));
strncpy
(
info
.
name
,
codec
->
name
,
sizeof
(
info
.
name
));
strlcpy
(
info
.
id
,
codec
->
name
,
sizeof
(
info
.
id
));
strlcpy
(
info
.
name
,
codec
->
name
,
sizeof
(
info
.
name
));
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
return
-
EFAULT
;
return
-
EFAULT
;
return
0
;
return
0
;
...
...
sound/oss/cmpci.c
View file @
044eb16b
...
@@ -1272,8 +1272,9 @@ static int mixer_ioctl(struct cm_state *s, unsigned int cmd, unsigned long arg)
...
@@ -1272,8 +1272,9 @@ static int mixer_ioctl(struct cm_state *s, unsigned int cmd, unsigned long arg)
VALIDATE_STATE
(
s
);
VALIDATE_STATE
(
s
);
if
(
cmd
==
SOUND_MIXER_INFO
)
{
if
(
cmd
==
SOUND_MIXER_INFO
)
{
mixer_info
info
;
mixer_info
info
;
strncpy
(
info
.
id
,
"cmpci"
,
sizeof
(
info
.
id
));
memset
(
&
info
,
0
,
sizeof
(
info
));
strncpy
(
info
.
name
,
"C-Media PCI"
,
sizeof
(
info
.
name
));
strlcpy
(
info
.
id
,
"cmpci"
,
sizeof
(
info
.
id
));
strlcpy
(
info
.
name
,
"C-Media PCI"
,
sizeof
(
info
.
name
));
info
.
modify_counter
=
s
->
mix
.
modcnt
;
info
.
modify_counter
=
s
->
mix
.
modcnt
;
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
return
-
EFAULT
;
return
-
EFAULT
;
...
@@ -1281,8 +1282,9 @@ static int mixer_ioctl(struct cm_state *s, unsigned int cmd, unsigned long arg)
...
@@ -1281,8 +1282,9 @@ static int mixer_ioctl(struct cm_state *s, unsigned int cmd, unsigned long arg)
}
}
if
(
cmd
==
SOUND_OLD_MIXER_INFO
)
{
if
(
cmd
==
SOUND_OLD_MIXER_INFO
)
{
_old_mixer_info
info
;
_old_mixer_info
info
;
strncpy
(
info
.
id
,
"cmpci"
,
sizeof
(
info
.
id
));
memset
(
&
info
,
0
,
sizeof
(
info
));
strncpy
(
info
.
name
,
"C-Media cmpci"
,
sizeof
(
info
.
name
));
strlcpy
(
info
.
id
,
"cmpci"
,
sizeof
(
info
.
id
));
strlcpy
(
info
.
name
,
"C-Media cmpci"
,
sizeof
(
info
.
name
));
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
return
-
EFAULT
;
return
-
EFAULT
;
return
0
;
return
0
;
...
...
sound/oss/dmasound/dmasound_core.c
View file @
044eb16b
...
@@ -351,8 +351,9 @@ static int mixer_ioctl(struct inode *inode, struct file *file, u_int cmd,
...
@@ -351,8 +351,9 @@ static int mixer_ioctl(struct inode *inode, struct file *file, u_int cmd,
case
SOUND_MIXER_INFO
:
case
SOUND_MIXER_INFO
:
{
{
mixer_info
info
;
mixer_info
info
;
strncpy
(
info
.
id
,
dmasound
.
mach
.
name2
,
sizeof
(
info
.
id
));
memset
(
&
info
,
0
,
sizeof
(
info
));
strncpy
(
info
.
name
,
dmasound
.
mach
.
name2
,
sizeof
(
info
.
name
));
strlcpy
(
info
.
id
,
dmasound
.
mach
.
name2
,
sizeof
(
info
.
id
));
strlcpy
(
info
.
name
,
dmasound
.
mach
.
name2
,
sizeof
(
info
.
name
));
info
.
modify_counter
=
mixer
.
modify_counter
;
info
.
modify_counter
=
mixer
.
modify_counter
;
if
(
copy_to_user
((
int
*
)
arg
,
&
info
,
sizeof
(
info
)))
if
(
copy_to_user
((
int
*
)
arg
,
&
info
,
sizeof
(
info
)))
return
-
EFAULT
;
return
-
EFAULT
;
...
...
sound/oss/hal2.c
View file @
044eb16b
...
@@ -787,9 +787,9 @@ static int hal2_mixer_ioctl(hal2_card_t *hal2, unsigned int cmd,
...
@@ -787,9 +787,9 @@ static int hal2_mixer_ioctl(hal2_card_t *hal2, unsigned int cmd,
if
(
cmd
==
SOUND_MIXER_INFO
)
{
if
(
cmd
==
SOUND_MIXER_INFO
)
{
mixer_info
info
;
mixer_info
info
;
memset
(
&
info
,
0
,
sizeof
(
info
));
str
n
cpy
(
info
.
id
,
hal2str
,
sizeof
(
info
.
id
));
str
l
cpy
(
info
.
id
,
hal2str
,
sizeof
(
info
.
id
));
str
n
cpy
(
info
.
name
,
hal2str
,
sizeof
(
info
.
name
));
str
l
cpy
(
info
.
name
,
hal2str
,
sizeof
(
info
.
name
));
info
.
modify_counter
=
hal2
->
mixer
.
modcnt
;
info
.
modify_counter
=
hal2
->
mixer
.
modcnt
;
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
return
-
EFAULT
;
return
-
EFAULT
;
...
@@ -797,9 +797,9 @@ static int hal2_mixer_ioctl(hal2_card_t *hal2, unsigned int cmd,
...
@@ -797,9 +797,9 @@ static int hal2_mixer_ioctl(hal2_card_t *hal2, unsigned int cmd,
}
}
if
(
cmd
==
SOUND_OLD_MIXER_INFO
)
{
if
(
cmd
==
SOUND_OLD_MIXER_INFO
)
{
_old_mixer_info
info
;
_old_mixer_info
info
;
memset
(
&
info
,
0
,
sizeof
(
info
));
str
n
cpy
(
info
.
id
,
hal2str
,
sizeof
(
info
.
id
));
str
l
cpy
(
info
.
id
,
hal2str
,
sizeof
(
info
.
id
));
str
n
cpy
(
info
.
name
,
hal2str
,
sizeof
(
info
.
name
));
str
l
cpy
(
info
.
name
,
hal2str
,
sizeof
(
info
.
name
));
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
return
-
EFAULT
;
return
-
EFAULT
;
return
0
;
return
0
;
...
...
sound/oss/harmony.c
View file @
044eb16b
...
@@ -1296,7 +1296,6 @@ static void __exit cleanup_harmony(void)
...
@@ -1296,7 +1296,6 @@ static void __exit cleanup_harmony(void)
unregister_parisc_driver
(
&
harmony_driver
);
unregister_parisc_driver
(
&
harmony_driver
);
}
}
EXPORT_NO_SYMBOLS
;
MODULE_AUTHOR
(
"Alex DeVries <alex@linuxcare.com>"
);
MODULE_AUTHOR
(
"Alex DeVries <alex@linuxcare.com>"
);
MODULE_DESCRIPTION
(
"Harmony sound driver"
);
MODULE_DESCRIPTION
(
"Harmony sound driver"
);
...
...
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