aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2025-11-11 12:05:20 +0000
committerChristos Margiolis <christos@FreeBSD.org>2025-11-11 12:05:20 +0000
commit06eb65e11d7a66caec358966dcf892c9f4c2e411 (patch)
tree6cc203e7d8692ab51b75dcacb54f883f1654dd97
parent6d6eb25d0b19443089749e288f091bf26fc58f70 (diff)
sound: Retire unused sndbuf_getflags() and sndbuf_setflags()
Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D53525
-rw-r--r--sys/dev/sound/pcm/buffer.c14
-rw-r--r--sys/dev/sound/pcm/buffer.h3
2 files changed, 0 insertions, 17 deletions
diff --git a/sys/dev/sound/pcm/buffer.c b/sys/dev/sound/pcm/buffer.c
index ab3c8d447b21..e3d2f27f9f81 100644
--- a/sys/dev/sound/pcm/buffer.c
+++ b/sys/dev/sound/pcm/buffer.c
@@ -694,20 +694,6 @@ sndbuf_feed(struct snd_dbuf *from, struct snd_dbuf *to, struct pcm_channel *chan
return (0);
}
-u_int32_t
-sndbuf_getflags(struct snd_dbuf *b)
-{
- return b->flags;
-}
-
-void
-sndbuf_setflags(struct snd_dbuf *b, u_int32_t flags, int on)
-{
- b->flags &= ~flags;
- if (on)
- b->flags |= flags;
-}
-
/**
* @brief Clear the shadow buffer by filling with samples equal to zero.
*
diff --git a/sys/dev/sound/pcm/buffer.h b/sys/dev/sound/pcm/buffer.h
index 6c16c0c1f2d5..421db261566d 100644
--- a/sys/dev/sound/pcm/buffer.h
+++ b/sys/dev/sound/pcm/buffer.h
@@ -111,9 +111,6 @@ int sndbuf_acquire(struct snd_dbuf *b, u_int8_t *from, unsigned int count);
int sndbuf_dispose(struct snd_dbuf *b, u_int8_t *to, unsigned int count);
int sndbuf_feed(struct snd_dbuf *from, struct snd_dbuf *to, struct pcm_channel *channel, struct pcm_feeder *feeder, unsigned int count);
-u_int32_t sndbuf_getflags(struct snd_dbuf *b);
-void sndbuf_setflags(struct snd_dbuf *b, u_int32_t flags, int on);
-
#ifdef OSSV4_EXPERIMENT
void sndbuf_getpeaks(struct snd_dbuf *b, int *lp, int *rp);
#endif