From nobody Sun Dec 11 00:07:02 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 4NV4nL1LYCz4jc2k for ; Sun, 11 Dec 2022 00:07:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NV4nK6WgGz4F6F for ; Sun, 11 Dec 2022 00:07:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670717221; 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: in-reply-to:in-reply-to:references:references; bh=xc9sWEGZTRLHyFCRs0PS1CEdfX2ePeTkSuDYySExOgc=; b=HFXyv0cFLLN3gvNHU4vo9+6FYxNfgt2TmMUV79DpmWDMrCq5t3ILJp8HBJ1ZgmD7246rqT LoAH/hf/Ob2SrneShHimZAV1H/XbfS2jfMmEXihoAkoOjlXlZ7jQapbuHK+zxy5Vjv7rJ5 EL66Yfz7Gg0t+jgIklG0UR/WN0uPOZiM4kLmvCxZ4zTyVgO/87doG1jA4xrqWoKkQ7/b7R OeKMiFz2P5wfQkbxq2JCiDn2jOHMppbeczPzR4tF8DKJZfBzHClvMJNQPy0edI6T5xszcW smS+db49zNyjPaAjvIQDJb7gHa2G8Pa5heFMRgqpOCHX0LAHyF84JbsBZetldA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670717221; a=rsa-sha256; cv=none; b=RHcqYrncfK1NhRzPwh9H6xF0ay1DNopdvnrsrwmspLzvWM8dg5aJAXmc3aBoXdZPrKBy0i RtsELE/c59wQQ4P4SVPFqPujPH1XT3CUJncwc/eqGXQO80Y4IYiU0/dPRFmCh11N0/iRhI zz9/4vCMR8TEwyhr2ZDAhFFcvUeO0ztCduNq9Zcls7LwSjwuq/jXDTr2sMOPc3csxvvfAh ghx8iGBMrNnLaxN9YeJzXn5J270R9i57BXYEUtQFNqcgwtlH9a5uNOJLuoG50GgUwteEgv LoB9ioAAX7fkgje2ctWt+3SypexUdHqmDtTCDGGzMDBuH8WEt5WWeFqrbh5MrA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NV4nK5SqTzZhf for ; Sun, 11 Dec 2022 00:07:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2BB071md006227 for ; Sun, 11 Dec 2022 00:07:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BB071xw006226 for usb@FreeBSD.org; Sun, 11 Dec 2022 00:07:01 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 268136] [snd_uaudio] Distorted audio from MOTU M4 USB interface Date: Sun, 11 Dec 2022 00:07:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markus.buretorp@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268136 --- Comment #12 from mburetorp --- virtual_oss reported it couldn't initialize the sample format (-b 32). But changing to -b 16 fixed that but only the first two channels worked (dsp_secondary didn't do anything). I believe this was related to vchanform= at which defaults to s16le:2.0. Changing vchanformat when in bitperfect mode however always changes it to s32le:4.0 regardless of what the argument is (= see command in previous reply). And when vchanformat is s32le:4.0 nothing works. BUT then I found out that disabling vchans fixes the problem and virtual_oss works as expected with -b 32 and all four channels (both dsp and dsp_second= ary works). And the good thing is that now the distortion is gone as well. So I simply do this in /etc/sysctl.conf and initialize virtual_oss like you said. dev.pcm.4.play.vchans=3D0 dev.pcm.4.rec.vchans=3D0 dev.pcm.4.bitperfect=3D1 Not sure what the conclusion is, but something is fishy with OSS and vchans= in my case. But then again with virtual_oss you don't need vchans anyway if I understand correctly. --=20 You are receiving this mail because: You are the assignee for the bug.=