diff options
author | John Baldwin <jhb@FreeBSD.org> | 2023-08-18 20:05:12 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2023-08-18 20:05:12 +0000 |
commit | 5aacf339f60109917f8e18f5645cb66f544b33d2 (patch) | |
tree | e2aa577108536de635c83272dae5713bcc514a00 /sys/dev/sound/pcm | |
parent | cbe53bd975b7fa05eb5165c5d6bbcb7b4b37407f (diff) | |
download | src-5aacf339f60109917f8e18f5645cb66f544b33d2.tar.gz src-5aacf339f60109917f8e18f5645cb66f544b33d2.zip |
sys: Remove SND_DECLARE_FILE
Reviewed by: kbowling, imp, emaste
Differential Revision: https://reviews.freebsd.org/D41499
Diffstat (limited to 'sys/dev/sound/pcm')
-rw-r--r-- | sys/dev/sound/pcm/ac97.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/ac97_patch.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/buffer.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/channel.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/dsp.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/feeder.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/feeder_chain.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/feeder_eq.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/feeder_format.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/feeder_matrix.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/feeder_mixer.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/feeder_rate.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/feeder_volume.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/mixer.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/sndstat.c | 13 | ||||
-rw-r--r-- | sys/dev/sound/pcm/sound.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pcm/sound.h | 4 | ||||
-rw-r--r-- | sys/dev/sound/pcm/vchan.c | 2 |
18 files changed, 0 insertions, 49 deletions
diff --git a/sys/dev/sound/pcm/ac97.c b/sys/dev/sound/pcm/ac97.c index d83e3f2fefa5..d04ec2d8271c 100644 --- a/sys/dev/sound/pcm/ac97.c +++ b/sys/dev/sound/pcm/ac97.c @@ -38,8 +38,6 @@ #include "mixer_if.h" -SND_DECLARE_FILE(""); - static MALLOC_DEFINE(M_AC97, "ac97", "ac97 codec"); struct ac97mixtable_entry { diff --git a/sys/dev/sound/pcm/ac97_patch.c b/sys/dev/sound/pcm/ac97_patch.c index aff8075fe96c..671b6598f51a 100644 --- a/sys/dev/sound/pcm/ac97_patch.c +++ b/sys/dev/sound/pcm/ac97_patch.c @@ -34,8 +34,6 @@ #include <dev/sound/pcm/ac97.h> #include <dev/sound/pcm/ac97_patch.h> -SND_DECLARE_FILE(""); - void ad1886_patch(struct ac97_info* codec) { #define AC97_AD_JACK_SPDIF 0x72 diff --git a/sys/dev/sound/pcm/buffer.c b/sys/dev/sound/pcm/buffer.c index d5a519362c5e..915c9110f107 100644 --- a/sys/dev/sound/pcm/buffer.c +++ b/sys/dev/sound/pcm/buffer.c @@ -40,8 +40,6 @@ #define SND_DECLARE_FXDIV #include "snd_fxdiv_gen.h" -SND_DECLARE_FILE(""); - struct snd_dbuf * sndbuf_create(device_t dev, char *drv, char *desc, struct pcm_channel *channel) { diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c index d56f5fb51dc9..4cb2b2a92b44 100644 --- a/sys/dev/sound/pcm/channel.c +++ b/sys/dev/sound/pcm/channel.c @@ -38,8 +38,6 @@ #include "feeder_if.h" -SND_DECLARE_FILE(""); - int report_soft_formats = 1; SYSCTL_INT(_hw_snd, OID_AUTO, report_soft_formats, CTLFLAG_RW, &report_soft_formats, 0, "report software-emulated formats"); diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c index 98d241e65a52..5aa7979b98c9 100644 --- a/sys/dev/sound/pcm/dsp.c +++ b/sys/dev/sound/pcm/dsp.c @@ -43,8 +43,6 @@ #include <vm/vm_page.h> #include <vm/vm_pager.h> -SND_DECLARE_FILE(""); - static int dsp_mmap_allow_prot_exec = 0; SYSCTL_INT(_hw_snd, OID_AUTO, compat_linux_mmap, CTLFLAG_RWTUN, &dsp_mmap_allow_prot_exec, 0, diff --git a/sys/dev/sound/pcm/feeder.c b/sys/dev/sound/pcm/feeder.c index 8fb377533907..8278a85948a8 100644 --- a/sys/dev/sound/pcm/feeder.c +++ b/sys/dev/sound/pcm/feeder.c @@ -35,8 +35,6 @@ #include "feeder_if.h" -SND_DECLARE_FILE(""); - static MALLOC_DEFINE(M_FEEDER, "feeder", "pcm feeder"); #define MAXFEEDERS 256 diff --git a/sys/dev/sound/pcm/feeder_chain.c b/sys/dev/sound/pcm/feeder_chain.c index 01def5f6e9cb..52351ef58510 100644 --- a/sys/dev/sound/pcm/feeder_chain.c +++ b/sys/dev/sound/pcm/feeder_chain.c @@ -34,8 +34,6 @@ #include "feeder_if.h" -SND_DECLARE_FILE(""); - /* chain state */ struct feeder_chain_state { uint32_t afmt; /* audio format */ diff --git a/sys/dev/sound/pcm/feeder_eq.c b/sys/dev/sound/pcm/feeder_eq.c index 70797a706367..a097b13cd986 100644 --- a/sys/dev/sound/pcm/feeder_eq.c +++ b/sys/dev/sound/pcm/feeder_eq.c @@ -45,8 +45,6 @@ #define SND_USE_FXDIV #include "snd_fxdiv_gen.h" - -SND_DECLARE_FILE(""); #endif #include "feeder_eq_gen.h" diff --git a/sys/dev/sound/pcm/feeder_format.c b/sys/dev/sound/pcm/feeder_format.c index 3a741430e0ca..1e18e3e07450 100644 --- a/sys/dev/sound/pcm/feeder_format.c +++ b/sys/dev/sound/pcm/feeder_format.c @@ -43,8 +43,6 @@ #define SND_USE_FXDIV #include "snd_fxdiv_gen.h" - -SND_DECLARE_FILE(""); #endif #define FEEDFORMAT_RESERVOIR (SND_CHN_MAX * PCM_32_BPS) diff --git a/sys/dev/sound/pcm/feeder_matrix.c b/sys/dev/sound/pcm/feeder_matrix.c index 0afdb47c04d8..f5f02e2bf4f5 100644 --- a/sys/dev/sound/pcm/feeder_matrix.c +++ b/sys/dev/sound/pcm/feeder_matrix.c @@ -53,8 +53,6 @@ #define SND_USE_FXDIV #include "snd_fxdiv_gen.h" - -SND_DECLARE_FILE(""); #endif #define FEEDMATRIX_RESERVOIR (SND_CHN_MAX * PCM_32_BPS) diff --git a/sys/dev/sound/pcm/feeder_mixer.c b/sys/dev/sound/pcm/feeder_mixer.c index 42ebe89d7c09..9f6b653effa3 100644 --- a/sys/dev/sound/pcm/feeder_mixer.c +++ b/sys/dev/sound/pcm/feeder_mixer.c @@ -37,8 +37,6 @@ #define SND_USE_FXDIV #include "snd_fxdiv_gen.h" - -SND_DECLARE_FILE(""); #endif #undef SND_FEEDER_MULTIFORMAT diff --git a/sys/dev/sound/pcm/feeder_rate.c b/sys/dev/sound/pcm/feeder_rate.c index b2afe0651bf5..c8cc67e8fa80 100644 --- a/sys/dev/sound/pcm/feeder_rate.c +++ b/sys/dev/sound/pcm/feeder_rate.c @@ -60,8 +60,6 @@ #define SND_USE_FXDIV #include "snd_fxdiv_gen.h" - -SND_DECLARE_FILE(""); #endif #include "feeder_rate_gen.h" diff --git a/sys/dev/sound/pcm/feeder_volume.c b/sys/dev/sound/pcm/feeder_volume.c index fa11a089af76..452d8788a5a5 100644 --- a/sys/dev/sound/pcm/feeder_volume.c +++ b/sys/dev/sound/pcm/feeder_volume.c @@ -38,8 +38,6 @@ #define SND_USE_FXDIV #include "snd_fxdiv_gen.h" - -SND_DECLARE_FILE(""); #endif typedef void (*feed_volume_t)(int *, int *, uint32_t, uint8_t *, uint32_t); diff --git a/sys/dev/sound/pcm/mixer.c b/sys/dev/sound/pcm/mixer.c index 0c7576390b72..ee1ed11a8ed0 100644 --- a/sys/dev/sound/pcm/mixer.c +++ b/sys/dev/sound/pcm/mixer.c @@ -37,8 +37,6 @@ #include "feeder_if.h" #include "mixer_if.h" -SND_DECLARE_FILE(""); - static MALLOC_DEFINE(M_MIXER, "mixer", "mixer"); static int mixer_bypass = 1; diff --git a/sys/dev/sound/pcm/sndstat.c b/sys/dev/sound/pcm/sndstat.c index 6bd3e56687bf..32b47b8ee105 100644 --- a/sys/dev/sound/pcm/sndstat.c +++ b/sys/dev/sound/pcm/sndstat.c @@ -49,9 +49,6 @@ #include <dev/sound/pcm/pcm.h> #include <dev/sound/version.h> - -SND_DECLARE_FILE(""); - #define SS_TYPE_PCM 1 #define SS_TYPE_MIDI 2 #define SS_TYPE_SEQUENCER 3 @@ -1100,11 +1097,6 @@ sndstat_register(device_t dev, char *str, sndstat_handler handler) return (0); } -void -sndstat_registerfile(void *dummy __unused) -{ -} - int sndstat_unregister(device_t dev) { @@ -1125,11 +1117,6 @@ sndstat_unregister(device_t dev) return (error); } -void -sndstat_unregisterfile(void *dummy __unused) -{ -} - /************************************************************************/ static int diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index 17dc8d968b3c..b23a28d3af08 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -44,8 +44,6 @@ #include "feeder_if.h" -SND_DECLARE_FILE(""); - devclass_t pcm_devclass; int pcm_veto_load = 1; diff --git a/sys/dev/sound/pcm/sound.h b/sys/dev/sound/pcm/sound.h index 1b9168b9171b..5981266116fb 100644 --- a/sys/dev/sound/pcm/sound.h +++ b/sys/dev/sound/pcm/sound.h @@ -347,11 +347,7 @@ void snd_mtxassert(void *m); typedef int (*sndstat_handler)(struct sbuf *s, device_t dev, int verbose); int sndstat_register(device_t dev, char *str, sndstat_handler handler); -void sndstat_registerfile(void *); int sndstat_unregister(device_t dev); -void sndstat_unregisterfile(void *); - -#define SND_DECLARE_FILE(version) /* usage of flags in device config entry (config file) */ #define DV_F_DRQ_MASK 0x00000007 /* mask for secondary drq */ diff --git a/sys/dev/sound/pcm/vchan.c b/sys/dev/sound/pcm/vchan.c index c84d8f14e075..d10c3ff4aabb 100644 --- a/sys/dev/sound/pcm/vchan.c +++ b/sys/dev/sound/pcm/vchan.c @@ -36,8 +36,6 @@ #include <dev/sound/pcm/sound.h> #include <dev/sound/pcm/vchan.h> -SND_DECLARE_FILE(""); - /* * [ac3 , dts , linear , 0, linear, 0] */ |