From nobody Fri Feb 07 10:38:21 2025 X-Original-To: freebsd-multimedia@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 4Yq9Rr18g3z5nB2C for ; Fri, 07 Feb 2025 10:38:32 +0000 (UTC) (envelope-from hans@stare.cz) Received: from mx.stare.cz (uvt.stare.cz [185.63.96.79]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "prizen.cz", Issuer "prizen.cz" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yq9Rp0ZjFz3ytj for ; Fri, 07 Feb 2025 10:38:29 +0000 (UTC) (envelope-from hans@stare.cz) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of hans@stare.cz designates 185.63.96.79 as permitted sender) smtp.mailfrom=hans@stare.cz; dmarc=none Received: from localhost (stare.cz [local]) by stare.cz (OpenSMTPD) with ESMTPA id 73181978 for ; Fri, 7 Feb 2025 11:38:21 +0100 (CET) Date: Fri, 7 Feb 2025 11:38:21 +0100 From: Jan Stary To: freebsd-multimedia@freebsd.org Subject: M-Audio Fast Track Ultra 8R Message-ID: List-Id: Multimedia discussions List-Archive: https://lists.freebsd.org/archives/freebsd-multimedia List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-multimedia@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spamd-Result: default: False [0.52 / 15.00]; RBL_SENDERSCORE_REPUT_9(-1.00)[185.63.96.79:from]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_MEDIUM(1.00)[0.998]; NEURAL_HAM_SHORT(-0.88)[-0.877]; MID_RHS_WWW(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:185.63.96.79]; ONCE_RECEIVED(0.20)[]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; RECEIVED_HELO_LOCALHOST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[stare.cz]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:50825, ipnet:185.63.96.0/22, country:CZ]; MIME_TRACE(0.00)[0:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-multimedia@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROMTLD(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-multimedia@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[] X-Spamd-Bar: / X-Rspamd-Queue-Id: 4Yq9Rp0ZjFz3ytj I got my hands on an M-Audio Fast Track Ultra 8R, an USB audio interface; eight tracks, 24/96, nice. It attaches like this on FreeBSD: ugen0.6: at usbus0 uaudio0 on uhub2 uaudio0: on usbus0 uaudio0: Play[0]: 96000 Hz, 8 ch, 24-bit S-LE PCM format, 2x4ms buffer. (selected) uaudio0: Play[0]: 88200 Hz, 8 ch, 24-bit S-LE PCM format, 2x4ms buffer. uaudio0: Play[0]: 48000 Hz, 8 ch, 24-bit S-LE PCM format, 2x4ms buffer. uaudio0: Play[0]: 44100 Hz, 8 ch, 24-bit S-LE PCM format, 2x4ms buffer. uaudio0: Record[0]: 96000 Hz, 8 ch, 24-bit S-LE PCM format, 2x4ms buffer. (selected) uaudio0: Record[0]: 88200 Hz, 8 ch, 24-bit S-LE PCM format, 2x4ms buffer. uaudio0: Record[0]: 48000 Hz, 8 ch, 24-bit S-LE PCM format, 2x4ms buffer. uaudio0: Record[0]: 44100 Hz, 8 ch, 24-bit S-LE PCM format, 2x4ms buffer. uaudio0: Single command MIDI quirk enabled uaudio0: MIDI sequencer. pcm3 on uaudio0 uaudio0: No HID volume keys found. Everything seems to work, recording the 8 channels. The device doesn't seem to be USB class-compliamt, though. Class 239 (= 0xef) is "miscelaneous", i.e. not audio, which is 0x01. https://en.wikipedia.org/wiki/USB#Device_classes I am trying to make this work on OpenBSD https://marc.info/?l=openbsd-misc&m=171972890415337&w=2 where it only attaches as ugen, not uaudio. I would like to learn here what it is that FreeBSD does while trying to attach the device, given that it is, apparently, not an adio-class compliant device. Is there a quirk that makes the kernel go "oh, but it is actualy USN audio device, even if it does not report as such; act accordingly"? Please excuse my ignorance. Where in the FreeBSD code can I look at the driver and see how exactly the device gets treated? Thank you Jan PS: M-Audio themselves have left users in the cold, abandoning the device. https://avidtech.my.salesforce-sites.com/pkb/articles/en_US/Knowledge/Fast-Track-Ultra-8R-Drivers