sound: Remove vchan_passthrough() and hw.snd.passthrough_verbose

Unused and confusing.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Christos Margiolis
2025-11-20 16:24:49 +01:00
parent 253b98f749
commit 3612ef642f
2 changed files with 0 additions and 23 deletions
-18
View File
@@ -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);
}
-5
View File
@@ -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) || \