From owner-freebsd-usb@freebsd.org Mon Oct 9 19:30: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 4EAC0E39EFC for ; Mon, 9 Oct 2017 19:30:49 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 17E8B7C5CB for ; Mon, 9 Oct 2017 19:30:48 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id DD09D260342; Mon, 9 Oct 2017 21:30:46 +0200 (CEST) Subject: Re: uaudio - distorted output To: Alexander Leidinger Cc: freebsd-usb@freebsd.org 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> From: Hans Petter Selasky Message-ID: <9399c2dc-b514-fd0f-3401-57d43daad96b@selasky.org> Date: Mon, 9 Oct 2017 21:28:08 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171009210535.Horde.-orp9MzE2_7XgkKpP7K9L4J@webmail.leidinger.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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:30:49 -0000 On 10/09/17 21:05, Alexander Leidinger wrote: > Quoting Hans Petter Selasky (from Sun, 8 Oct 2017 > 23: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" is > with 32bit audio output, the "2" with 16bit audio output. > > This is what is reported in dmesg: > ---snip--- > uaudio0 on uhub3 > uaudio0: 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 config > descriptor dump is in my initial mail). > Hi, Is this device connected directly to the computer or via a USB HUB? Can you show all USB devices on this computer? I suspect your device is connected via USB High-speed HUB and I think the payload per millisecond is a bit too much for the so-called High-Speed to Full-Speed transaction translator configuration FreeBSD is using. You need to connect the device directly to an XHCI, UHCI or OHCI controller for it work properly. The following define can be increased by 1, to get more bandwidth for periodic data, but will reduce the bandwidth for non-periodic data. sys/dev/usb/usb_freebsd.h:#define USB_FS_ISOC_UFRAME_MAX 4 If you are using multi channel audio equipment with 24-bits, try to avoid FULL-speed ones! --HPS