From nobody Wed Oct 26 06:15:13 2022 X-Original-To: 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 4My4GK5DMfz4gcV3 for ; Wed, 26 Oct 2022 10:06:33 +0000 (UTC) (envelope-from trueos@norwegianrockcat.com) Received: from mailtransmit05.runbox.com (mailtransmit05.runbox.com [IPv6:2a0c:5a00:149::26]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4My4GJ62Yvz3qGk for ; Wed, 26 Oct 2022 10:06:32 +0000 (UTC) (envelope-from trueos@norwegianrockcat.com) Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1ondIq-00G0ah-GY for usb@freebsd.org; Wed, 26 Oct 2022 12:06:28 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norwegianrockcat.com; s=selector1; h=MIME-Version:Date: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:To:From:Subject :Message-ID; bh=okI6GLIalnkuZLMlA6NrZhkmOZAVBjT0rpJCkZiPQwA=; b=QQ7raYLM7rUAu qe49yvIGCD/526YADy2rSe3cM6Rb6uZ4p5x1MejarZ3CzkMs3sryCRi9xPL2ruMQI0R44sjoOFcpA 9V90FhKNB8EgU7xOXoe05VzXiITeG4DvLnnTXzkkcuAbTgR1hWkvnlF3VdPlm/WFV8bkHevTQP8kf jIH6Ac8TcsNiJk/i0hljWY9qFE2x6Nm0EpXU3IZA++P9KNoG5MocSm6Ig/Ht3hBqsRLNMcWRXn4of nEiM51poELq668c1439X1Lrwj5Lp1pVOwOK4WRCIpJyc21VzsOelUSEJ3JmOrxcU5702j/bm8gDZj Rpb1OvHWnJXPdmQSNlvCg==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1ondIp-0005sK-T3 for usb@freebsd.org; Wed, 26 Oct 2022 12:06:28 +0200 Received: by submission01.runbox with esmtpsa [Authenticated ID (786220)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1ondIZ-0001FC-Rz for usb@freebsd.org; Wed, 26 Oct 2022 12:06:11 +0200 Message-ID: <3681c84786f603ae96ccc5527957c2ce2ebf1213.camel@norwegianrockcat.com> Subject: Re: Guidance for a USB microphone that always need a reset to work From: Trenton Schulz To: usb@freebsd.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 26 Oct 2022 08:15:13 +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: Evolution 3.44.4 FreeBSD GNOME Team X-Rspamd-Queue-Id: 4My4GJ62Yvz3qGk X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=norwegianrockcat.com header.s=selector1 header.b=QQ7raYLM; dmarc=pass (policy=quarantine) header.from=norwegianrockcat.com; spf=pass (mx1.freebsd.org: domain of trueos@norwegianrockcat.com designates 2a0c:5a00:149::26 as permitted sender) smtp.mailfrom=trueos@norwegianrockcat.com X-Spamd-Result: default: False [-4.07 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.987]; NEURAL_HAM_LONG(-0.98)[-0.979]; DMARC_POLICY_ALLOW(-0.50)[norwegianrockcat.com,quarantine]; R_SPF_ALLOW(-0.20)[+ip6:2a0c:5a00:149::26]; R_DKIM_ALLOW(-0.20)[norwegianrockcat.com:s=selector1]; RCVD_IN_DNSWL_LOW(-0.10)[2a0c:5a00:149::26:from]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[usb@freebsd.org]; ASN(0.00)[asn:50304, ipnet:2a0c:5a00::/29, country:NO]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[4]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[norwegianrockcat.com:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Tue, 2022-10-25 at 22:17 +0200, Hans Petter Selasky wrote: > On 10/25/22 19:49, Trenton Schulz wrote: > > Hello, > >=20 > > I have a Blue Yeti USB microphone that I've used for a couple years > > with FreeBSD. It works fine=E2=80=A6 eventually. > >=20 > > 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? > >=20 > > 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 > >=20 > > usbconfig -d ugenX.Y reset > >=20 > > 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. > >=20 > > 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). > >=20 > > 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? > >=20 > > Best regards, > >=20 >=20 > Did you do any tracing using usbdump ? Maybe some USB control > requests=20 > are too fast or get stalled. No, I haven't done any tracing with usbdump. I guess I would start the dump at to the bus where I plug the microphone in? I'll do this a little later this week and report back. >=20 > Windows is pretty slow attaching the drivers BTW compared to FreeBSD. >=20 Yes, now that you mention it, I have noticed a couple of times that the microphone will take a while before it is recognized on Windows. Best regards, --=20 Trenton