summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/usb
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2012-11-01 20:58:55 +0000
committerhselasky <hselasky@FreeBSD.org>2012-11-01 20:58:55 +0000
commit91507a2ac1123bdfadf1f59276823e3f7adf8435 (patch)
tree5bc1015fb1c262614d3d96aa097be4c3a14810dd /sys/dev/sound/usb
parentfec55f4d3f515f389643f7250f0bea101527dcdc (diff)
downloadFreeBSD-src-91507a2ac1123bdfadf1f59276823e3f7adf8435.zip
FreeBSD-src-91507a2ac1123bdfadf1f59276823e3f7adf8435.tar.gz
Correct buffer size printout.
MFC after: 1 week
Diffstat (limited to 'sys/dev/sound/usb')
-rw-r--r--sys/dev/sound/usb/uaudio.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c
index 5bcb54c..1177042 100644
--- a/sys/dev/sound/usb/uaudio.c
+++ b/sys/dev/sound/usb/uaudio.c
@@ -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");
}
OpenPOWER on IntegriCloud