aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound/pcm
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2024-07-27 11:55:52 +0000
committerChristos Margiolis <christos@FreeBSD.org>2024-07-27 11:55:52 +0000
commitf477d412530a8cb9d8e058d00189ce127584f6f6 (patch)
tree28d4ebd25df5033025d56148adec146878e5d671 /sys/dev/sound/pcm
parent5b209e153b58515c0315f5902e18ecd7d75ecd2a (diff)
downloadsrc-f477d412530a8cb9d8e058d00189ce127584f6f6.tar.gz
src-f477d412530a8cb9d8e058d00189ce127584f6f6.zip
sound: Remove unused defines from pcm/sound.h
Sponsored by: The FreeBSD Foundation MFC after: 2 days Reviewed by: dev_submerge.ch, markj, emaste Differential Revision: https://reviews.freebsd.org/D45986
Diffstat (limited to 'sys/dev/sound/pcm')
-rw-r--r--sys/dev/sound/pcm/sound.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/dev/sound/pcm/sound.h b/sys/dev/sound/pcm/sound.h
index e4a3ba41ee7f..5f32dd767fe8 100644
--- a/sys/dev/sound/pcm/sound.h
+++ b/sys/dev/sound/pcm/sound.h
@@ -126,9 +126,6 @@ struct snd_mixer;
#define SD_F_PRIO_RD 0x10000000
#define SD_F_PRIO_WR 0x20000000
-#define SD_F_PRIO_SET (SD_F_PRIO_RD | SD_F_PRIO_WR)
-#define SD_F_DIR_SET 0x40000000
-#define SD_F_TRANSIENT 0xf0000000
#define SD_F_BITS "\020" \
"\001SIMPLEX" \
@@ -146,8 +143,7 @@ struct snd_mixer;
"\015EQ_BYPASSED" \
"\016EQ_PC" \
"\035PRIO_RD" \
- "\036PRIO_WR" \
- "\037DIR_SET"
+ "\036PRIO_WR"
#define PCM_ALIVE(x) ((x) != NULL && (x)->lock != NULL && \
!((x)->flags & SD_F_DYING))
@@ -162,7 +158,6 @@ struct snd_mixer;
/* many variables should be reduced to a range. Here define a macro */
#define RANGE(var, low, high) (var) = \
(((var)<(low))? (low) : ((var)>(high))? (high) : (var))
-#define DSP_BUFFSIZE (8192)
/* make figuring out what a format is easier. got AFMT_STEREO already */
#define AFMT_32BIT (AFMT_S32_LE | AFMT_S32_BE | AFMT_U32_LE | AFMT_U32_BE)
@@ -242,22 +237,12 @@ enum {
#define DSP_DEFAULT_SPEED 8000
-#define ON 1
-#define OFF 0
-
extern int pcm_veto_load;
extern int snd_unit;
extern int snd_verbose;
extern devclass_t pcm_devclass;
extern struct unrhdr *pcmsg_unrhdr;
-/*
- * some macros for debugging purposes
- * DDB/DEB to enable/disable debugging stuff
- * BVDDB to enable debugging when bootverbose
- */
-#define BVDDB(x) if (bootverbose) x
-
#ifndef DEB
#define DEB(x)
#endif