From nobody Tue Oct 25 20:17:20 2022 X-Original-To: freebsd-usb@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mxjsr2Mh1z4gqJF for ; Tue, 25 Oct 2022 20:17:36 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mxjsq0wpyz3Vsp for ; Tue, 25 Oct 2022 20:17:34 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.68] (unknown [178.232.223.95]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id E50872601DA; Tue, 25 Oct 2022 22:17:26 +0200 (CEST) Message-ID: Date: Tue, 25 Oct 2022 22:17:20 +0200 List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: Guidance for a USB microphone that always need a reset to work To: Trenton Schulz , freebsd-usb@freebsd.org References: Content-Language: en-US From: Hans Petter Selasky In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4Mxjsq0wpyz3Vsp X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_LONG(-1.00)[-0.997]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-usb@freebsd.org]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[selasky.org]; TO_DN_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 10/25/22 19:49, Trenton Schulz wrote: > Hello, > > I have a Blue Yeti USB microphone that I've used for a couple years > with FreeBSD. It works fineā€¦ eventually. > > When I first plug it in, it is recognized, and I can choose it as a > recording source, but it refuses to record anything. I'm not sure > exactly what the problem is, but mictests.com will complain that the > "track is paused" and nothing can unpause it. Maybe it can't be opened? > > Regardless, I found that when I had the system booted to Windows and > rebooted to FreeBSD, the microphone would work. So, I somehow hit upon > the idea of running > > usbconfig -d ugenX.Y reset > > And surprise, it works with no Windows! It seems that I always need to > issue a reset from a cold boot or a plug-in to get the microphone to > work. It will never work without the reset. > > The reset isn't a big problem, I normally remember to do it when I plug > it in, but it does feel like something that could be automated away. I > started to make a devd rule to run reset on device attach, but this > won't work (with good reason because I saw that this would easily > result in an endless loop). > > So, I thought maybe there might be some suggestions to maybe make this > work on the inital plug-in. Maybe it is a bug or quirk? Is there any > additional information anyone would need? > > Best regards, > Did you do any tracing using usbdump ? Maybe some USB control requests are too fast or get stalled. Windows is pretty slow attaching the drivers BTW compared to FreeBSD. --HPS