git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
sound
/
core
/
seq
/
seq_info.c
diff --git
a/sound/core/seq/seq_info.c
b/sound/core/seq/seq_info.c
index
142e9e6
..
acce21a
100644
(file)
--- a/
sound/core/seq/seq_info.c
+++ b/
sound/core/seq/seq_info.c
@@
-34,8
+34,8
@@
static struct snd_info_entry *timer_entry;
static struct snd_info_entry * __init
static struct snd_info_entry * __init
-create_info_entry(char *name, void (*read)(struct snd_info_entry *,
- struct snd_info_buffer *))
+create_info_entry(char *name,
int size,
void (*read)(struct snd_info_entry *,
+
struct snd_info_buffer *))
{
struct snd_info_entry *entry;
{
struct snd_info_entry *entry;
@@
-43,6
+43,7
@@
create_info_entry(char *name, void (*read)(struct snd_info_entry *,
if (entry == NULL)
return NULL;
entry->content = SNDRV_INFO_CONTENT_TEXT;
if (entry == NULL)
return NULL;
entry->content = SNDRV_INFO_CONTENT_TEXT;
+ entry->c.text.read_size = size;
entry->c.text.read = read;
if (snd_info_register(entry) < 0) {
snd_info_free_entry(entry);
entry->c.text.read = read;
if (snd_info_register(entry) < 0) {
snd_info_free_entry(entry);
@@
-54,11
+55,11
@@
create_info_entry(char *name, void (*read)(struct snd_info_entry *,
/* create all our /proc entries */
int __init snd_seq_info_init(void)
{
/* create all our /proc entries */
int __init snd_seq_info_init(void)
{
- queues_entry = create_info_entry("queues",
+ queues_entry = create_info_entry("queues",
512 + (256 * SNDRV_SEQ_MAX_QUEUES),
snd_seq_info_queues_read);
snd_seq_info_queues_read);
- clients_entry = create_info_entry("clients",
+ clients_entry = create_info_entry("clients",
512 + (256 * SNDRV_SEQ_MAX_CLIENTS),
snd_seq_info_clients_read);
snd_seq_info_clients_read);
- timer_entry = create_info_entry("timer", snd_seq_info_timer_read);
+ timer_entry = create_info_entry("timer",
1024,
snd_seq_info_timer_read);
return 0;
}
return 0;
}