]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/usb/usbaudio.c
sound: usb-audio: show sample format width in proc file
[linux-2.6-omap-h63xx.git] / sound / usb / usbaudio.c
index c2db0f959681da6608e0906a580db3240000d45f..175c7d1da5cff73c451c9a7ce94ffa91ad709da0 100644 (file)
@@ -2147,7 +2147,8 @@ static void proc_dump_substream_formats(struct snd_usb_substream *subs, struct s
                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: %#x\n", fp->format);
+               snd_iprintf(buffer, "    Format: %#x (%d bits)\n",
+                           fp->format, snd_pcm_format_width(fp->format));
                snd_iprintf(buffer, "    Channels: %d\n", fp->channels);
                snd_iprintf(buffer, "    Endpoint: %d %s (%s)\n",
                            fp->endpoint & USB_ENDPOINT_NUMBER_MASK,