[ALSA] Remove unneeded read/write_size fields in proc text ops
Remove unneeded read/write_size fields in proc text ops. snd_info_set_text_ops() is fixed, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:

committed by
Jaroslav Kysela

vanhempi
7e4eeec8a3
commit
bf850204a7
@@ -136,7 +136,7 @@ void snd_gus_irq_profile_init(struct snd_gus_card *gus)
|
||||
struct snd_info_entry *entry;
|
||||
|
||||
if (! snd_card_proc_new(gus->card, "gusirq", &entry))
|
||||
snd_info_set_text_ops(entry, gus, 1024, snd_gus_irq_info_read);
|
||||
snd_info_set_text_ops(entry, gus, snd_gus_irq_info_read);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@@ -264,10 +264,8 @@ int snd_gf1_mem_init(struct snd_gus_card * gus)
|
||||
if (snd_gf1_mem_xalloc(alloc, &block) == NULL)
|
||||
return -ENOMEM;
|
||||
#ifdef CONFIG_SND_DEBUG
|
||||
if (! snd_card_proc_new(gus->card, "gusmem", &entry)) {
|
||||
snd_info_set_text_ops(entry, gus, 1024, snd_gf1_mem_info_read);
|
||||
entry->c.text.read_size = 256 * 1024;
|
||||
}
|
||||
if (! snd_card_proc_new(gus->card, "gusmem", &entry))
|
||||
snd_info_set_text_ops(entry, gus, snd_gf1_mem_info_read);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
@@ -967,7 +967,7 @@ static void __init snd_miro_proc_init(struct snd_miro * miro)
|
||||
struct snd_info_entry *entry;
|
||||
|
||||
if (! snd_card_proc_new(miro->card, "miro", &entry))
|
||||
snd_info_set_text_ops(entry, miro, 1024, snd_miro_proc_read);
|
||||
snd_info_set_text_ops(entry, miro, snd_miro_proc_read);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -1101,7 +1101,7 @@ static int init_proc_entry(struct snd_sb_csp * p, int device)
|
||||
struct snd_info_entry *entry;
|
||||
sprintf(name, "cspD%d", device);
|
||||
if (! snd_card_proc_new(p->chip->card, name, &entry))
|
||||
snd_info_set_text_ops(entry, p, 1024, info_read);
|
||||
snd_info_set_text_ops(entry, p, info_read);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Viittaa uudesa ongelmassa
Block a user