From nobody Thu May 25 12:48:46 2023 X-Original-To: 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 4QRnt65YyKz4TS7C for ; Thu, 25 May 2023 12:48:46 +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 4QRnt629bMz41py for ; Thu, 25 May 2023 12:48:46 +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=1685018926; 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=K26kJaNFVn9yzPpUDyNVr1Ux3bxgXwV+jS1Vv9zgLw4=; b=TsjHMIqkUz7wKocasOnsLPckQXpDnHPtEt9sDZRF0kJ5/bJ9Z6DyvCTDcAmKMOiN0nX/k7 c7NtjOLxhdSdOzFoZQeLjS+OfWR1KQWHpXdtH/ymCuMHxr5DFZXCXkLoNElKKqqtL3PZN5 LZPW2YEsIgMA0iqqrtYax+QFvApVYACN7bPUConOaxbcJ6orhCcQxTAVqkAQUZ7DVTlyio zqMHKT7km5PJvLB0avAFmyXpQbDshZ4sCu4Tm9kN7yWB97mmgUq08LgfcbOQ/K4f7SF4ND Dsic/JCYDRe5kQVkgSLLih/ZY7HLIE1Z/9floTcSamvNrC4onfqs4LQUyXW49g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685018926; a=rsa-sha256; cv=none; b=d+wXNxvbU+hPnHL8JRSv88fXTdNlI0QLZ9uGMEIWUVpGJFH7veI2sRjU1P7z1VqEVEY88P 2zA42KXFv1w4FRil728jXNsn3U8oRk/c2a4JV0Zod1IprUhZHjBaqrEECDpVn951qUdAls +ia7M4ESbkpUc9Z8ryyMjKzBNhd7mBPMWPLyr2IaGfAb+PCsCSAVk/SpXd/Cet+vkP6oHb Yr7OXYL6T6L9Ut8XyZu5qDDCITEWxtSu7Sw7xActUUzVg4qK3kOeFzDjWFFzKiOuSkCbFa SKtDsKIjugvvRaLVoxjg1HhQWFpvqu2e5HPp/sQDmucXHaUUPfta9gvIA+LPfw== 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 4QRnt61DX5zQ5k for ; Thu, 25 May 2023 12:48:46 +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 34PCmk5n068314 for ; Thu, 25 May 2023 12:48:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34PCmkmH068313 for multimedia@FreeBSD.org; Thu, 25 May 2023 12:48:46 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: multimedia@FreeBSD.org Subject: [Bug 271559] [sound] [snd_uaudio] Creative Katana V2X garbled audio Date: Thu, 25 May 2023 12:48:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dev@submerge.ch X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: multimedia@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: 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271559 --- Comment #12 from Florian Walpen --- (In reply to Emanuel Haupt from comment #11) Ok, if it works sometimes it's not completely hopeless :) I was wrong about the conversions, looks like the application specific > {userland} -> feeder_root(0x00201000) -> feeder_volume(0x00201000) -> fee= der_rate(0x00201000 q:1 44100 -> 48000) -> {hardware} doesn't go to hardware, but into the simplified default conversion chain: > {userland} -> feeder_mixer(0x00201000) -> feeder_matrix(2.0 -> 5.1) -> fe= eder_format(0x08601000 -> 0x08610000) -> {hardware} But there's another vchan opened by a different (unnamed) application, which may interfere with your settings. It's 2 channel 16bit at 44100kHz, playback and recording: > pcm8:play:dsp8.p0[pcm8:virtual:dsp8.vp1]: spd 44100/48000, fmt 0x00200010= /0x00201000, flags 0x10000000, 0x0000002b > interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:8192/1024/8] > channel flags=3D0x10000000 > {userland} -> feeder_root(0x00200010) -> feeder_format(0x00200010 = -> 0x00201000) -> feeder_volume(0x00201000) -> feeder_rate(0x00201000 q:1 4= 4100 -> 48000) -> {hardware} Maybe a sound server running, like pulseaudio? That could also explain the "sometimes". I'd suggest to disable these while experimenting, until you ha= ve a working solution. Also you can disable vchan conversion completely if you run virtual_oss exclusively on that device: > sysctl dev.pcm.8.play.vchans=3D0 > sysctl dev.pcm.8.rec.vchans=3D0 That should give you a "barebone" 6 channel 24bit 48kHz device to run virtual_oss on, conversion can be done in virtual_oss. @HPS: How would you map the 2 channels to 5.1 in virtual_oss? Only to the "front" speakers or spread it to all channels? --=20 You are receiving this mail because: You are the assignee for the bug.=