From owner-freebsd-usb@freebsd.org Sun Oct 8 12:25:49 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DF736E33EBD for ; Sun, 8 Oct 2017 12:25:49 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 375B67EF33 for ; Sun, 8 Oct 2017 12:25:48 +0000 (UTC) (envelope-from Alexander@leidinger.net) Date: Sun, 08 Oct 2017 14:25:14 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=leidinger.net; s=outgoing-alex; t=1507465546; bh=q9gKrL/BLUJcNHpYqepWe+ghQ/X8VNHDneAK/yMZbkE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=c2jMFFL8oYFZS8Fna0e0FM2wi3Bz/yzRgphpNMG7HWIqePddGFLpQ1qwBOh5KTiop +L0Tw3XM7/f6KQq0YGCKr5PFdHCUJf0Np35MTTYUDHW6+V6B9A80bOCo2P7Teu0rSz 9/nmXPfrClxk4eKEOtsoWQxik8SPZHRgnJCmm+9K5soYmXUUrcYXVnuEYew0J/gJGp Vnzn3MchuY1XsIJgNyXaxSP2Q1RDD+OfS2lznLbp7tw9EKEppkH0sBCQw2eRLb4o6W ga1BPsKmun67fpcj9vygUrgSN+JACjmBIppM23herGe+rHKN2L/JAc6KzVRZJI8yRp rVb0cAem04BgA== Message-ID: <20171008142514.Horde.hRkzth4Ur4wvjgUIlWuc70c@webmail.leidinger.net> From: Alexander Leidinger To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org Subject: Re: uaudio - distorted output References: <20171008125631.Horde.ZsqSFDr1-uiT1YrkgH5i0tF@webmail.leidinger.net> <633f23dd-3b61-fe17-b894-6b1221a5dfd4@selasky.org> In-Reply-To: <633f23dd-3b61-fe17-b894-6b1221a5dfd4@selasky.org> User-Agent: Horde Application Framework 5 Content-Type: multipart/signed; boundary="=_fSX1pATk7XLpSDsq0BDSqLB"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Oct 2017 12:25:50 -0000 This message is in MIME format and has been PGP signed. --=_fSX1pATk7XLpSDsq0BDSqLB Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Hans Petter Selasky (from Sun, 8 Oct 2017=20=20 13:19:19=20+0200): > On 10/08/17 12:56, Alexander Leidinger wrote: >> >> Hi, >> >> attached are the config descriptors and the device dump of two=20=20 >>=20uaudio devices. Both exhibit distorted audio output. It sounds a=20=20 >>=20little bit like clipping / not feeding enough samples fast enough... >> >> I played around with dev.pcm.2.bitperfect=3D1,=20=20 >>=20dev.pcm.2.play.vchans=3D0, dev.pcm.2.play.vchanrate and=20=20 >>=20hw.snd.latency=3D1...10. >> >> At some point vchanrate doesn't work anymore, it always stays at=20=20 >>=204.0 audio, even when trying to go back to 2.0. I have to usbconfig=20= =20 >>=20reset the device. >> >> Sometimes (rarely) when playing around I get clear audio output,=20=20 >>=20but when I try to reproduce it (going back to default value for the=20= =20 >>=20last sysctl setting and then going back again to the same setting=20= =20 >>=20again), the audio is distorted again. >> >> To me it sounds like some kind of buffer is not big enough or the=20=20 >>=20data is not delivered fast enough to the uaudio device. But this is=20= =20 >>=20a 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=20=20 >>=20(2133.36-MHz 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=20=20 >>=20around 1, so I would expect CPU/RAM is not an issue here. > > Hi, > > What version of FreeBSD is this? current as of r323636 > Try to enable hw.usb.uaudio.debug=3D16 during playback. No such sysctl, only hw.usb.debug.... I did the hw.usb.debug=3D16, but no output in dmesg nor=20=20 /var/log/console.log=20nor /var/log/messages, where do I need to look? Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_fSX1pATk7XLpSDsq0BDSqLB Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJZ2hkqAAoJEKrxQhqFIICE57oP/2lfEhw+mNY8gfyiQwBQh8Ob BBHUt35MsD2bQlv4fCpqGitA93xuEFc59SX6s5L/w7QtzhJI3+qTfcVUBlzdYsiP T0BbxnP+HMGMePCX+nMPNoV4lrjdCAmyrJCmhf4rRicZjlPayevVdQRVDeXvi8zw n8YLZ2cd8oeDhVe5D5Fs2emYmxpUwt/K57tt2Dmm7JIcjemiaRADIr5GM2S2DDOy xPcLW353ehKzQVAk9c2JRptbWniFnBioC0PxeS4S3rwylTfPhqN3q144if8PUgLg VpzRnJ7cm/B3732rBfSzNjxgEoO14/noXTWAskcnu3RpcDuFKhYmAIleSTK4ilQx TFmSJoaS8ynq0J6/a2Xc9tMNt4CiMX5gbq9461WdGcXcRDMNmt4289zYodxO+Oof ede5emI1bzJLiTbQ6ABsvcJTNPKpsg0BNFq+lb/jT+zlWiR9Zw8s7GoOAIIJkVZN KkJ6C7sPJ8G5gsFzOQCDz/WqP1zbVPZERkZJmnH7pNSXbab8ItQi98Ahr+3P5DhF U8ihMhO4lysjDQLl7wxHX+AfYsCxmSAGn7YwRJgBolpXBasbif3HL5qq2q6TisZY O8vx7wh3g5cCuWISyIq/TqQDmb4qyvEg+vz/dxkuo3ne4xSgHX3uYXhzyK0GjL77 yVsbpD0KhRZDpjuXy2AW =QE6y -----END PGP SIGNATURE----- --=_fSX1pATk7XLpSDsq0BDSqLB--