diff options
Diffstat (limited to 'sound/usb/proc.c')
| -rw-r--r-- | sound/usb/proc.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/usb/proc.c b/sound/usb/proc.c index d218f763501..0182ef634d8 100644 --- a/sound/usb/proc.c +++ b/sound/usb/proc.c @@ -73,15 +73,14 @@ void snd_usb_audio_create_proc(struct snd_usb_audio *chip)   */  static void proc_dump_substream_formats(struct snd_usb_substream *subs, struct snd_info_buffer *buffer)  { -	struct list_head *p; +	struct audioformat *fp;  	static char *sync_types[4] = {  		"NONE", "ASYNC", "ADAPTIVE", "SYNC"  	}; -	list_for_each(p, &subs->fmt_list) { -		struct audioformat *fp; +	list_for_each_entry(fp, &subs->fmt_list, list) {  		snd_pcm_format_t fmt; -		fp = list_entry(p, struct audioformat, list); +  		snd_iprintf(buffer, "  Interface %d\n", fp->iface);  		snd_iprintf(buffer, "    Altset %d\n", fp->altsetting);  		snd_iprintf(buffer, "    Format:");  |