From owner-freebsd-usb@freebsd.org Sat Oct 14 15:01:29 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 CB054E49374 for ; Sat, 14 Oct 2017 15:01:29 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:375::1:5]) (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 6508C72B27 for ; Sat, 14 Oct 2017 15:01:29 +0000 (UTC) (envelope-from Alexander@leidinger.net) Date: Sat, 14 Oct 2017 17:00:53 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=leidinger.net; s=outgoing-alex; t=1507993286; bh=ViaFXIRPmLt+K+kS8w/Azuuzc60JFxM2qFvLU0miKt8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=J8FfJ0zOrq76nwl1MISssvBL56hqTeLVoYiIw2cMS4lUXNyf8fHlgIYCOptMXXFk5 nmXLkG1i6gM5gEQIpRq/IOncItz0mG/r3VJ3bBGG0HGBJw6DstQqvj54P9b9RWdIHF DwPXCwnkHGz+kw8mENkVP7o4I+cmFcQ1zDCjqgFkfsQVrZyhN+kI0ILmCNTYu9T0Cs 9dhG2vLrhcPvkcZXQxwETqF8krMlc715iWuWO/VsssbUdvWTt9mSpdkPGSXLsI88pL pdmSGDzUsUJ/mM96JJfLuofQeU0ZTcPpNZ/Mo529dwrSv2UukEnl5lslRGT+3E8MmP QuNw7xpK7nYrw== Message-ID: <20171014170053.Horde.QzVYNRV5LzWL1QougXx4G4l@webmail.leidinger.net> From: Alexander Leidinger To: Gary Jennejohn Cc: Hans Petter Selasky , freebsd-usb@freebsd.org Subject: Re: uaudio - distorted output References: <20171008125631.Horde.ZsqSFDr1-uiT1YrkgH5i0tF@webmail.leidinger.net> <633f23dd-3b61-fe17-b894-6b1221a5dfd4@selasky.org> <20171008142514.Horde.hRkzth4Ur4wvjgUIlWuc70c@webmail.leidinger.net> <21e04dc4-045d-fb30-337a-7f7bd4fe8b50@selasky.org> <20171008230836.Horde.gG7VyE_62V3bMJX_VtbUrAP@webmail.leidinger.net> <85f5fd9a-2a58-9f5d-6796-716aae617274@selasky.org> <20171009210535.Horde.-orp9MzE2_7XgkKpP7K9L4J@webmail.leidinger.net> <9399c2dc-b514-fd0f-3401-57d43daad96b@selasky.org> <20171009214747.Horde.6Me9X2nep_RP1M2tHVDmKxq@webmail.leidinger.net> <20171010201437.Horde.akunLS7Olg1TP_2Xo07fLI3@webmail.leidinger.net> <20171011060734.6db69d1e@ernst.home> In-Reply-To: <20171011060734.6db69d1e@ernst.home> User-Agent: Horde Application Framework 5 Content-Type: multipart/signed; boundary="=_0rTdTKFQu0OtPM9Un8VJFtr"; 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: Sat, 14 Oct 2017 15:01:29 -0000 This message is in MIME format and has been PGP signed. --=_0rTdTKFQu0OtPM9Un8VJFtr Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Gary Jennejohn (from Wed, 11 Oct 2017=20=20 06:07:34=20+0200): > On Tue, 10 Oct 2017 20:14:37 +0200 > Alexander Leidinger wrote: > >> Quoting Hans Petter Selasky (from Mon, 9 Oct 2017=20= =20 >>=2022:38:32 +0200): >> >> > On 10/09/17 21:47, Alexander Leidinger wrote: >> >>> If you are using multi channel audio equipment with 24-bits,=20=20 >>=20try >>> to avoid FULL-speed ones! >> >> I have now tried every single USB connector, external and internal.=20= =20 >>=20None of them attaches to the EHCI bus. :( The only connector which=20= =20 >>=20Iwas not able to test is labeled "USB SSD" and has a smaller=20=20 >>=20pin-gridthan those other internal usb-PIN-connectors with cables to=20= =20 >>=20the frontof the case. >> >> I think I will now buy a PCIe USB3.0 card. Anything I should avoid?=20= =20 >>=20Anything you recommend? I found this: >>=20=20=20=20=20=20 >>=20www.amazon.de/CSL-Express-Controller-SATA-Stromanschluss-Schnittstelle= nkart >> e/dp/B00OBACW0G >> which seems to have some VLI chip on it. I haven't found anything=20=20 >>=20usable in terms of vendor/product ID or such. >> 4 ports may be enough, for an external USB backup HD, the=20=20 >>=20soundcard, and a video device, but for ~10 EUR difference... >> > > I've been using the CSL B00F9XGPTI XHCI 4-port card which works. I > bought it on amazon.de, but I don't know whether it's still available. I bought the one I had listed. Works. I did a short Amazon review=20=20 which=20mentions FreeBSD. >> >> Well... first I want to get the 2 channel 16bit case working...=20=20 >>=20>> then I will have a look at extending this to 5.1 (most probably=20= =20 >>=20>> 16bit, that's enough to watch action movies). >> > >> > Hi, >> > >> > Some more ideas: >> > >> > 2 channel 16 bit will only work if you turn off bitperfect. The >> >> I activated bitperfect as a test because I got the distortion and=20=20 >>=20was hoping to either gain some lower-latency or at least get rid of=20= =20 >>=20somelayers of code to rule out issues there. >> >> > lowest number of channels the device exports is 4 for playback.=20=20 >>=20That> means the kernel will re-format 2 channels to 4 channels=20=20 >>=20always and> that is done by the PCM feeder. You'll need to check=20=20 >>=20that there is a> filter which handle that. >> > >> > You might want to install virtual_oss from ports to handle this >=20= =20 >>=20device properly. >> >> In the end I want 5.1 output, so if the bus speed doesn't give me=20=20 >>=20this: no need to waste our time with the slow ports. It looks like this now (here the second uaudio device is attached): ---snip--- ugen8.1: <0x1106 XHCI root HUB> at usbus8, cfg=3D0 md=3DHOST spd=3DSUPER=20= =20 (5.0Gbps)=20pwr=3DSAVE (0mA) ugen8.2: at usbus8, cfg=3D0 md=3DHOST spd=3DHIGH= =20=20 (480Mbps)=20pwr=3DSAVE (100mA) ugen8.3: at usbus8, cfg=3D0 md=3DHOST spd=3DHIG= H=20=20 (480Mbps)=20pwr=3DSAVE (0mA) ugen8.4: at usbus8, cfg=3D0 md=3DHOST=20= =20 spd=3DFULL (12Mbps) pwr=3DON (500mA) ugen8.5: at usbus8, cfg=3D0 md=3DHOST=20=20 spd=3DSUPER (5.0Gbps) pwr=3DSAVE (0mA) ---snip--- What I don't understand is it tells spd=3DFULL, so the device is not=20=20 doing=20faster as it theoretically can do on the mainboard-usb device.=20= =20 Why=20does it work better (no audio distortion when connected to the=20=20 xhci=20device)? I also tried 5.1 output (data goes via optical connection to the pre-amp/DA= C). dev.pcm.2.bitperfect: 0 dev.pcm.2.buffersize: 0 dev.pcm.2.rec.vchanformat: s16le:2.0 dev.pcm.2.rec.vchanrate: 48000 dev.pcm.2.rec.vchanmode: fixed dev.pcm.2.rec.vchans: 1 dev.pcm.2.play.vchanformat: s16le:5.1 dev.pcm.2.play.vchanrate: 48000 dev.pcm.2.play.vchanmode: passthrough dev.pcm.2.play.vchans: 1 Audio comes out of all 5 speakers, but somehow I have the impression I=20= =20 get=20the same output everywhere... I need to download a 5.1 test and=20=20 see.=20But this is another issue now. Thanks! Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_0rTdTKFQu0OtPM9Un8VJFtr Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJZ4ialAAoJEKrxQhqFIICEhpQP/3OMSftLBiKtxq2fnV7pFaSR Ia9EfUkdyd5C83nB7VXlL0dk2+r/+5vTwDbrdLMNtKxf02TXQZXsc1om52yBaOOr uAH/X0isvWHwkFv2IF0D1EJscclN8STwpSgfQUo9X3g8tpFKPFLbjxbyuhYnRW3b vWhXUZAuUHHm9Vgp/NfpQnEYoN45RYJVyyPUdxVG9drPPbR1GFxTixxoF4GxP+OQ Icw2gte72mxU3Sg8Pj5uwMC0FTO8dncRi4fxsJ1S9CMCHyX4qk52kGeZM6r4Qxnv 3/IYgJuFh7shxAd4p1YKVaUMd/94DkrojyQT9siQ3WvQzTE4YWVUxnety1Y+2sot xZ3D2jgyVoAUuJex7VpWCNpbJrtemk6dfbFG0KHJl+Ex3A7NN5COAonLAR+QVsUb l7K2qlUxbzIPDGUV1MuzflKKhpQ0lc2/FX8mClHyOXqigjdBvufJrqpvixudcZBh l0zmAVzKl8ntdel32kwuRc/9EHfuP3CgiKzo5cRf2dvtBs2LgmRWlZ78r0fxjnJU fioZMRgnwjMz+2geW0TnHSuI7C7QUJNMQC9plIBuo3v2CsoIyBGB4TacLyWZMayh Fwh7Ozn87/KlyzyOY8Sr/75jiJwWe/XEN2BqifUs23VBFbB2qnzAi6uYnl2wb3q7 QCBQNDI8icAotirVPWwi =b8og -----END PGP SIGNATURE----- --=_0rTdTKFQu0OtPM9Un8VJFtr--