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
8086afae
Commit
8086afae
authored
Oct 14, 2002
by
Jaroslav Kysela
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA update
- compilation fixes without CONFIG_PROC_FS
parent
f96f11d2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
sound/core/oss/mixer_oss.c
sound/core/oss/mixer_oss.c
+4
-0
sound/core/oss/pcm_oss.c
sound/core/oss/pcm_oss.c
+4
-0
sound/core/pcm_native.c
sound/core/pcm_native.c
+3
-3
sound/core/seq/oss/seq_oss_synth.c
sound/core/seq/oss/seq_oss_synth.c
+4
-0
No files found.
sound/core/oss/mixer_oss.c
View file @
8086afae
...
...
@@ -1176,9 +1176,11 @@ static int snd_mixer_oss_notify_handler(snd_card_t * card, int free_flag)
mixer
->
name
[
sizeof
(
mixer
->
name
)
-
1
]
=
0
;
}
else
strcpy
(
mixer
->
name
,
name
);
#ifdef SNDRV_OSS_INFO_DEV_MIXERS
snd_oss_info_register
(
SNDRV_OSS_INFO_DEV_MIXERS
,
card
->
number
,
mixer
->
name
);
#endif
for
(
idx
=
0
;
idx
<
SNDRV_OSS_MAX_MIXERS
;
idx
++
)
mixer
->
slots
[
idx
].
number
=
idx
;
card
->
mixer_oss
=
mixer
;
...
...
@@ -1188,7 +1190,9 @@ static int snd_mixer_oss_notify_handler(snd_card_t * card, int free_flag)
snd_mixer_oss_t
*
mixer
=
card
->
mixer_oss
;
if
(
mixer
==
NULL
)
return
0
;
#ifdef SNDRV_OSS_INFO_DEV_MIXERS
snd_oss_info_unregister
(
SNDRV_OSS_INFO_DEV_MIXERS
,
mixer
->
card
->
number
);
#endif
snd_unregister_oss_device
(
SNDRV_OSS_DEVICE_TYPE_MIXER
,
mixer
->
card
,
0
);
snd_mixer_oss_proc_done
(
mixer
);
return
snd_mixer_oss_free1
(
mixer
);
...
...
sound/core/oss/pcm_oss.c
View file @
8086afae
...
...
@@ -2123,9 +2123,11 @@ static int snd_pcm_oss_register_minor(unsigned short native_minor,
pcm
->
streams
[
SNDRV_PCM_STREAM_CAPTURE
].
substream_count
&&
!
(
pcm
->
info_flags
&
SNDRV_PCM_INFO_HALF_DUPLEX
));
sprintf
(
name
,
"%s%s"
,
pcm
->
name
,
duplex
?
" (DUPLEX)"
:
""
);
#ifdef SNDRV_OSS_INFO_DEV_AUDIO
snd_oss_info_register
(
SNDRV_OSS_INFO_DEV_AUDIO
,
pcm
->
card
->
number
,
name
);
#endif
pcm
->
oss
.
reg
++
;
}
if
(
snd_adsp_map
[
pcm
->
card
->
number
]
==
pcm
->
device
)
{
...
...
@@ -2146,7 +2148,9 @@ static int snd_pcm_oss_unregister_minor(unsigned short native_minor,
if
(
snd_dsp_map
[
pcm
->
card
->
number
]
==
pcm
->
device
)
{
snd_unregister_oss_device
(
SNDRV_OSS_DEVICE_TYPE_PCM
,
pcm
->
card
,
0
);
#ifdef SNDRV_OSS_INFO_DEV_AUDIO
snd_oss_info_unregister
(
SNDRV_OSS_INFO_DEV_AUDIO
,
pcm
->
card
->
number
);
#endif
}
if
(
snd_adsp_map
[
pcm
->
card
->
number
]
==
pcm
->
device
)
snd_unregister_oss_device
(
SNDRV_OSS_DEVICE_TYPE_PCM
,
...
...
sound/core/pcm_native.c
View file @
8086afae
...
...
@@ -2359,7 +2359,7 @@ static ssize_t snd_pcm_readv(struct file *file, const struct iovec *_vector,
snd_pcm_runtime_t
*
runtime
;
snd_pcm_sframes_t
result
;
unsigned
long
i
;
void
*
bufs
;
void
*
*
bufs
;
snd_pcm_uframes_t
frames
;
pcm_file
=
snd_magic_cast
(
snd_pcm_file_t
,
file
->
private_data
,
return
-
ENXIO
);
...
...
@@ -2393,7 +2393,7 @@ static ssize_t snd_pcm_writev(struct file *file, const struct iovec *_vector,
snd_pcm_runtime_t
*
runtime
;
snd_pcm_sframes_t
result
;
unsigned
long
i
;
void
*
bufs
;
void
*
*
bufs
;
snd_pcm_uframes_t
frames
;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 3, 0)
...
...
@@ -2413,7 +2413,7 @@ static ssize_t snd_pcm_writev(struct file *file, const struct iovec *_vector,
goto
end
;
}
frames
=
bytes_to_samples
(
runtime
,
_vector
->
iov_len
);
bufs
=
k
c
alloc
(
sizeof
(
void
*
)
*
count
,
GFP_KERNEL
);
bufs
=
k
m
alloc
(
sizeof
(
void
*
)
*
count
,
GFP_KERNEL
);
if
(
bufs
==
NULL
)
return
-
ENOMEM
;
for
(
i
=
0
;
i
<
count
;
++
i
)
...
...
sound/core/seq/oss/seq_oss_synth.c
View file @
8086afae
...
...
@@ -146,8 +146,10 @@ snd_seq_oss_synth_register(snd_seq_device_t *dev)
debug_printk
((
"synth %s registered %d
\n
"
,
rec
->
name
,
i
));
spin_unlock_irqrestore
(
&
register_lock
,
flags
);
dev
->
driver_data
=
rec
;
#ifdef SNDRV_OSS_INFO_DEV_SYNTH
if
(
i
<
SNDRV_CARDS
)
snd_oss_info_register
(
SNDRV_OSS_INFO_DEV_SYNTH
,
i
,
rec
->
name
);
#endif
return
0
;
}
...
...
@@ -178,8 +180,10 @@ snd_seq_oss_synth_unregister(snd_seq_device_t *dev)
max_synth_devs
=
index
+
1
;
}
spin_unlock_irqrestore
(
&
register_lock
,
flags
);
#ifdef SNDRV_OSS_INFO_DEV_SYNTH
if
(
rec
->
seq_device
<
SNDRV_CARDS
)
snd_oss_info_unregister
(
SNDRV_OSS_INFO_DEV_SYNTH
,
rec
->
seq_device
);
#endif
snd_use_lock_sync
(
&
rec
->
use_lock
);
kfree
(
rec
);
...
...
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