From nobody Fri Mar 01 21:50:28 2024 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 4TmhbV1Nh7z5D6wX for ; Fri, 1 Mar 2024 21:50:30 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TmhbV0yCFz45r1 for ; Fri, 1 Mar 2024 21:50:30 +0000 (UTC) (envelope-from leres@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709329830; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=llzJCXxdI0BcnNswBUlCtbvo2awDSCOjQquQeAmHa+U=; b=DmWw8J3540fVjr3lO+15GpQwPDJwRAqQ59P5BJBZKznmZy7XbGjF3+fY23jDgh3cnn7K+W VUEyCZ90cWmltCnl8/UAYkJt2LZQiieYH/6ZrkrUkBLZYUWAy6+pv1R3D7Xj0bTtGETlaR ZeaC6IzzfaJYyA9TG1tyTVEJn5AFZ/e1Ub9VqIxywRufNxFR6Bxt3x5YnxOj/RHmxPxpoz togrLwSYL73Xc0eaxCb8h+2Qu0+qc7oMRA5BvScOkIIpirGnoGXaNib00dKs+uWq/C45Rn fwN2cuToH2AhJQjBaLu0b3o+nzcmfBl2ki+AKEI35tSIvYS6/s2BHzvf5j678g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709329830; a=rsa-sha256; cv=none; b=m9RCr0BBFnYVRr5AsCAUCo0YJ6haMtpPxMC6mVbFiiuhIRCwOqyuNjXNONjO0MzjENdVCY PiLa0Dh+/sGrkZaiZV4OcRYwVTQ/4Hk/LdgQ455wcYcIv/rWdCrkXM5VjhljVKy31TswyT IHCg9hfa8yU1TRdC7Dha/pXrf4BJNAQ55mnto42y4KOJtsChDATkkQe92YhTXFWC0hKFzA j3rMz8zUKAahiBbWTfFVwWmlmc0JghAOchypvivPc1uFBCRCUPAzocuoW+dEnNzc562RRR QsQUDl8xB6TYckgR0NeLvL5GIKh7jGQr0syAG2XbgVFOuO15E8+C4WPjrmJSgg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709329830; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=llzJCXxdI0BcnNswBUlCtbvo2awDSCOjQquQeAmHa+U=; b=tG6wtfgbgNb2NylP1pG36Gbs8817OH3H1eRyIn2X+vfxS4joYVKqLkSQfaND6wLMkFdjy1 CLNZX81aahEnP1lMC2tOU745jvSCRAKXpNs+TcwOEWSHbO1yeyndHde5oVOHi20BNt0Md6 kaaUx8J23cg1hMxAgHhByo//LfyqvbbT53N0w5IbScL/QcKXlM/n1Ke9TKXwMgxC4govVT qS5zbEeONE6F3K+mWKqQv6DTVxv2in/82u0uHFHzC6UCRWU98jao74VoWXMGXv0MkmZEy9 mKWn+YhiqycdgWXUOgogpCNuKYg3k2viLDTV+S+kX28NmR2RH4eBraVgcRsDiQ== Received: from [IPV6:fd:1965::2] (unknown [IPv6:2600:1700:ab1b:6800:2e0:edff:fece:8f27]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: leres) by smtp.freebsd.org (Postfix) with ESMTPSA id 4TmhbT6WW0z1J56 for ; Fri, 1 Mar 2024 21:50:29 +0000 (UTC) (envelope-from leres@freebsd.org) Message-ID: Date: Fri, 1 Mar 2024 13:50:28 -0800 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 Thunderbird Content-Language: en-US From: Craig Leres To: freebsd-usb@freebsd.org Subject: How to configure a U24XL adc/dac for digital input Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit I've been using an ESI U24XL for about 8 years to simultaneously record and play back S/PDIF (using in-house C programs under FreeBSD). Recently recording stopped working (playback is still fine) and I believe the cause is that the device has somehow switched to using its analog input. I installed the driver and control panel on a windows system and it can easily switch between inputs. I installed wireshark and usbpcap and made some short captures one for switching from digital to analog and another switching back to digital: https://xse.com/leres/scratch/u24xl-analog.pcapng https://xse.com/leres/scratch/u24xl-digital.pcapng I believe the "URB_CONTROL out" packet is used to switch inputs; looking at the two versions of that packet I see "data fragment" is 01 when going to analog and 02 when going to digital. Could someone please give me some hints on how I might send these packets under FreeBSD? Craig