]> err.no Git - linux-2.6/commitdiff
[ALSA] usb-audio - show exact synchronous frequency in proc file
authorClemens Ladisch <clemens@ladisch.de>
Fri, 22 Apr 2005 13:33:01 +0000 (15:33 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sun, 29 May 2005 08:05:07 +0000 (10:05 +0200)
USB generic driver
In the streamX proc file, show the exact number of samples per
USB frame as 16.16 hexadecimal floating point value.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/usb/usbaudio.c

index aae66144d411ce579eee7185b8e3cca84e730d9e..a7183c5876b3c93c69d0ed23c7d91c01034c68ee 100644 (file)
@@ -1990,10 +1990,11 @@ static void proc_dump_substream_status(snd_usb_substream_t *subs, snd_info_buffe
                        snd_iprintf(buffer, "%d ", subs->dataurb[i].packets);
                snd_iprintf(buffer, "]\n");
                snd_iprintf(buffer, "    Packet Size = %d\n", subs->curpacksize);
-               snd_iprintf(buffer, "    Momentary freq = %u Hz\n",
+               snd_iprintf(buffer, "    Momentary freq = %u Hz (%#x.%04x)\n",
                            snd_usb_get_speed(subs->dev) == USB_SPEED_FULL
                            ? get_full_speed_hz(subs->freqm)
-                           : get_high_speed_hz(subs->freqm));
+                           : get_high_speed_hz(subs->freqm),
+                           subs->freqm >> 16, subs->freqm & 0xffff);
        } else {
                snd_iprintf(buffer, "  Status: Stop\n");
        }