Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Sep 2020 10:13:16 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r365241 - stable/12/sys/dev/sound/usb
Message-ID:  <202009021013.082ADG0u009362@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed Sep  2 10:13:15 2020
New Revision: 365241
URL: https://svnweb.freebsd.org/changeset/base/365241

Log:
  MFC r364374:
  Print current buffer latency in dmesg for the USB audio driver and not just
  the maximum.
  
  Sponsored by:	Mellanox Technologies

Modified:
  stable/12/sys/dev/sound/usb/uaudio.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/sound/usb/uaudio.c
==============================================================================
--- stable/12/sys/dev/sound/usb/uaudio.c	Wed Sep  2 10:11:21 2020	(r365240)
+++ stable/12/sys/dev/sound/usb/uaudio.c	Wed Sep  2 10:13:15 2020	(r365241)
@@ -1029,10 +1029,11 @@ uaudio_attach(device_t dev)
 		}
 		for (x = 0; x != sc->sc_play_chan[i].num_alt; x++) {
 			device_printf(dev, "Play[%u]: %d Hz, %d ch, %s format, "
-			    "2x8ms buffer.\n", i,
+			    "2x%dms buffer.\n", i,
 			    sc->sc_play_chan[i].usb_alt[x].sample_rate,
 			    sc->sc_play_chan[i].usb_alt[x].channels,
-			    sc->sc_play_chan[i].usb_alt[x].p_fmt->description);
+			    sc->sc_play_chan[i].usb_alt[x].p_fmt->description,
+			    uaudio_buffer_ms);
 		}
 	}
 	if (i == 0)
@@ -1058,10 +1059,11 @@ uaudio_attach(device_t dev)
 		}
 		for (x = 0; x != sc->sc_rec_chan[i].num_alt; x++) {
 			device_printf(dev, "Record[%u]: %d Hz, %d ch, %s format, "
-			    "2x8ms buffer.\n", i,
+			    "2x%dms buffer.\n", i,
 			    sc->sc_rec_chan[i].usb_alt[x].sample_rate,
 			    sc->sc_rec_chan[i].usb_alt[x].channels,
-			    sc->sc_rec_chan[i].usb_alt[x].p_fmt->description);
+			    sc->sc_rec_chan[i].usb_alt[x].p_fmt->description,
+			    uaudio_buffer_ms);
 		}
 	}
 	if (i == 0)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009021013.082ADG0u009362>