1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Make all this compile on 4.3, modulus sbuf.

This commit is contained in:
Brian Feldman 2001-07-02 15:27:28 +00:00
parent 6ca048f825
commit 0cfa4761f7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79090
4 changed files with 15 additions and 3 deletions

View File

@ -36,8 +36,6 @@
#include <dev/sound/isa/sb.h>
#include <dev/sound/chip.h>
#include <sys/mutex.h>
#include "mixer_if.h"
#define SB16_BUFFSIZE 4096
@ -151,8 +149,10 @@ sb_dspwr(struct sb_info *sb, u_char val)
return 1;
}
}
#if __FreeBSD_version > 50000
if (curproc->p_intr_nesting_level == 0)
printf("sb_dspwr(0x%02x) timed out.\n", val);
#endif
return 0;
}

View File

@ -36,6 +36,7 @@ struct pcmchan_caps {
u_int32_t *fmtlist;
u_int32_t caps;
};
typedef struct pcmchan_caps pcmchan_caps;
#define CHN_NAMELEN 32
struct pcm_channel {

View File

@ -38,9 +38,14 @@ int snd_unit = 0;
TUNABLE_INT("hw.snd.unit", &snd_unit);
#endif
int snd_autovchans = 0;
TUNABLE_INT("hw.snd.autovchans", &snd_autovchans);
int snd_maxvchans = 0;
#if __FreeBSD > 50000
TUNABLE_INT("hw.snd.autovchans", &snd_autovchans);
TUNABLE_INT("hw.snd.maxvchans", &snd_maxvchans);
#else
TUNABLE_INT("hw.snd.autovchans", 0, snd_autovchans);
TUNABLE_INT("hw.snd.maxvchans", 0, snd_maxvchans);
#endif
SYSCTL_NODE(_hw, OID_AUTO, snd, CTLFLAG_RD, 0, "Sound driver");

View File

@ -75,6 +75,8 @@
#if __FreeBSD_version > 500000
#define USING_MUTEX
#define USING_DEVFS
#else
#define INTR_TYPE_AV INTR_TYPE_MISC
#endif
#define SND_DYNSYSCTL
@ -95,9 +97,13 @@ 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>