aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2026-04-07 15:44:15 +0000
committerChristos Margiolis <christos@FreeBSD.org>2026-04-07 15:44:15 +0000
commitf369d4148b93410fe7f8ea989f66790403d23ce8 (patch)
tree1137e64ebcca9c7d2bc7c6ec48f2b42930e659cb
parent6642ba36f1860599a4c5562dc24f5dff080bbb42 (diff)
sound: Mark some snd_fmt* functions as static
Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D56238
-rw-r--r--sys/dev/sound/pcm/feeder.c6
-rw-r--r--sys/dev/sound/pcm/feeder.h3
2 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/sound/pcm/feeder.c b/sys/dev/sound/pcm/feeder.c
index 2a7f54e5d30f..af6e367895a0 100644
--- a/sys/dev/sound/pcm/feeder.c
+++ b/sys/dev/sound/pcm/feeder.c
@@ -181,7 +181,7 @@ feeder_find(struct pcm_channel *c, u_int32_t type)
#define score_val(s1) ((s1) & 0x3f00)
#define score_cse(s1) ((s1) & 0x7f)
-u_int32_t
+static u_int32_t
snd_fmtscore(u_int32_t fmt)
{
u_int32_t ret;
@@ -257,13 +257,13 @@ snd_fmtbestfunc(u_int32_t fmt, u_int32_t *fmts, int cheq)
return best;
}
-u_int32_t
+static u_int32_t
snd_fmtbestbit(u_int32_t fmt, u_int32_t *fmts)
{
return snd_fmtbestfunc(fmt, fmts, 0);
}
-u_int32_t
+static u_int32_t
snd_fmtbestchannel(u_int32_t fmt, u_int32_t *fmts)
{
return snd_fmtbestfunc(fmt, fmts, 1);
diff --git a/sys/dev/sound/pcm/feeder.h b/sys/dev/sound/pcm/feeder.h
index 834df463295d..e1e91d468455 100644
--- a/sys/dev/sound/pcm/feeder.h
+++ b/sys/dev/sound/pcm/feeder.h
@@ -63,9 +63,6 @@ struct pcm_feeder {
void feeder_register(void *p);
struct feeder_class *feeder_getclass(u_int32_t type);
-u_int32_t snd_fmtscore(u_int32_t fmt);
-u_int32_t snd_fmtbestbit(u_int32_t fmt, u_int32_t *fmts);
-u_int32_t snd_fmtbestchannel(u_int32_t fmt, u_int32_t *fmts);
u_int32_t snd_fmtbest(u_int32_t fmt, u_int32_t *fmts);
int feeder_add(struct pcm_channel *c, struct feeder_class *fc,