From nobody Thu Nov 27 00:33:35 2025 X-Original-To: dev-commits-src-all@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 4dGy8c0LTbz6Ht0K for ; Thu, 27 Nov 2025 00:33:36 +0000 (UTC) (envelope-from git@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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dGy8b4LQbz43VN for ; Thu, 27 Nov 2025 00:33:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764203615; 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=JlAcdzkG4N3puaqBf9k6bgMuh2xGlc66nf8jCb7qVZU=; b=qGCjGuMmzhr09GKlZAvUpz0VGJGtkOvzQ8VmaIdk99F5P+51vqcuTSgFejCQY1vr8QEAnf AOPC7bsW8AtaswH8Gxdn6qtAWqVzT6FYhFCmgJYaDGbxjWZhPB8X85bVqfsui/VlB/cYPg 4Mta1FbYVxIq6VqNtF1M/FCGGCWiQFBRX9iLtfTHWYk2WJGlKs5FSZ1ihD4IR+ok4xb8T0 U1kogaLyv7YEmcRvwf811hl6iCA/S/o/P6Kcx6EChnfDkG9g5h+myUoCP9MDT6Hah+79BL xFntZoUvamQT1pOjH/YY1uGiG3bgqwGUEBPEuGrqjJKXsIiM6/mZTWkDqbTVLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764203615; 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=JlAcdzkG4N3puaqBf9k6bgMuh2xGlc66nf8jCb7qVZU=; b=ejFvpu+zd6pzmfXEJybFcxBexndnW8p5nYSrbd+K+pnRPuEs6QHJece/boKoxGgU3h90XE Lc6frGzn8179R8pweb8BRTczHaAa0urerZ9G6aeZMNZGe8YRGtA9jy+PlVO9fvuFZlcB2p nN0uvIBYcsSOctGSYyzKinc4VDbU8X6rULoUlQYfURwOUD3+ApLkwd+xyHN2zG0lKN/e4X SFkluv4bqJ/qy8jInwpgm/8Q4VYoVF67vu77TSbYh7LLqbpopkwjVix8zS2fiwFdkDJT2H kKLjGTbWs3BUuQlnbUVn6DEWoeQRSAtvPkvDqIdB6hI+2OyImB/EF8o7OXDXQQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1764203615; a=rsa-sha256; cv=none; b=WMpriqm3wtwbMIoLM6Nznne8ZkCSV9mfE7LLaAOIkCCOtK02vFfewSpHzPbR7sbqemQVs2 r31+vRgjLpuyTXd8rxk4AuwfV7v8TQXFN4aLG06WST1Z5TrA3UUYKAb/n6f+SALjmgReE3 B/2Kg//wBW5TRDTXwMnzlNdrlfPB10cnv4/hNl01FbXBJ82ibFiolcTi6HyXD9Q4gQKY+e R34jEd9inRas5wcvcq8ewCgBLSsx59SXWlu9WBEAA7UwbVXaNbhsS3MN/dJoCSTR33pSMn lRSW8rLqMiuwqVHMFXSSObwzf6VNNEX0vv6YaPXVGY8PbED1LKEMCkmhWTFp8Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dGy8b3n57z18WS for ; Thu, 27 Nov 2025 00:33:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id f2ba by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 27 Nov 2025 00:33:35 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: 3cf8333f877d - stable/15 - sound: Remove vchan_passthrough() and hw.snd.passthrough_verbose List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 3cf8333f877dce4eeeec850684508a7ffec99c95 Auto-Submitted: auto-generated Date: Thu, 27 Nov 2025 00:33:35 +0000 Message-Id: <69279c5f.f2ba.2845986a@gitrepo.freebsd.org> The branch stable/15 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=3cf8333f877dce4eeeec850684508a7ffec99c95 commit 3cf8333f877dce4eeeec850684508a7ffec99c95 Author: Christos Margiolis AuthorDate: 2025-11-20 15:24:49 +0000 Commit: Christos Margiolis CommitDate: 2025-11-27 00:33:19 +0000 sound: Remove vchan_passthrough() and hw.snd.passthrough_verbose Unused and confusing. Sponsored by: The FreeBSD Foundation MFC after: 1 week (cherry picked from commit 3612ef642f511a1bd9f759da87abeafe7d6ff110) --- sys/dev/sound/pcm/vchan.c | 18 ------------------ sys/dev/sound/pcm/vchan.h | 5 ----- 2 files changed, 23 deletions(-) diff --git a/sys/dev/sound/pcm/vchan.c b/sys/dev/sound/pcm/vchan.c index b31e28d51453..dcb49e3003d0 100644 --- a/sys/dev/sound/pcm/vchan.c +++ b/sys/dev/sound/pcm/vchan.c @@ -47,13 +47,6 @@ #define FMTLIST_OFFSET 4 #define DIGFMTS_MAX 2 -#ifdef SND_DEBUG -static int snd_passthrough_verbose = 0; -SYSCTL_INT(_hw_snd, OID_AUTO, passthrough_verbose, CTLFLAG_RWTUN, - &snd_passthrough_verbose, 0, "passthrough verbosity"); - -#endif - struct vchan_info { struct pcm_channel *channel; struct pcmchan_caps caps; @@ -723,11 +716,7 @@ vchan_destroy(struct pcm_channel *c) } int -#ifdef SND_DEBUG -vchan_passthrough(struct pcm_channel *c, const char *caller) -#else vchan_sync(struct pcm_channel *c) -#endif { int ret; @@ -744,13 +733,6 @@ vchan_sync(struct pcm_channel *c) if (ret != 0) c->flags |= CHN_F_DIRTY; -#ifdef SND_DEBUG - if (snd_passthrough_verbose) { - device_printf(c->dev, "%s(%s/%s) %s() -> re-sync err=%d\n", - __func__, c->name, c->comm, caller, ret); - } -#endif - return (ret); } diff --git a/sys/dev/sound/pcm/vchan.h b/sys/dev/sound/pcm/vchan.h index 65b0218781fb..5d8057cd4b7f 100644 --- a/sys/dev/sound/pcm/vchan.h +++ b/sys/dev/sound/pcm/vchan.h @@ -39,12 +39,7 @@ extern bool snd_vchans_enable; int vchan_create(struct pcm_channel *, struct pcm_channel **); int vchan_destroy(struct pcm_channel *); -#ifdef SND_DEBUG -int vchan_passthrough(struct pcm_channel *, const char *); -#define vchan_sync(c) vchan_passthrough(c, __func__) -#else int vchan_sync(struct pcm_channel *); -#endif #define VCHAN_SYNC_REQUIRED(c) \ (((c)->flags & CHN_F_VIRTUAL) && (((c)->flags & CHN_F_DIRTY) || \