Author: hselasky
Date: Thu Nov  1 20:58:55 2012
New Revision: 242458
URL: http://svn.freebsd.org/changeset/base/242458

Log:
  Correct buffer size printout.
  
  MFC after:    1 week

Modified:
  head/sys/dev/sound/usb/uaudio.c

Modified: head/sys/dev/sound/usb/uaudio.c
==============================================================================
--- head/sys/dev/sound/usb/uaudio.c     Thu Nov  1 20:47:18 2012        
(r242457)
+++ head/sys/dev/sound/usb/uaudio.c     Thu Nov  1 20:58:55 2012        
(r242458)
@@ -745,26 +745,20 @@ uaudio_attach(device_t dev)
 
        if (sc->sc_play_chan.valid) {
                device_printf(dev, "Play: %d Hz, %d ch, %s format, "
-                   "2x%d samples buffer.\n",
+                   "2x8ms buffer.\n",
                    sc->sc_play_chan.sample_rate,
                    sc->sc_play_chan.channels,
-                   sc->sc_play_chan.p_fmt->description,
-                   (sc->sc_play_chan.bytes_per_frame[0] *
-                   sc->sc_play_chan.intr_frames) /
-                   sc->sc_play_chan.sample_size);
+                   sc->sc_play_chan.p_fmt->description);
        } else {
                device_printf(dev, "No playback.\n");
        }
 
        if (sc->sc_rec_chan.valid) {
                device_printf(dev, "Record: %d Hz, %d ch, %s format, "
-                   "2x%d samples buffer.\n",
+                   "2x8ms buffer.\n",
                    sc->sc_rec_chan.sample_rate,
                    sc->sc_rec_chan.channels,
-                   sc->sc_rec_chan.p_fmt->description,
-                   (sc->sc_rec_chan.bytes_per_frame[0] *
-                   sc->sc_rec_chan.intr_frames) /
-                   sc->sc_rec_chan.sample_size);
+                   sc->sc_rec_chan.p_fmt->description);
        } else {
                device_printf(dev, "No recording.\n");
        }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to