From owner-freebsd-usb@freebsd.org Mon Oct 9 19:48:23 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 A12EAE3A47C for ; Mon, 9 Oct 2017 19:48:23 +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 46AC17CD5F for ; Mon, 9 Oct 2017 19:48:23 +0000 (UTC) (envelope-from Alexander@leidinger.net) Date: Mon, 09 Oct 2017 21:47:47 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=leidinger.net; s=outgoing-alex; t=1507578500; bh=q/SV6o8/qfb8zevwIt2zvHFIKjftYV2Q9jbI/6iba5s=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=hJFQFIqexD0vYrggYlSkQhfe07ihRisUje6GNUyYHE98hJ+WwlU2EVJhpV+XMhR3P K97fBbxIBJOimWqWFqUZw7gQ0daiPpMG0m6/LkQq47emKb7znZ9X9pIn/v/oywxmBB jx7BOXhxKyfRpm68ZOAMpv0bHKB7p6D5TwWtjCluWhMiCFprXJYXm8OdSL8OfmJk/E Cvo1+o0pT2oCqSw6bK5NEeHNC8kVKWjOJa4UvU1ZZ7wtYrg5w62H5BO3zerChsTk9D gr04LlD0kUqK5p3bqGO5ANXF4sk89Ju4EnP05wT/rtuqW1xiMkI+YxHtem6rGVw/PF aD3jRswlv2UFg== Message-ID: <20171009214747.Horde.6Me9X2nep_RP1M2tHVDmKxq@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> <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> In-Reply-To: <9399c2dc-b514-fd0f-3401-57d43daad96b@selasky.org> User-Agent: Horde Application Framework 5 Content-Type: multipart/signed; boundary="=_xOuuwTVag2ToA71NVKHuBPn"; 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: Mon, 09 Oct 2017 19:48:23 -0000 This message is in MIME format and has been PGP signed. --=_xOuuwTVag2ToA71NVKHuBPn Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Hans Petter Selasky (from Mon, 9 Oct 2017=20=20 21:28:08=20+0200): > On 10/09/17 21:05, Alexander Leidinger wrote: >> Quoting Hans Petter Selasky (from Sun, 8 Oct 2017=20= =20 >>=2023:44:27 +0200): >> >>> Can you trace that with: >>> >>> usbdump -i usbusX -f Y -v >>> >>> ? >>> >>> What rates are supported. Can you try 48000 Hz? >> >> 44100 and 48000. The attached usbdumps are with 48000 Hz. The "1"=20=20 >>=20is with 32bit audio output, the "2" with 16bit audio output. >> >> This is what is reported in dmesg: >> ---snip--- >> uaudio0 on uhub3 >> uaudio0: >=20rev 1.10/1.00, addr 2> on usbus5 >> uaudio0: Play: 48000 Hz, 4 ch, 24-bit S-LE PCM format, 2x8ms buffer. >> uaudio0: Play: 44100 Hz, 4 ch, 24-bit S-LE PCM format, 2x8ms buffer. >> uaudio0: Record: 96000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer. >> uaudio0: Record: 48000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer. >> uaudio0: Record: 44100 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer. >> uaudio0: No MIDI sequencer. >> pcm2: on uaudio0 >> uaudio0: No HID volume keys found. >> ---snip--- >> >> As this is a 5.1 device, I would expect 6 channels, not 4 (the=20=20 >>=20config descriptor dump is in my initial mail). >> > > Hi, > > Is this device connected directly to the computer or via a USB HUB? Directly, see below for more info. > Can you show all USB devices on this computer? # usbconfig ugen6.1: at usbus6, cfg=3D0 md=3DHOST spd=3DFULL=20= =20 (12Mbps)=20pwr=3DSAVE (0mA) ugen3.1: at usbus3, cfg=3D0 md=3DHOST spd=3DHIGH=20= =20 (480Mbps)=20pwr=3DSAVE (0mA) ugen1.1: at usbus1, cfg=3D0 md=3DHOST spd=3DFULL=20= =20 (12Mbps)=20pwr=3DSAVE (0mA) ugen4.1: at usbus4, cfg=3D0 md=3DHOST spd=3DFULL=20= =20 (12Mbps)=20pwr=3DSAVE (0mA) ugen7.1: at usbus7, cfg=3D0 md=3DHOST spd=3DHIGH=20= =20 (480Mbps)=20pwr=3DSAVE (0mA) ugen0.1: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL=20= =20 (12Mbps)=20pwr=3DSAVE (0mA) ugen5.1: at usbus5, cfg=3D0 md=3DHOST spd=3DFULL=20= =20 (12Mbps)=20pwr=3DSAVE (0mA) ugen2.1: at usbus2, cfg=3D0 md=3DHOST spd=3DFULL=20= =20 (12Mbps)=20pwr=3DSAVE (0mA) ugen1.2: at usbus1, cfg=3D0 md=3DHOST= =20=20 spd=3DFULL (12Mbps) pwr=3DSAVE (100mA) ugen2.2: at=20=20 usbus2,=20cfg=3D0 md=3DHOST spd=3DFULL (12Mbps) pwr=3DON (0mA) ugen1.3: at usbus1, cfg=3D0 md=3DHOST= =20=20 spd=3DFULL (12Mbps) pwr=3DON (98mA) ugen1.4: at usbus1, cfg=3D0 md=3DHOST= =20=20 spd=3DFULL (12Mbps) pwr=3DON (98mA) ugen5.2: at usbus5,=20=20 cfg=3D0 md=3DHOST spd=3DFULL (12Mbps) pwr=3DON (308mA) > I suspect your device is connected via USB High-speed HUB and I=20=20 >=20think the payload per millisecond is a bit too much for the=20=20 >=20so-called High-Speed to Full-Speed transaction translator=20=20 >=20configuration FreeBSD is using. You need to connect the device=20=20 >=20directly to an XHCI, UHCI or OHCI controller for it work properly. The uaudio device is attached directly to the USB connectors of the=20=20 case.=20The connectors of the case are directly connected to the PINs on=20= =20 the=20mainboard. So this means the mainboard "exports" more FULL speed=20= =20 ports=20than HIGH speed ports and I just have to find the right=20=20 connector=20and it will work much better? I will search the connectors for ugen3 and ugen7 tomorrow and report=20=20 back=20how it works (and maybe look again at the issue I had changing=20=20 the=20number of channels...). > If you are using multi channel audio equipment with 24-bits, try to=20=20 >=20avoid FULL-speed ones! Well... first I want to get the 2 channel 16bit case working... then I=20= =20 will=20have a look at extending this to 5.1 (most probably 16bit, that's=20= =20 enough=20to watch action movies). Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_xOuuwTVag2ToA71NVKHuBPn Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJZ29JjAAoJEKrxQhqFIICEmk0P/jTo3LjOW9yCcrWVYXKuxKum roOn9EHQCZ/EG75Wv1yCKLyZJx/grcITOioyl0D/T8xobvRVhuDdvhTaeaJX/48P 66K3sPyrlusAUoUaFmwaln5pmYFGyOaxYIUfyv+3KnUz+7qD+FHcOpjHzQNJCGJj yCDMk9pY9YN8IPYpzPTu0abpo4/lSS7EI1nBSYcS4yhr6zXgxyN+YPyX9MWrcB4s gJ7i/bI2biSG7IKM2f/DKnb2bkbOkRxIkcdetVUcCjhSjZkK4kovNRdfysObUnLe +FMVak7NDkOrANItDIBS01ok1NxC00lZPj9uMvw+smzsjg67yuigTTjthdTACbyN ELEdl4nBOmD+0EVW3Xwnd7oHjyvDg2vnBwERam2tpxsAwGnugDjRQSGpCBHZWrzq HhIpxiBqcKp+S6smzhba/iPKeLcza7vykSHWtnMwt86mDzNT083jczKkCZhYKDh+ SjztD94LafTZWBL8NDEXG+aWmO/kg7/pewg78GtFdvoAF5heVkLtnp/c4+kPMB8m ozyhBEijIQ++nPdN0Kl1V26Jl1Lvojve5gMohBYILJL+m38EZH3JZa+hIog5wSz8 6J18gYrvtveC4+pu1j6k8lKWr98nk3d18CYCPRFIBcJIiJPtPJeqgUquZBpkZZYd V6LDKORF3ZNXFaq9VE10 =yWXl -----END PGP SIGNATURE----- --=_xOuuwTVag2ToA71NVKHuBPn--