From nobody Wed Dec 14 07:39:53 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 4NX6hT4Tbmz4jfhg for ; Wed, 14 Dec 2022 07:39:53 +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 4NX6hT3DBZz3pnt for ; Wed, 14 Dec 2022 07:39:53 +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=1671003593; 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=hFgSEjpwGwiueafHq8/Zz39sxq2xHCLpgqR2LhxJyC4=; b=ZzIup4HLMTv2gGJFuRQSEZ0sTY8jBEpx0MiQd5TwwGulWKv13TiyOxmZAC4+oj5scke3x4 yIljgA6vNZt9+9JcJwkZYN4W6HmrHm0GHwh/tGQsj7Lg9iD684Twkueb9ZOLXxhamWYM/9 haHPvJtCWLCui1xj9mLijnR2AZXwyowsyP0zlm2Sul7ws2gXdbO+zqfHj9aP+0nKMo4hQW WDJE505ejbdghaS0alAl39eAdCggJYOB+1ZbBwGCd/H5WkkUKn60O2O1mgNLU5KZLWbVHE KUybyX2159ZhbvyyYs+6QE7ikq0TY9NpsPKySZU3Zcw9cpMLWYh/O1liDz9Lwg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671003593; a=rsa-sha256; cv=none; b=g0AGxZav0/wiBhdW1o0im1bKHPh5K89JVZwSygZ+t0RcTNw+HW9PsfY9g4q4g6WbZuBo79 0kT8VGO9a628mFenqRi3R3CJDDCt1/vjB162TEZHVMATdy+mMHXItp+njLSWP4voDs/KDN GQvU2QBgY2XINDBJruGUNt857feS7jN3d6DGJgHSGpEJ97hbY10ayvubq/mS4h0ZyyhGqz +0d8TTqqiq8PNW7UtbFaHHeQIMcIKknDEK9fFIA3jFOxgg7lD0jYtyjaa6j0tX0aMW2pzv 1OwBAqDPebPoDT11xM4SOhkH0Vin59XJood7qHizZfQW205oHuTbwyMWhrc8/Q== 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 4NX6hT22dyzlsj for ; Wed, 14 Dec 2022 07:39:53 +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 2BE7dr4o010808 for ; Wed, 14 Dec 2022 07:39:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BE7drBt010807 for usb@FreeBSD.org; Wed, 14 Dec 2022 07:39:53 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: Wed, 14 Dec 2022 07:39:53 +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 #20 from mburetorp --- (In reply to Florian Walpen from comment #19) I think you might be right about recording channels. Pressing record in Audacity also fixes the distorted sound similar to Pulseaudio. Here is snds= tat again before and after pressing record in Audacity. before (distorted): pcm4: at ? kld snd_uaudio (1p:2v/1r:1v) default snddev flags=3D0x2e6 [pcm4:play:dsp4.p0]: spd 48000, fmt 0x00200010/0x00401000, flags 0x00002108, 0x00000046 interrupts 377, underruns 0, feed 752, ready 0 [b:12288/6144/2|bs:4096/2048/2] channel flags=3D0x2108 {userland} -> feeder_mixer(0x00200010) -> feeder_format(0x00200010 = -> 0x00201000) -> feeder_matrix(2.0 -> 4.0) -> {hardware} pcm4:play:dsp4.p0[pcm4:virtual:dsp4.vp0]: spd 48000, fmt 0x00200010, flags 0x1000114c, 0x00000021, pid 1784 (firefox) interrupts 0, underruns 0, feed 752, ready 12368 [b:0/0/0|bs:16384/8192/2] channel flags=3D0x1000114c {userland} -> feeder_root(0x00200010) -> feeder_volume(0x00200010) = -> {hardware} pcm4:play:dsp4.p0[pcm4:virtual:dsp4.vp1]: spd 384000/48000, fmt 0x00100010/0x00200010, flags 0x10000000, 0x00000069 interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:32768/4096/8] channel flags=3D0x10000000 {userland} -> feeder_root(0x00100010) -> feeder_rate(0x00100010 q:1 384000 -> 48000) -> feeder_matrix(1.0 -> 2.0) -> feeder_volume(0x00200010) = -> {hardware} [pcm4:record:dsp4.r0]: spd 48000, fmt 0x00200010/0x00401000, flags 0x00002100, 0x00000047 interrupts 553, overruns 0, feed 3306, hfree 12288, sfree 4096 [b:12288/6144/2|bs:4096/2048/2] channel flags=3D0x2100 {hardware} -> feeder_root(0x00401000) -> feeder_format(0x00401000 -> 0x00400010) -> feeder_matrix(4.0 -> 2.0) -> feeder_mixer(0x00200010) -> {userland} pcm4:record:dsp4.r0[pcm4:virtual:dsp4.vr0]: spd 44100/48000, fmt 0x00200010, flags 0x10000000, 0x00000029 interrupts 0, overruns 0, feed 0, hfree 0, sfree 32768 [b:0/0/0|bs:32768/256/128] channel flags=3D0x10000000 {hardware} -> feeder_root(0x00200010) -> feeder_rate(0x00200010 q:1 48000 -> 44100) -> feeder_volume(0x00200010) -> {userland} after (clean): pcm4: at ? kld snd_uaudio (1p:2v/1r:1v) default snddev flags=3D0x2e6 [pcm4:play:dsp4.p0]: spd 48000, fmt 0x00200010/0x00401000, flags 0x00002108, 0x00000046 interrupts 1299, underruns 0, feed 2596, ready 0 [b:12288/6144/2|bs:4096/2048/2] channel flags=3D0x2108 {userland} -> feeder_mixer(0x00200010) -> feeder_format(0x00200010 = -> 0x00201000) -> feeder_matrix(2.0 -> 4.0) -> {hardware} pcm4:play:dsp4.p0[pcm4:virtual:dsp4.vp0]: spd 48000, fmt 0x00200010, flags 0x1000114c, 0x00000021, pid 1784 (firefox) interrupts 0, underruns 0, feed 2596, ready 13472 [b:0/0/0|bs:16384/8192/2] channel flags=3D0x1000114c {userland} -> feeder_root(0x00200010) -> feeder_volume(0x00200010) = -> {hardware} pcm4:play:dsp4.p0[pcm4:virtual:dsp4.vp1]: spd 384000/48000, fmt 0x00100010/0x00200010, flags 0x10000000, 0x00000069 interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:32768/4096/8] channel flags=3D0x10000000 {userland} -> feeder_root(0x00100010) -> feeder_rate(0x00100010 q:1 384000 -> 48000) -> feeder_matrix(1.0 -> 2.0) -> feeder_volume(0x00200010) = -> {hardware} [pcm4:record:dsp4.r0]: spd 48000, fmt 0x00200010/0x00401000, flags 0x00002108, 0x00000047 interrupts 556, overruns 0, feed 3324, hfree 12288, sfree 4095 [b:12288/6144/2|bs:4096/2048/2] channel flags=3D0x2108 {hardware} -> feeder_root(0x00401000) -> feeder_format(0x00401000 -> 0x00400010) -> feeder_matrix(4.0 -> 2.0) -> feeder_mixer(0x00200010) -> {userland} pcm4:record:dsp4.r0[pcm4:virtual:dsp4.vr0]: spd 44100/48000, fmt 0x00200010, flags 0x1000114c, 0x00000029, pid 1800 (audacity) interrupts 0, overruns 0, feed 1720, hfree 0, sfree 26428 [b:0/0/0|bs:32768/8192/4] channel flags=3D0x1000114c {hardware} -> feeder_root(0x00200010) -> feeder_rate(0x00200010 q:1 48000 -> 44100) -> feeder_volume(0x00200010) -> {userland} I haven't tested virtual_oss -P yet but I suspect it will be the same. --=20 You are receiving this mail because: You are the assignee for the bug.=