Date: Fri, 9 Feb 2018 11:47:49 +0000 (UTC) From: Ert Retre <ailinaini@yahoo.com> To: "freebsd-usb@freebsd.org" <freebsd-usb@freebsd.org> Subject: uaudio - distorted output Message-ID: <975281149.1691406.1518176869272@mail.yahoo.com> References: <975281149.1691406.1518176869272.ref@mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Hi, >=20 > attached are the config descriptors and the device dump of two uaudio=20 > devices. Both exhibit distorted audio output. It sounds a little bit=20 > like clipping / not feeding enough samples fast enough... >=20 > I played around with dev.pcm.2.bitperfect=3D1, dev.pcm.2.play.vchans=3D0,= =20 > dev.pcm.2.play.vchanrate and hw.snd.latency=3D1...10. >=20 > At some point vchanrate doesn't work anymore, it always stays at 4.0=20 > audio, even when trying to go back to 2.0. I have to usbconfig reset the= =20 > device. >=20 > Sometimes (rarely) when playing around I get clear audio output, but=20 > when I try to reproduce it (going back to default value for the last=20 > sysctl setting and then going back again to the same setting again), the= =20 > audio is distorted again. >=20 > To me it sounds like some kind of buffer is not big enough or the data=20 > is not delivered fast enough to the uaudio device. But this is a=20 > dual-socket system with: > =C2=A0=C2=A0=C2=A0 CPU: Intel(R) Xeon(R) CPU=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 E5620=C2=A0 @ 2.40GHz (2133.36-MHz=20 > K8-class CPU) > =C2=A0=C2=A0=C2=A0 FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs > =C2=A0=C2=A0=C2=A0 FreeBSD/SMP: 2 package(s) x 4 core(s) x 2 hardware th= reads > And while playing around with uaudio the system has a load of around 1,= =20 > so I would expect CPU/RAM is not an issue here. Hi, What version of FreeBSD is this? Try to enable hw.usb.uaudio.debug=3D16 during playback. -- Alexander Garcia https://www.drillanddriver.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?975281149.1691406.1518176869272>