From owner-freebsd-arm@freebsd.org Wed Nov 28 11:41:22 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2419D1151804 for ; Wed, 28 Nov 2018 11:41:22 +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 7A4A970A16 for ; Wed, 28 Nov 2018 11:41:21 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [178.17.145.230]) (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 6D57E2604F9; Wed, 28 Nov 2018 12:41:19 +0100 (CET) Subject: Re: Raspberry PI 2B/3 and USB audio To: Brian Scott , freebsd-arm@freebsd.org References: <87ftw96uq0.wl-herbert@gojira.at> <6beca923-ba25-3814-6bb2-f4cc2d7360d3@selasky.org> <875zx2hyey.wl-herbert@gojira.at> <87lg5fhcgz.wl-herbert@gojira.at> <87k1kzhb8j.wl-herbert@gojira.at> <9dda25f1-9b52-2a50-1b55-00cccee8ee98@selasky.org> <856136a7-c58f-dda0-d50c-f9da55e5eb88@bunyatech.com.au> <7bee717d-70e5-5f09-d5c4-96c72ddbd2f9@bunyatech.com.au> From: Hans Petter Selasky Message-ID: Date: Wed, 28 Nov 2018 12:40:44 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0.1 MIME-Version: 1.0 In-Reply-To: <7bee717d-70e5-5f09-d5c4-96c72ddbd2f9@bunyatech.com.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 7A4A970A16 X-Spamd-Result: default: False [-6.36 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mail.turbocat.net]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.95)[-0.946,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; IP_SCORE(-3.10)[ip: (-8.80), ipnet: 2a01:4f8::/29(-3.80), asn: 24940(-2.89), country: DE(-0.02)]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2018 11:41:22 -0000 On 11/28/18 11:28 AM, Brian Scott wrote: > On 28/11/18 9:22 pm, Hans Petter Selasky wrote: >> On 11/28/18 11:13 AM, Brian Scott wrote: >>> On 28/11/18 7:45 pm, Hans Petter Selasky wrote: >>>> On 11/28/18 1:46 AM, Brian Scott wrote: >>>>> On 27/11/18 6:38 pm, Hans Petter Selasky wrote: >>>>>> On 11/26/18 8:47 PM, Herbert J. Skuhra wrote: >>>>>>> Well, this USB sound card works perfectly fine on my desktop PC >>>>>>> running FreeBSD (amd64). >>>>>> >>>>>> Hi, >>>>>> >>>>>> There is a problem in the DWC OTG USB controller driver that it >>>>>> cannot >>>>>> handle the big data payload 24-bit 48KHz sampling requires. >>>>>> Unfortunately your device has only one sample size selection. >>>>>> >>>>>> If you buy a USB sound device marked as "HIGH SPEED USB" it should >>>>>> work. Yours is "spd=FULL". >>>>>> >>>>>> --HPS >>>>> Just an additional data point, >>>>> >>>>> This one also sounds like junk but is high speed: >>>>> >>>>>       ugen0.6: at usbus0, cfg=0 md=HOST spd=HIGH >>>>>       (480Mbps) pwr=ON (100mA) >>>>> >>>>>         bLength = 0x0012 >>>>>         bDescriptorType = 0x0001 >>>>>         bcdUSB = 0x0200 >>>>>         bDeviceClass = 0x0000  >>>>>         bDeviceSubClass = 0x0000 >>>>>         bDeviceProtocol = 0x0000 >>>>>         bMaxPacketSize0 = 0x0040 >>>>>         idVendor = 0x0bda >>>>>         idProduct = 0x4040 >>>>>         bcdDevice = 0x0000 >>>>>         iManufacturer = 0x0003  >>>>>         iProduct = 0x0001  >>>>>         iSerialNumber = 0x0002  <201405280001> >>>>>         bNumConfigurations = 0x0001 >>>>> Hi, Can you also dump the device descriptors? usbconfig -d 0.6 dump_curr_config_desc And can you capture with usbdump some traffic while doing playback? usbdump -i usbus0 -f 6 -s 65536 -vvv > ~/log.txt And this device works fine using a regular PC with FreeBSD installed? --HPS