Date: Thu, 1 Nov 2012 20:58:55 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242458 - head/sys/dev/sound/usb Message-ID: <201211012058.qA1KwtLO075003@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211012058.qA1KwtLO075003>