[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
@@ -2138,7 +2138,7 @@ static void proc_pcm_format_add(struct snd_usb_stream *stream)
|
||||
|
||||
sprintf(name, "stream%d", stream->pcm_index);
|
||||
if (! snd_card_proc_new(card, name, &entry))
|
||||
snd_info_set_text_ops(entry, stream, 1024, proc_pcm_format_read);
|
||||
snd_info_set_text_ops(entry, stream, proc_pcm_format_read);
|
||||
}
|
||||
|
||||
#else
|
||||
@@ -3197,9 +3197,9 @@ static void snd_usb_audio_create_proc(struct snd_usb_audio *chip)
|
||||
{
|
||||
struct snd_info_entry *entry;
|
||||
if (! snd_card_proc_new(chip->card, "usbbus", &entry))
|
||||
snd_info_set_text_ops(entry, chip, 1024, proc_audio_usbbus_read);
|
||||
snd_info_set_text_ops(entry, chip, proc_audio_usbbus_read);
|
||||
if (! snd_card_proc_new(chip->card, "usbid", &entry))
|
||||
snd_info_set_text_ops(entry, chip, 1024, proc_audio_usbid_read);
|
||||
snd_info_set_text_ops(entry, chip, proc_audio_usbid_read);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -1998,7 +1998,7 @@ int snd_usb_create_mixer(struct snd_usb_audio *chip, int ctrlif)
|
||||
if ((err = snd_audigy2nx_controls_create(mixer)) < 0)
|
||||
goto _error;
|
||||
if (!snd_card_proc_new(chip->card, "audigy2nx", &entry))
|
||||
snd_info_set_text_ops(entry, mixer, 1024,
|
||||
snd_info_set_text_ops(entry, mixer,
|
||||
snd_audigy2nx_proc_read);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user