aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/usbaudio.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2005-04-22 09:33:01 -0400
committerJaroslav Kysela <perex@suse.cz>2005-05-29 04:05:07 -0400
commit08fe15899df9696a6d34abf96230ae0691f5de66 (patch)
tree387c1b20b6773ba002d25dbc46d80e699477b591 /sound/usb/usbaudio.c
parent863ad944b9a32dc43baa76143275411824d5928e (diff)
[ALSA] usb-audio - show exact synchronous frequency in proc file
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>
Diffstat (limited to 'sound/usb/usbaudio.c')
-rw-r--r--sound/usb/usbaudio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c
index aae66144d41..a7183c5876b 100644
--- a/sound/usb/usbaudio.c
+++ b/sound/usb/usbaudio.c
@@ -1990,10 +1990,11 @@ static void proc_dump_substream_status(snd_usb_substream_t *subs, snd_info_buffe
1990 snd_iprintf(buffer, "%d ", subs->dataurb[i].packets); 1990 snd_iprintf(buffer, "%d ", subs->dataurb[i].packets);
1991 snd_iprintf(buffer, "]\n"); 1991 snd_iprintf(buffer, "]\n");
1992 snd_iprintf(buffer, " Packet Size = %d\n", subs->curpacksize); 1992 snd_iprintf(buffer, " Packet Size = %d\n", subs->curpacksize);
1993 snd_iprintf(buffer, " Momentary freq = %u Hz\n", 1993 snd_iprintf(buffer, " Momentary freq = %u Hz (%#x.%04x)\n",
1994 snd_usb_get_speed(subs->dev) == USB_SPEED_FULL 1994 snd_usb_get_speed(subs->dev) == USB_SPEED_FULL
1995 ? get_full_speed_hz(subs->freqm) 1995 ? get_full_speed_hz(subs->freqm)
1996 : get_high_speed_hz(subs->freqm)); 1996 : get_high_speed_hz(subs->freqm),
1997 subs->freqm >> 16, subs->freqm & 0xffff);
1997 } else { 1998 } else {
1998 snd_iprintf(buffer, " Status: Stop\n"); 1999 snd_iprintf(buffer, " Status: Stop\n");
1999 } 2000 }