Date: Sun, 08 Oct 2017 14:25:14 +0200 From: Alexander Leidinger <Alexander@leidinger.net> To: Hans Petter Selasky <hps@selasky.org> Cc: freebsd-usb@freebsd.org Subject: Re: uaudio - distorted output Message-ID: <20171008142514.Horde.hRkzth4Ur4wvjgUIlWuc70c@webmail.leidinger.net> In-Reply-To: <633f23dd-3b61-fe17-b894-6b1221a5dfd4@selasky.org> References: <20171008125631.Horde.ZsqSFDr1-uiT1YrkgH5i0tF@webmail.leidinger.net> <633f23dd-3b61-fe17-b894-6b1221a5dfd4@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Quoting Hans Petter Selasky <hps@selasky.org> (from Sun, 8 Oct 2017 13:19:19 +0200): > On 10/08/17 12:56, Alexander Leidinger wrote: >> >> Hi, >> >> attached are the config descriptors and the device dump of two >> uaudio devices. Both exhibit distorted audio output. It sounds a >> little bit like clipping / not feeding enough samples fast enough... >> >> I played around with dev.pcm.2.bitperfect=1, >> dev.pcm.2.play.vchans=0, dev.pcm.2.play.vchanrate and >> hw.snd.latency=1...10. >> >> At some point vchanrate doesn't work anymore, it always stays at >> 4.0 audio, even when trying to go back to 2.0. I have to usbconfig >> reset the device. >> >> Sometimes (rarely) when playing around I get clear audio output, >> but when I try to reproduce it (going back to default value for the >> last sysctl setting and then going back again to the same setting >> again), the audio is distorted again. >> >> To me it sounds like some kind of buffer is not big enough or the >> data is not delivered fast enough to the uaudio device. But this is >> a dual-socket system with: >> CPU: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz >> (2133.36-MHz K8-class CPU) >> FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs >> FreeBSD/SMP: 2 package(s) x 4 core(s) x 2 hardware threads >> And while playing around with uaudio the system has a load of >> around 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=16 during playback. No such sysctl, only hw.usb.debug.... I did the hw.usb.debug=16, but no output in dmesg nor /var/log/console.log nor /var/log/messages, where do I need to look? Bye, Alexander. -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF [-- Attachment #2 --] -----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171008142514.Horde.hRkzth4Ur4wvjgUIlWuc70c>
