[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

szülő
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user