summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2001-07-03 12:53:09 +0000
committercg <cg@FreeBSD.org>2001-07-03 12:53:09 +0000
commit5aa3adcdfbf412b52affde176533d5484de45d7d (patch)
tree6697272ec784f2b4c7fff7c9bc73f5addc4ec74e /sys/dev/sound/pcm
parent82ed7d29e54eb208e367dbf8ea3e04e0631ed62c (diff)
downloadFreeBSD-src-5aa3adcdfbf412b52affde176533d5484de45d7d.zip
FreeBSD-src-5aa3adcdfbf412b52affde176533d5484de45d7d.tar.gz
remove obsolete typedefs.
only define INTR_TYPE_AV if it is not already defined.
Diffstat (limited to 'sys/dev/sound/pcm')
-rw-r--r--sys/dev/sound/pcm/channel.h1
-rw-r--r--sys/dev/sound/pcm/sound.c1
-rw-r--r--sys/dev/sound/pcm/sound.h10
3 files changed, 5 insertions, 7 deletions
diff --git a/sys/dev/sound/pcm/channel.h b/sys/dev/sound/pcm/channel.h
index 6ad1b43..9095c1b 100644
--- a/sys/dev/sound/pcm/channel.h
+++ b/sys/dev/sound/pcm/channel.h
@@ -36,7 +36,6 @@ struct pcmchan_caps {
u_int32_t *fmtlist;
u_int32_t caps;
};
-typedef struct pcmchan_caps pcmchan_caps;
#define CHN_NAMELEN 32
struct pcm_channel {
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c
index 81b7f1f..793b48a 100644
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -37,6 +37,7 @@ devclass_t pcm_devclass;
int snd_unit = 0;
TUNABLE_INT("hw.snd.unit", &snd_unit);
#endif
+
int snd_autovchans = 0;
int snd_maxvchans = 0;
#if __FreeBSD_version > 500000
diff --git a/sys/dev/sound/pcm/sound.h b/sys/dev/sound/pcm/sound.h
index 934fd68..3bb0b27 100644
--- a/sys/dev/sound/pcm/sound.h
+++ b/sys/dev/sound/pcm/sound.h
@@ -75,12 +75,14 @@
#if __FreeBSD_version > 500000
#define USING_MUTEX
#define USING_DEVFS
-#else
-#define INTR_TYPE_AV INTR_TYPE_TTY
#endif
#define SND_DYNSYSCTL
#ifndef INTR_MPSAFE
+#define INTR_TYPE_AV INTR_TYPE_TTY
+#endif
+
+#ifndef INTR_MPSAFE
#define INTR_MPSAFE 0
#endif
@@ -97,13 +99,9 @@ struct isa_device { int dummy; };
#endif /* _OS_H_ */
struct pcm_channel;
-typedef struct pcm_channel pcm_channel;
struct pcm_feeder;
-typedef struct pcm_feeder pcm_feeder;
struct snd_dbuf;
-typedef struct snd_dbuf snd_dbuf;
struct snd_mixer;
-typedef struct snd_mixer snd_mixer;
#include <dev/sound/pcm/buffer.h>
#include <dev/sound/pcm/channel.h>
OpenPOWER on IntegriCloud