From owner-freebsd-usb@freebsd.org Fri Feb 9 12:02:03 2018 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8D7CF1E74E for ; Fri, 9 Feb 2018 12:02:02 +0000 (UTC) (envelope-from ailinaini@yahoo.com) Received: from sonic315-40.consmr.mail.bf2.yahoo.com (sonic315-40.consmr.mail.bf2.yahoo.com [74.6.134.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 841EB80178 for ; Fri, 9 Feb 2018 12:02:02 +0000 (UTC) (envelope-from ailinaini@yahoo.com) X-YMail-OSG: qQxf2zcVM1kq0yw85kFZMYYF2yt3YUghIf0zhjyXiL6jUFQRqsWVptF7SH3FNOb Ng3zDFSzzCena1IqOc8Hoo_dvxy5MMdzduUEHl14.BvkM8iqIlC93mmEvTkhtdeMnjPdXf_mV5XN iw6DoNObCdDBvy9RH4ZZgUcLFEdkH4LrkG5g86D9246m9rbX1oIZQKLa6oW6T.TbjkDZsXZu_370 LXr1wTXOGmCKyp_1AngTE.qGazOf0bn1yNbv_dtuBXlOPTbpZPdYvwE7qtQ9ZnHMGh07f7N9zb13 pu5cvvxlw9SiaEQW2FoLimKT6ZC79KHz3_IAtTG7qfVbFGLgIsiBP2QVlvEAkaH_uS_tjY3HreDo l843FqgR17uWel9xzACn1n2PQ2vWzvK3SqHPte3Adc4X2Mz8WDT8iJ2BBhhtCnR4zC3qTDIGzYRZ o26eoJbmz1SGoo6yLN9Fx9gJY_nzYnev3MkbMd4tDGqilueIyuur371Wz1wFnWn68Zp44wlyP_iA CZSHRnwkrh651bgmWIcfknYLXfh77b61BIUfV Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Fri, 9 Feb 2018 12:01:56 +0000 Date: Fri, 9 Feb 2018 11:47:49 +0000 (UTC) From: Ert Retre Reply-To: Ert Retre To: "freebsd-usb@freebsd.org" Message-ID: <975281149.1691406.1518176869272@mail.yahoo.com> Subject: uaudio - distorted output MIME-Version: 1.0 References: <975281149.1691406.1518176869272.ref@mail.yahoo.com> X-Mailer: WebService/1.1.11364 YahooMailNeo Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.119 Safari/537.36 X-Mailman-Approved-At: Fri, 09 Feb 2018 12:29:07 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2018 12:02:03 -0000 > 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