Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147880479
D54140.1784665983.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D54140.1784665983.diff
View Options
diff --git a/sys/dev/sound/pcm/sound.h b/sys/dev/sound/pcm/sound.h
--- a/sys/dev/sound/pcm/sound.h
+++ b/sys/dev/sound/pcm/sound.h
@@ -66,7 +66,6 @@
#include <sys/poll.h>
#include <sys/sbuf.h>
#include <sys/soundcard.h>
-#include <sys/sndstat.h>
#include <sys/sysctl.h>
#include <sys/kobj.h>
#include <vm/vm.h>
@@ -167,9 +166,6 @@
int snd_setup_intr(device_t dev, struct resource *res, int flags,
driver_intr_t hand, void *param, void **cookiep);
-int sndstat_register(device_t dev, char *str);
-int sndstat_unregister(device_t dev);
-
/* These are the function codes assigned to the children of sound cards. */
enum {
SCF_PCM,
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -41,6 +41,7 @@
#include <dev/sound/pcm/ac97.h>
#include <dev/sound/pcm/vchan.h>
#include <dev/sound/pcm/dsp.h>
+#include <dev/sound/sndstat.h>
#include <sys/limits.h>
#include <sys/sysctl.h>
diff --git a/sys/dev/sound/sndstat.h b/sys/dev/sound/sndstat.h
new file mode 100644
--- /dev/null
+++ b/sys/dev/sound/sndstat.h
@@ -0,0 +1,7 @@
+#ifndef _SNDSTAT_H_
+#define _SNDSTAT_H_
+
+int sndstat_register(device_t dev, char *str);
+int sndstat_unregister(device_t dev);
+
+#endif /* _SNDSTAT_H_ */
diff --git a/sys/dev/sound/pcm/sndstat.c b/sys/dev/sound/sndstat.c
rename from sys/dev/sound/pcm/sndstat.c
rename to sys/dev/sound/sndstat.c
--- a/sys/dev/sound/pcm/sndstat.c
+++ b/sys/dev/sound/sndstat.c
@@ -40,13 +40,15 @@
#endif
#include <sys/param.h>
+#include <sys/dnv.h>
#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/nv.h>
-#include <sys/dnv.h>
+#include <sys/sndstat.h>
#include <sys/sx.h>
#include <dev/sound/pcm/sound.h>
+#include <dev/sound/sndstat.h>
#include "feeder_if.h"
diff --git a/sys/modules/sound/sound/Makefile b/sys/modules/sound/sound/Makefile
--- a/sys/modules/sound/sound/Makefile
+++ b/sys/modules/sound/sound/Makefile
@@ -15,8 +15,9 @@
SRCS+= mpu_if.h mpufoi_if.h
SRCS+= mpu_if.c mpufoi_if.c
SRCS+= ac97.c buffer.c channel.c dsp.c
-SRCS+= mixer.c sndstat.c sound.c vchan.c
+SRCS+= mixer.c sound.c vchan.c
SRCS+= midi.c mpu401.c
+SRCS+= sndstat.c
feeder_eq_gen.h: ${SYSDIR}/tools/sound/feeder_eq_mkfilter.awk
${AWK} -f ${SYSDIR}/tools/sound/feeder_eq_mkfilter.awk -- ${FEEDER_EQ_PRESETS} > ${.TARGET}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jul 21, 8:33 PM (3 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29221053
Default Alt Text
D54140.1784665983.diff (2 KB)
Attached To
Mode
D54140: sound: Move sndstat out of pcm/
Attached
Detach File
Event Timeline
Log In to Comment